Description
Additional translations defined in a <Language>Dict page to use for Chinese Taiwan (zh-TW) do not load. This is due to the current value used for X-Language-in-English in MoinMoin/i18n/zh-tw.MoinMoin.po. The current value reads "X-Language-in-English: Chinese/Taiwan\n". This value, without spaces, is what one is supposed to use for the <Language>Dict page, but it won't work.
Note that it works well for other languages like Brazilian Portuguese because of the value in the po file: "X-Language-in-English: Brazilian Portuguese\n".
Steps to reproduce
Create a page called Chinese/TaiwanDict.
Edit the page to add a list of terms as explained in HelpOnDictionaries.
In the wiki theme plugin, use MoinMoin.i18n.getText() to get the translation for any of the terms defined in the dictionary created in (1).
Example
None.
Component selection
Translation catalog in MoinMoin/i18n/zh-tw.MoinMoin.po.
Details
MoinMoin Version |
1.9 |
OS and Version |
Trisquel GNU/Linux 6 |
Python Version |
2.7 |
Server Setup |
Quick install |
Server Details |
Quick install |
Language you are using the wiki in (set in the browser/UserPreferences) |
en |
Workaround
Go to MoinMoin/i18n/zh-tw.MoinMoin.po.
Change "X-Language-in-English: Chinese/Taiwan\n" to "X-Language-in-English: Chinese Taiwan\n".
Rename the Chinese/TaiwanDict page to ChineseTaiwanDict.
- Restart the wiki.
Discussion
Would it help if I change http://master19.moinmo.in/MoinI18n/zh-tw as described in the workaround?
- Yes, please do so.
Done -- FelipeLopez 2014-02-08 19:10:00
What would you recommend to do for a MoinMoin wiki in a production server, like in gnewsense.org, which uses MoinMoin 1.9?
- Upgrade to 1.9.8 when it is released (not too far in future).
Plan
- Priority:
- Assigned to:
- Status: