Forum

Homepage - Modifyin...
 
Notifications
Clear all

Homepage - Modifying text for "open a new ticket"& "check ticket status" boxes

7 Posts
2 Users
0 Reactions
43 Views
Posts: 44
Topic starter
(@julienvdc)
Member
Joined: 6 years ago

Hi there,

How would I be able to edit the text of these two boxes?

Is it possible to edit it in the admin via a form? 

Cheers,

Julien


6 Replies
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months ago

These are not configurable fields in the Theme Options, no.

To change this text you'll need to edit /index.php (it's right in the root directory of your installation).

But there are two things you should keep in mind:

1) If/ when you install an upgrade in the future you will need to re-apply your edits.

2) If you use more than one language, by editing these the text you will break the translations. That means that, no matter what language your visitor is using, any text that you have edited will display your English text. 

If you do use more than one language, let me know and I will provide more information (it isn't an easy explanation, so I will spare myself the effort unless it will help you). 😉


Reply
Posts: 44
Topic starter
(@julienvdc)
Member
Joined: 6 years ago

haha thanks @stevland!

1/ Gottcha. I guess this would be the same scenario for any edits we might be making to your default theme, correct?

2/ Unfortunately we plan use to 2 other languages ... (French & Spanish)

Thanks for your time!

Julien


Reply
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months ago

Hi @JulienVDC,

Because you are using more than one language, changing the text is more complicated.

In this case, the text you want to modify is in /index.php.

For example, find this line...

<?php echo __('Open a New Ticket');?>

...and change the text inside the quotes as you desire.

Then you'll want to take a look at the /include/i18n folder.

For French you'll want to edit /include/i18n/fr/LC_MESSAGES/messages.mo.php.

Find the line...

'Open a New Ticket' => 'Nouveau ticket',

...and edit both phrases within the quotes. Keep in mind that the first phrase has to match the edit you made in /index.php exactly for the translation to work!

There are three Spanish language packs (es_AR, es_ES and es_MX), so obviously you'll need to make the same edits in the correct file for your purposes.

If anyone else is reading this and wondering which language packs to edit, here is the list:

Arabic — Egypt
(مصر)
ar_SA

Arabic — Saudi Arabia
(المملكة العربية السعودية)
ar_SA

Azerbaijani
(azərbaycanca)
az_AZ

Bulgarian
(български)
bg_BG

Catalan
(Català)
ca_ES

Czech
(čeština)
cs_CZ

Danish
(dansk)
da_DK

German
(Deutsch)
de_DE

Greek
(Ελληνικά)
el_GR

Spanish — Spain
(español)
es_ES

Spanish — Mexico
(Méjico)
es_MX

Spanish — Argentina
(español argentino)
es_AR

Estonian
(eesti)
et_EE;

Persian
(Farsi)
fa_IR

Finnish
(suomi)
fi_FI

French
(français)
fr_FR

Hebrew
(עברית)
he_IL

Croatian
(hrvatski)
hr_HR

Hungarian
(magyar)
hu_HU

Indonesian
(Bahasa Indonesia)
id_ID

Italian
(italiano)
it_IT

Japanese
(日本語)
ja_JP

Korean
(한국어)
ko_KR

Lithuanian
(lietuvių)
lt_LT

Macedonian
(македонски)
mk_MK

Mongolian
(монгол)
mn_MN

Malay
(Bahasa Melayu)
ms_MY

Dutch
(Nederlands)
nl_NL

Norwegian
(norsk)
no_NO

Persian
(فارسی)
fa_IR

Polish
(polski)
pl_PL

Portuguese
(Português)
pt_PT

Portuguese — Brazil
(Português)
pt_BR;

Slovak
(slovenčina)
sk_SK

Slovenian
(slovenščina)
sl_SI

Serbian (Serbia)
(српски (Србија))
sr_CS

Swedish
(svenska)
sv_SE

Romanian
(română)
ro_RO

Russian
(русский язык)
ru_RU

Vietnamese
(Tiếng Việt)
vi_VN

Thai
(ไทย)
th_TH

Turkish
(Türkçe)
tr_TR

Ukrainian
(українська)
uk_UA

Chinese — China
(中文 (中国)
zh_CN

Chinese — Taiwan
(中文(台灣)
zh_TW


Reply
Posts: 44
Topic starter
(@julienvdc)
Member
Joined: 6 years ago

Amazing, thanks Stevland!


Reply
Page 1 / 2
Share: