Bug 28974 - language code restricted to two letters ("zh_TW" not possible)
Summary: language code restricted to two letters ("zh_TW" not possible)
Status: RESOLVED FIXED
Alias: None
Product: Lenya
Classification: Unclassified
Component: i18n (Internationalization) (show other bugs)
Version: 1.2
Hardware: PC Linux
: P3 normal
Target Milestone: 1.2.1
Assignee: Lenya Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 09:46 UTC by Johnson Hsu
Modified: 2004-11-22 00:34 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johnson Hsu 2004-05-14 09:46:55 UTC
I'm try to add a zh_TW language page.
I've add the zh_TW tag in publication.xconf.
when I add a new document,the system always say ****_zh not found.
when I add a new document with ****_zh, the system do not alow the word"_"
how to do with zh_TW
Comment 1 Andreas Kuckartz 2004-05-15 20:54:47 UTC
Added lenya-dev@cocoon.apache.org to CC-list.
Comment 2 Johnson Hsu 2004-05-16 01:24:41 UTC
Lenya just support two letters language code like en,de.
but it's not enough,the chinese has two language codes zh_TW , zh_CN
and that's the i18n standard.
pls extend it to 5 letters,so we can add zh_TW code language pages. 
Comment 3 Gregor J. Rothfuss 2004-11-20 22:47:28 UTC
according to RFC 3066 http://www.ietf.org/rfc/rfc3066.txt this should be zh-tw
not zh_TW. i'll change the code to allow for this
Comment 4 Andreas Kuckartz 2004-11-20 23:25:32 UTC
(In reply to comment #3)
> according to RFC 3066 http://www.ietf.org/rfc/rfc3066.txt this should be zh-tw
> not zh_TW. i'll change the code to allow for this

Yes, a dash should be used and not an underscore but the country code should be
in capitals: zh-TW


Comment 5 Gregor J. Rothfuss 2004-11-22 05:05:34 UTC
fixed, please test extensively.