Editor TinyMCE in your own language

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
OSWorX
Posts: 24
Joined: Sat Jul 06, 2013 9:43 am

Editor TinyMCE in your own language

Post by OSWorX »

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:

Code: Select all

$hesklang['EMAIL_HR']=".....";
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):

Code: Select all

// used for TinyMCE
$hesklang['LANG']   = 'de';
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):

Code: Select all

convert_urls : false,
and add AFTER this:

Code: Select all

language : "<?php echo $hesklang['LANG']; ?>",
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'.
OSWorX - OpenSource Development :: OpenCart Developer
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Editor TinyMCE in your own language

Post by Klemen »

Thanks for sharing!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply