Support Forums - Classified Ads Script Osclass

General osclass questions => General discussion => Topic started by: kriskoyk on November 19, 2020, 07:29:39 PM

Title: WYSiWYG editor (tinyMCEv5.4) - translation
Post by: kriskoyk on November 19, 2020, 07:29:39 PM
WYSiWYG editor (tinyMCE v5.4) translates and if so where are its translation files?
Title: Re: WYSiWYG editor (tinyMCEv5.4) - translation
Post by: MB Themes on November 19, 2020, 09:16:07 PM
@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
Title: Re: WYSiWYG editor (tinyMCEv5.4) - translation
Post by: kriskoyk on November 20, 2020, 01:40:12 AM
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?
Title: Re: WYSiWYG editor (tinyMCEv5.4) - translation
Post by: MB Themes on November 20, 2020, 08:35:42 AM
@kriskoyk
Yes it is code that generate tinymce.
It can be in multiple, for admin and for front.
Title: Re: WYSiWYG editor (tinyMCEv5.4) - translation
Post by: kriskoyk on November 20, 2020, 11:30:20 AM
The question is where is this code, in which file?
Title: Re: WYSiWYG editor (tinyMCEv5.4) - translation
Post by: kriskoyk on November 21, 2020, 01:02:09 AM
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?
Title: Re: WYSiWYG editor (tinyMCEv5.4) - translation
Post by: MB Themes on November 21, 2020, 06:34:00 PM
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
Title: Re: WYSiWYG editor (tinyMCEv5.4) - translation
Post by: kriskoyk on November 21, 2020, 07:05:46 PM
Yes it is here: oc-includes \ osclass \ functions.php
It works very well.
Thanks for the help
Title: Re: WYSiWYG editor (tinyMCEv5.4) - translation
Post by: MB Themes on November 23, 2020, 08:06:10 PM
Nice to hear that ;)