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

  1. Create a page called Chinese/TaiwanDict.

  2. Edit the page to add a list of terms as explained in HelpOnDictionaries.

  3. 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

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

  1. Go to MoinMoin/i18n/zh-tw.MoinMoin.po.

  2. Change "X-Language-in-English: Chinese/Taiwan\n" to "X-Language-in-English: Chinese Taiwan\n".

  3. Rename the Chinese/TaiwanDict page to ChineseTaiwanDict.

  4. Restart the wiki.

Discussion

Would it help if I change http://master19.moinmo.in/MoinI18n/zh-tw as described in the workaround?

What would you recommend to do for a MoinMoin wiki in a production server, like in gnewsense.org, which uses MoinMoin 1.9?

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/AdditionalTranslationsDictionaryDoesNotWorkForChineseTaiwan (last edited 2014-02-09 00:08:37 by FelipeLopez)