This page document the scripts that help developer perform i18n related practices.
get_strings.php
Used to collect translatable strings from the source files and add them to the language.php files.
Usage: php get_strings.php lang=pt-br (if the lang parameter is omitted all languages will be considered)
doc/devtools/get_translation_percentage.php
Output in wiki syntax a table with the percentage of translation for each language. Used to generate the content of the page http://i18n.tiki.org/Status
Usage: php get_translation_percentage.php pathToTiki wikiPageName (the second parameter is optional)
doc/devtools/export_translations_to_file.php
Export translations from the database to the correspondent language.php file. Similar to the button "Write to language.php" that exist in the page tiki-edit_languages.php.
Usage: php export_translations_to_file.php langCode
doc/devtools/mergelang.php
A problem with having to maintain translations of several versions of Tiki is that the same strings have the same translations, but is not desirable to change them for each branch. This script takes the translations from a source version and add to a target version if the string exists in the target language files. It is possible to use the script to merge language files for a few languages or for all languages at once.
Usage: php doc/devtools/mergelang.php pathToSourceTikiVersion pathToTargetTikiVersion lang=pt-br,es
doc/devtools/update_english_strings.php
Used to automatically update all lang/*/language.php files when a English string is changed in Tiki source code. This script is experimental. Always review the changes to language.php file before committing.
Usage: php doc/devtools/update_english_strings.php "oldString" "newString"
PHP Fatal error: Class 'TikiDb_Bridge' not found in /var/www/tiki13x/lib/language/Language.php on line 22