Editor TinyMCE in your own language
Posted: Mon Jul 08, 2013 10:28 am
Since Hesk is using the WYSIWYG editor TinyMCE, creating and editing articles for the knowledge base is easier.
To enable this editor for creating/editing tickets, see this thread here:
viewtopic.php?f=13&t=4572
But the thing is, the editor interface will be displayed always only in English.
To display the editor also in your language (the world is a bit bigger and some people do not know/understand English), follow these steps:
Step 1:
download your language from the TinyMCE language page (here version 3.x Hesk is still - as of 2.5.0 - using):
http://www.tinymce.com/i18n3x/index.php ... ad&pr_id=1
Step 2:
edit your language file ../language/YOUR_LANGUAGE/text.php and look for:
Replace YOUR_LANGUAGE with the code you are using.
add following new variable/value right after the completeline (here de because I use German as language):
The short code above can be one of the language packs of TinyMCE.
E.g. de = German, en = English, etc.
You have to look inside the editor language pack for that abbreviation.
Step 3:
edit ../admin/manage_knowledgebase.php and look for (inside the tinymce init script):
and add AFTER this:
Save the files - that's it.
Now your editor should speak your language.
If you use the editor also at the tickets, you have to adopt there also the script.
Note: if you are using more languages you have to adopt each language file and add the language code from above into it.
Otherwise the editor will make 'troubles'.
To enable this editor for creating/editing tickets, see this thread here:
viewtopic.php?f=13&t=4572
But the thing is, the editor interface will be displayed always only in English.
To display the editor also in your language (the world is a bit bigger and some people do not know/understand English), follow these steps:
Step 1:
download your language from the TinyMCE language page (here version 3.x Hesk is still - as of 2.5.0 - using):
http://www.tinymce.com/i18n3x/index.php ... ad&pr_id=1
Step 2:
edit your language file ../language/YOUR_LANGUAGE/text.php and look for:
Code: Select all
$hesklang['EMAIL_HR']=".....";
add following new variable/value right after the completeline (here de because I use German as language):
Code: Select all
// used for TinyMCE
$hesklang['LANG'] = 'de';
E.g. de = German, en = English, etc.
You have to look inside the editor language pack for that abbreviation.
Step 3:
edit ../admin/manage_knowledgebase.php and look for (inside the tinymce init script):
Code: Select all
convert_urls : false,
Code: Select all
language : "<?php echo $hesklang['LANG']; ?>",
Now your editor should speak your language.
If you use the editor also at the tickets, you have to adopt there also the script.
Note: if you are using more languages you have to adopt each language file and add the language code from above into it.
Otherwise the editor will make 'troubles'.