Change loading order of Chinese conversion tables
authorLiangent <liangent@gmail.com>
Thu, 4 Sep 2014 12:19:43 +0000 (12:19 +0000)
committerNemo bis <federicoleva@tiscali.it>
Thu, 8 Jan 2015 15:35:42 +0000 (15:35 +0000)
commit2e0b23d6899dbed6275bf51c3e429b9ad2c2ca74
tree398d848a25fcd6574f9ef834e8208d722aafbdf4
parent58e9569b46e950c809db742e8ec0e3db6dc8cd94
Change loading order of Chinese conversion tables

Apply the conversion variants from specific zones before zh-hans
and zh-hant, to allow fitting specific linguistic habits before
falling back to the generic ones. The actual rules will be added
in a followup patch.

Previously, the zh-cn table was composed by:

(1) Load zh2Hans as zh-hans table
(2) Load zh2CN + zh2Hans as zh-cn table
(3) Load Conversiontable/zh-hans + zh-hans as zh-hans table
(4) Load Conversiontable/zh-cn + zh-cn as zh-cn table
(5) Load zh-hans + zh-cn as the final zh-cn table

The new loading order is:

(1) Load zh2Hans as zh-hans table
(2) Load zh2CN as zh-cn table
(3) Load Conversiontable/zh-hans + zh-hans as zh-hans table
(4) Load Conversiontable/zh-cn + zh-cn as zh-cn table
(5) Load zh-cn + zh-hans as the final zh-cn table

Change-Id: Ie9d08b85d4911618946fa7efd23eb898412449e5
languages/classes/LanguageZh.php