Closed Bug 251241 Opened 21 years ago Closed 21 years ago

Both zh-Hant and zh-Hans are treated as zh-CN

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jshin1987, Assigned: jshin1987)

References

()

Details

(Keywords: fixed-aviary1.0, fixed1.7, intl)

Attachments

(1 file)

In the test case at the URL given in the URL field, zh-Hant and zh-Hans are both treated as zh. We can easily fix this problem by adding two entries to the mapping table (langGroups.properties). However, it might not be the best way to deal with the problem in general. zh-hans=zh-CN zh-hant=zh-TW Richard, you can edit the file (in 'res' subdirectory of your mozilla installation directory) to add the entries above.
Simon, what do you think of adding two entries to langGroups.properties file?
Status: NEW → ASSIGNED
I am OK with it as a quick fix, but ideally we want to move towards a general solution for parsing ISO 15924 script codes as part of the lang attribute.
Attached patch a quick fixSplinter Review
I fully agree with you about the characteristic of the patch (an intertim patch) so that I added a comment to that effect.
Comment on attachment 154466 [details] [diff] [review] a quick fix asking for r/sr as an quick --> as a quick fix. they have ... revisited => the issue has ... revisited.
Attachment #154466 - Flags: superreview?(blizzard)
Attachment #154466 - Flags: review?(smontagu)
Attachment #154466 - Flags: review?(smontagu) → review+
Note, for clarity, that zh-hans and zh-hant are actually defined by IANA as language tags, though they use iso 15924 script codes. Note also that the so-called rfc3066bis will support the use of script codes within language tags.
Yes indeed: rfc3066bis is the hidden leitmotif behind my comment 2 (and various similar comments in other bugs - e.g. bug 192636)
Comment on attachment 154466 [details] [diff] [review] a quick fix trying Neil for sr. this is a trivial fix although it's sort of a stop-gap.
Attachment #154466 - Flags: superreview?(blizzard) → superreview?(neil.parkwaycc.co.uk)
Attachment #154466 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Comment on attachment 154466 [details] [diff] [review] a quick fix thanks for sr. fix checked into the trunk. asking for a for check-in to aviary-1.0 and 1.7 branches This is a trivial fix but it'd be nice to fix this for 1.7 branch/aviary-1.0
Attachment #154466 - Flags: approval1.7.3?
Attachment #154466 - Flags: approval-aviary?
Attachment #154466 - Flags: approval-aviary? → approval-aviary+
thanks for a. fixed on aviary-1.0
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Whiteboard: fixed-aviary1.0
Comment on attachment 154466 [details] [diff] [review] a quick fix a=mkaply for 1.7.3
Attachment #154466 - Flags: approval1.7.3? → approval1.7.3+
fixed on 1.7branch as well
Keywords: fixed1.7
When this was landed on aviary 1.0, it was merged manually, with s/the/this/, which causes pain for those synchronizing branches. Please use cvs to merge patches to branches.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: