i18n.txt
853 Bytes
KnowledgeTree Internationalisation (i18n)
-----------------------------------------
KnowledgeTree 3 beta 1 contains many non-internationalised texts, for
example within templates. We would appreciate input on how best to
approach internationalisation within templates. Please use the
KnowledgeTree forums at http://forum.ktdms.com/ to discuss
internationalisation.
Testing
-------
- install gettext command line utilities
- Run the following to extract translatable text from the templates:
$ rm -f i18n/templates.c
$ php bin/smarty_to_gettext.php . > i18n/templates.c
- run xgettext to generate .po files eg.
$ find . -type f -name "*.php" -o -name "*.inc" | xgettext --no-wrap -d knowledgeTree -L PHP -s -f - -o i18n/knowledgeTree.po
$ echo i18n/templates.c | xgettext --no-wrap -d knowledgeTree -j -s -f - -o i18n/knowledgeTree.po
$Id$