12 Creating Custom Locales
where <localization_key> is a unique identifier and <text> is the text in a
human language that you need to edit.
4. To localize extjs, go to the directory
sb/htdocs/js/externals/extjs/src/locale/, and see if there
is a file titled like ext-lang-<locale code>.js.
If this file is not present, you need to make a copy of the ext-lang-en.js file,
rename it to ext-lang-<locale code>.js, and translate its contents.
5. To localize TinyMCE, go to the directory
sb/htdocs/js/externals/tinymce/langs/, and see if there is a
file titled like <locale code>.js.
If this file is not present, you need to either download a language pack from
http://www.tinymce.com/i18n3x/index.php?ctrl=lang&act=download&pr_id=1 and
use the file from the archive (tinymce_language_pack/langs/<locale
code>.js), or make a copy of the en.js file, rename it to <locale code>.js,
and translate its contents.
6. To localize the TinyMCE theme, go to the directory
sb/htdocs/js/externals/tinymce/themes/sbt/langs/, and
see if the files <locale code>.js and <locale code>_dlg.js
are present.
If these files are not present, you need to either download a language pack from
http://www.tinymce.com/i18n3x/index.php?ctrl=lang&act=download&pr_id=1 and
use the files from the archive
(tinymce_language_pack/themes/advanced/langs/<locale code>.js
and <locale code>_dlg.js), or make copies of their English versions, rename
the files to <locale code>.js and <locale code>_dlg.js and translate
their contents.
When copying locale files from the advanced theme, correct the theme identifier at
the beginning of the files - replace the line tinyMCE.addI18n('<locale
code>.advanced' with tinyMCE.addI18n('<locale code>.sbt', and
replace the line tinyMCE.addI18n('<locale code>.advanced_dlg' with
tinyMCE.addI18n('<locale code>.sbt_dlg'.
7. To localize the TinyMCE plugin "tablewithalign", move the entire
directory sb/htdocs/js/externals/tinymce/plugins/table/langs to
sb/htdocs/js/externals/tinymce/plugins/tablewithalign/langs.
8. When finished with working on locale strings, issue the following
command in the console:
On Linux systems running Parallels Plesk Panel with Presence Builder:
/usr/local/psa/bin/sw-engine-pleskrun
/usr/local/sb/utils/updateResources.php locale
On Linux systems running Parallels Presence Builder Standalone:
/usr/bin/sw-engine /usr/local/sb/utils/updateResources.php
locale
On Windows systems running Parallels Plesk Panel with Presence Builder: