Last modified: 2007-04-12 21:42:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10599, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8599 - Incorrect localised texts in Names.php (zho series)
Incorrect localised texts in Names.php (zho series)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.9.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks: 8217
  Show dependency treegraph
 
Reported: 2007-01-12 07:16 UTC by Shinjiman
Modified: 2007-04-12 21:42 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Names.php.patch (1.19 KB, patch)
2007-01-12 07:18 UTC, Shinjiman
Details
Names.php.patch (1.33 KB, patch)
2007-01-12 07:24 UTC, Shinjiman
Details
Names.php.patch (1.33 KB, patch)
2007-01-12 07:27 UTC, Shinjiman
Details
Names.php.patch (1.39 KB, patch)
2007-01-12 07:43 UTC, Shinjiman
Details
Names.2.php.patch (821 bytes, patch)
2007-04-12 21:37 UTC, Shinjiman
Details
Names.2.php.patch (820 bytes, patch)
2007-04-12 21:39 UTC, Shinjiman
Details

Description Shinjiman 2007-01-12 07:16:28 UTC
Hi the developers,

would the developers please update the Names.php file that fixes the incorrect
localised names in the $wgLanguageNames array? thanks.

The claims shows that:
zh-cn != 中文(简体)
zh-sg != 中文(简体)
zh-hk != 中文(繁體)
zh-tw != 中文(繁體)

they should be corrected as:
zh-cn != 中文(中国)
zh-sg != 中文(新加坡)
zh-hk != 中文(香港)
zh-tw != 中文(台灣)

and also the patch add two extra tags "zh-hans" and "zh-hant", which they are
defined at RFC 4646.

regards
Shinjiman
Comment 1 Shinjiman 2007-01-12 07:18:11 UTC
Created attachment 3053 [details]
Names.php.patch

This is the patch for the bug, note that it also fixes part of bug 8217.
Comment 2 Shinjiman 2007-01-12 07:19:31 UTC
they should be corrected as:
zh-cn = 中文(中国)
zh-sg = 中文(新加坡)
zh-hk = 中文(香港)
zh-tw = 中文(台灣)

There's typo at comment 1. The texts should be corrected like this.
Comment 3 Shinjiman 2007-01-12 07:24:09 UTC
Created attachment 3054 [details]
Names.php.patch

This is the patch for the bug, note that it also fixes part of bug 8217.
Comment 4 Shinjiman 2007-01-12 07:27:10 UTC
Created attachment 3055 [details]
Names.php.patch

sorry, it's typo again. This should be the correct file that patches the bug.
Comment 5 Shinjiman 2007-01-12 07:43:32 UTC
Created attachment 3056 [details]
Names.php.patch

The updated patch that have better comments to explain the language tags.
Comment 6 Raimond Spekking 2007-04-12 14:38:36 UTC
Why adding zh-hans and zh-hant? As far as I can see it's neither a valid
ISO-Code nor a Wikimedia project code.
Comment 7 Jon Harald Søby 2007-04-12 14:55:39 UTC
zh-hans and zh-hant are valid composite ISO codes; zh is ISO 639-1 for Chinese
(as you probably know), while Hans and Hant are ISO 15924 codes for the writing
systems Simplified Chinese and Traditional Chinese.
Comment 8 Raimond Spekking 2007-04-12 15:11:21 UTC
As per discussion on irc applied with r21200:

Shinjiman: the zh-Hans/zh-Hant names will going to used in the LanguageZh.php
for part of the Chinese Conversion reform. See my user page in the Chinese
Wikipedia (http://zh.wikipedia.org/wiki/User:Shinjiman/ZhConversion) for details
(sorry this page is written in Chinese), and we'd a rather major discussions for
the Chinese Conversion system, see
http://zh.wikipedia.org/wiki/Wikipedia:%E5%85%B3%E4%BA%8E%E6%94%B9%E9%9D%A9%E5%AD%97%E4%B
Comment 9 Shinjiman 2007-04-12 15:30:22 UTC
The revision r21201 by raymond is to correct some problems which disclosed with the 
single quotes rather than double quotes, which was previously fixed in r21200.
Comment 10 Shinjiman 2007-04-12 21:36:03 UTC
Sorry bothering for the committers again, as shown in the IANA language-subtag-
registry, the part of zh-cn which shows Chinese (PRC), however it was a mistake to 
put "中文(中国)" <- "Chinese (China)" to the language names array, by the correct 
form, it should be renamed to "中文(中国大陆)" <- "Chiense (PRC)" to avoid the "China" 
problem.

-------------------------------------------------
Type: region
Subtag: CN
Description: China
Added: 2005-10-16
%%
Type: redundant
Tag: zh-Hans
Description: simplified Chinese
Added: 2003-05-30
%%
Type: redundant
Tag: zh-Hans-CN
Description: PRC Mainland Chinese in simplified script
Added: 2005-04-13
%%
Type: redundant
Tag: zh-Hans-CN
Description: PRC Mainland Chinese in simplified script
Added: 2005-04-13
Comment 11 Shinjiman 2007-04-12 21:37:21 UTC
Created attachment 3438 [details]
Names.2.php.patch

This is the patch file which corrects the string from 中文(中国) to
中文(中国大陆).
Comment 12 Shinjiman 2007-04-12 21:39:22 UTC
Created attachment 3439 [details]
Names.2.php.patch

Here's the patch that corrects the word from 中文(中国) to
中文(中国大陆), and also removed extra tabs.
Comment 13 Raimond Spekking 2007-04-12 21:42:52 UTC
Applied with r21205.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links