Translating the TinyMCE WYSIWYG editor in WP2
-
I found a way to translate the tags into other languages.
In “wp-includes/js/tinyMCE” and its subdirectories find the
“en.js” files, translate and rename them with your country code
fr.js, de.js, etc.
Go back to the “wp-includes/js/tinyMCE” directory and open
“tiny_mce_gzip.php”
On lines 80 et 81, find “langs/en.js” and change “en for your
country code, for example “langs/fr.js”
This should be changed on both lines:
echo wp_translate_tinymce_lang(file_get_contents(realpath(“themes/” . $theme . “/langs/fr.js”)));
echo wp_translate_tinymce_lang(file_get_contents(realpath
(“langs/fr.js”)));
Save and refresh your page. The translation should work.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Translating the TinyMCE WYSIWYG editor in WP2’ is closed to new replies.