Reply To: Homepage – Modifying text for "open a new ticket"& "check ticket status" boxes

February 20, 2020 at 12:54 pm #5478
stevland
Keymaster

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