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
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”)));
Save and refresh your page. The translation should work.
- The topic ‘Translating the TinyMCE WYSIWYG editor in WP2’ is closed to new replies.