stable
Clone or download
request #8467: Allow users to use other lang than EN or FR
As of today I cannot use a custom language that is under /etc/tuleap/site-content/: the web interface only allow switch from English to Français (et vice et versa ♪). To test this, you need to: - edit /etc/tuleap/conf/local.inc, add your custom lang in supported languages. Ex: $sys_supported_languages = 'ja_JP,en_US,fr_FR'; - create folder for your custom lang: mkdir /etc/tuleap/site-content/ja_JP - define the label of your custom lang: echo -e "system\tlocale_label\t日本語" > /etc/tuleap/site-content/ja_JP/ja_JP.tab - start customisation: mkdir /etc/tuleap/site-content/ja_JP/account echo -e "account_preferences\tappearance\t外観" > /etc/tuleap/site-content/ja_JP/account/account.tab - as a Tuleap user, go to your preferences and use the new custom lang. That's it! Change-Id: Icb8128deee67f62b3d534fcc313e9bbaf896e3aa
Modified Files
Name | ||||
---|---|---|---|---|
M | site-content/en_US/en_US.tab | +23 | −11 | Go to diff View file |
M | site-content/fr_FR/fr_FR.tab | +19 | −1 | Go to diff View file |
M | src/common/language/BaseLanguage.class.php | +10 | −16 | Go to diff View file |
M | tests/simpletest/common/language/BaseLanguageTest.php | +19 | −24 | Go to diff View file |
A | tests/simpletest/common/language/_fixtures/codendi/site-content/en_US/en_US.tab | +1 | −0 | Go to diff View file |
A | tests/simpletest/common/language/_fixtures/codendi/site-content/fr_FR/fr_FR.tab | +1 | −0 | Go to diff View file |
A | tests/simpletest/common/language/_fixtures/etc/site-content/ja_JP/ja_JP.tab | +1 | −0 | Go to diff View file |