Confluence : Translations for the Rich Text Editor
This page last changed on Jan 01, 2007 by don.willis@atlassian.com.
In Confluence version 2.2.10 and above it is possible to provide translations for the tooltips and labels in the Rich Text Editor. Most of the editor's internationalised text consists of its tooltips. There are also a few labels such as those in the Image Properties dialog. Unfortunately, translations of these to another language are not currently read from the ConfluenceActionSupport.properties file. Instead they are read from a collection of javascript files within Confluence's includes directory.
Creating a new TranslationThe Rich Text Editor provided by Confluence is Tiny MCE. The language files it uses are all within the confluence/includes/js/tiny_mce directory. The core editing strings are found in: confluence/includes/js/tiny_mce/langs/en.js Translations for most of these strings are included for a variety of languages. However, some of them may need to be re-encoded to UTF-8. These two files: confluence/includes/js/tiny_mce/themes/advanced/langs/en.js are also translated into the same languages. However some translations may be missing or out of date. The remaining 4 files are all specific to Confluence and require translation for most or all languages: confluence/includes/js/tiny_mce/plugins/confluence/langs/en.js Using the TranslationsOnce you have translations for each file, you need to edit the locales-to-editor-languages.properties file located in confluence/WEB-INF/classes. ExampleAttached is a translation for US English. (Since tiny MCE is a US product the core text is all spelt in US English anyway, but there is one "Centre" in the Image Properties dialogue). It contains files named en_us.js in the required directories. To add this translation to Confluence:
To test the translation is working:
|
![]() |
Document generated by Confluence on May 01, 2007 19:27 |