- Edited
Because of the different redactor packages and translation strings in different places some redactor elements are not translated. Here is the solution how you can add your own language files to redactor.affected file 1: include > client > header.inc.phpaffected file 2: include > staff > footer.inc.phpaffected file 3: js > redactor-osticket.js1. Step: Create a new folder "redactor" in "include" > "i18n"2. Step: Create your own language file using the attached one as blueprint. Important hints:The filename has to be according exactly to your osticket language filename, e.g. "en_US.js", "fr_FR.js", "de_DE.js"The language string in the first line has to be lowercase, e.g. "en_us", "fr_fr", "de_de"3. Step: Save your redactor language file in "include" > "i18n" > "redactor"4. Step: Open "js" > "redactor-osticket.js" and change line 326 to 328 from: if (c.lang && c.lang.toLowerCase() != 'en_us' && $.Redactor.opts.langs) options = c.short_lang;to: if (c.lang && c.lang.toLowerCase() != 'en_us' && $.Redactor.opts.langs) options = c.lang.toLowerCase();5. Step: Open "include" > "client" > "header.inc.php" and add the following line in the <head> section: <script src="<?php echo ROOT_PATH; ?>include/i18n/redactor/<?php echo Internationalization:().'.js'; ?>"></script>6. Step: Open "include" > "staff" > "footer.inc.php" and add the following somewhere before the closing </body> tag:
<script src="<?php echo ROOT_PATH;
?>include/i18n/redactor/<?php echo
Internationalization:().'.js';
?>"></script>That's it, now redactor uses your language file and if you are missing a string it falls back to the english version .Best regards,Jürgen