Support Forums - Classified Ads Script Osclass
General osclass questions => General discussion => Topic started by: kriskoyk on November 19, 2020, 07:29:39 PM
-
WYSiWYG editor (tinyMCE v5.4) translates and if so where are its translation files?
-
@kriskoyk
You would have to download language and upload it into assets / tinymce and then change language in each generator.
Problem is this cannot be done automatically as not all languages exist
-
When you say generator what file is meant?
From the tinymce website the instructions say: In this example we will set the editor language to Swedish.
tinymce.init ({
selector: 'textarea', // change this value according to your HTML
language: 'sv_SE'
});
In which file is this code located?
-
@kriskoyk
Yes it is code that generate tinymce.
It can be in multiple, for admin and for front.
-
The question is where is this code, in which file?
-
The code " tinymce.init ({
selector: 'textarea', // change this value according to your HTML
language: 'sv_SE'
}); " for admin is here: oc-admin \ themes \ omega \ pages \ form or here: oc-admin \ themes \ modern \ pages \ form and the translation works properly. I can not find the file in the front section code to change the language there too.
Any help?
-
Oc admin - depends on theme you use.
I do not quite remember front (not on pc), check oc-includes/osclass/ ... functions.php, utils.php or frm/item.form.php
-
Yes it is here: oc-includes \ osclass \ functions.php
It works very well.
Thanks for the help
-
Nice to hear that ;)