https://bugzilla.redhat.com/show_bug.cgi?id=1001446
Bug ID: 1001446 Summary: Traditional Chinese not listed in language menu of installer Welcome dialog Product: Fedora Version: 20 Component: langtable Assignee: mfabian@redhat.com Reporter: stephent98@hotmail.com QA Contact: extras-qa@fedoraproject.org CC: i18n-bugs@lists.fedoraproject.org, mfabian@redhat.com
Created attachment 790762 --> https://bugzilla.redhat.com/attachment.cgi?id=790762&action=edit screenshot showing "Simplified Chinese (China)" in Welcome dialog
Description of problem: The language menu in the installer Welcome dialog lists "Simplified Chinese (China)", but it does not list Traditional Chinese.
Version-Release number of selected component (if applicable): anaconda 20.8-1 Fedora-20-Alpha-TC1-x86_64-DVD.iso
How reproducible: Always.
Steps to Reproduce: 1. Start installer from DVD: $ qemu-kvm -m 4096 -hda f20-test-3.img -cdrom ~/xfr/fedora/F20/Alpha/Fedora-20-Alpha-TC1-x86_64-DVD.iso -vga std -boot menu=on
Actual results: "Simplified Chinese (China)" is listed. Traditional Chinese is not listed. See attached screenshot.
Expected results: Both Simplified Chinese and Traditional Chinese are listed.
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
Steve Tyler stephent98@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |i18n CC| |stephent98@hotmail.com
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #1 from Steve Tyler stephent98@hotmail.com --- Langtable does not have "Traditional Chinese (Taiwan)" in English.[1]
The locale is: $ locale -a | grep zh_TW zh_TW zh_TW.big5 zh_TW.euctw zh_TW.utf8
There is a translation for anaconda: $ find /usr/share/locale/ -name anaconda.mo | grep zh /usr/share/locale/zh_TW/LC_MESSAGES/anaconda.mo /usr/share/locale/zh_CN/LC_MESSAGES/anaconda.mo
[1] Searches find these: $ grep -i chinese langtable-0.0.11/data/languages.xml | grep -i traditional <name><languageId>en</languageId><trName>Traditional Chinese (Hong Kong)</trName></name> <name><languageId>en</languageId><trName>Traditional Chinese</trName></name> <name><languageId>zu</languageId><trName>isi-Traditional Chinese</trName></name> <name><languageId>en</languageId><trName>Traditional Chinese (Macau SAR China)</trName></name> <name><languageId>en</languageId><trName>Traditional Chinese (Republic of China)</trName></name>
$ grep -i taiwan langtable-0.0.11/data/languages.xml <name><languageId>de</languageId><trName>Traditionelles Chinesisch (Taiwan)</trName></name>
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #2 from Steve Tyler stephent98@hotmail.com --- Created attachment 790771 --> https://bugzilla.redhat.com/attachment.cgi?id=790771&action=edit screenshot showing "Traditional Chinese (Republic of China)" in F19 languages menu
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #3 from Steve Tyler stephent98@hotmail.com --- OK, zh_TW is in langtable with the name "Traditional Chinese (Republic of China)":
$ less -N langtable-0.0.11/data/languages.xml ... 21270 <language> 21271 <languageId>zh_TW</languageId> ... 21275 <names> 21276 <name><languageId>de</languageId><trName>Traditionelles Chinesisch (Taiwan)</trName></name> 21277 <name><languageId>en</languageId><trName>Traditional Chinese (Republic of China)</trName></name> ... 21284 </names> 21285 <locales> 21286 <locale><localeId>zh_TW.UTF-8</localeId><rank>1000</rank></locale> 21287 </locales> ... 21300 </language> ...
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
Parag pnemade@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pnemade@redhat.com
--- Comment #4 from Parag pnemade@redhat.com --- Yes its there. I too noticed that different kind of naming for both Chinese languages (for its country name) in langtable.
Simplified Chinese (China) and Traditional Chinese (Republic of China)
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
Steve Tyler stephent98@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pswo10680@gmail.com
--- Comment #5 from Steve Tyler stephent98@hotmail.com --- CCing Cheng-Chia Tseng, who opened this bug for the same problem in F18: Bug 858801 - [zh_TW] Please add Chinese (Taiwan) language to language selection menu in anaconda
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #6 from Mike FABIAN mfabian@redhat.com --- (In reply to Steve Tyler from comment #5)
CCing Cheng-Chia Tseng, who opened this bug for the same problem in F18: Bug 858801 - [zh_TW] Please add Chinese (Taiwan) language to language selection menu in anaconda
F18 didn’t use langtable though, so whatever was the problem in F18, it must have been something differnent.
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #7 from Mike FABIAN mfabian@redhat.com --- (In reply to Parag from comment #4)
Yes its there. I too noticed that different kind of naming for both Chinese languages (for its country name) in langtable.
Simplified Chinese (China) and Traditional Chinese (Republic of China)
The different naming for the territory name is intentional.
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #8 from Mike FABIAN mfabian@redhat.com --- The f19 screenshot
https://bugzilla.redhat.com/attachment.cgi?id=790771
looks correct to me, I think we only have a problem in f20.
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #9 from Mike FABIAN mfabian@redhat.com --- mfabian@ari:~ $ python Python 2.7.5 (default, Aug 22 2013, 09:31:58) [GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import langtable from langtable import language_name print language_name("zh")
中文
print language_name("zh_CN")
简体中文 (中国)
print language_name("zh_TW")
繁體中文 (台灣)
print language_name(languageId="zh", territoryId="CN")
简体中文 (中国)
print language_name(languageId="zh", territoryId="CN", languageIdQuery="zh")
中文 (中国)
print language_name(languageId="zh", territoryId="TW", languageIdQuery="zh")
繁体中文 (台湾)
print language_name(languageId="zh", territoryId="TW", languageIdQuery="zh_CN")
繁体中文 (中华民国)
print language_name(languageId="zh", territoryId="TW", languageIdQuery="zh_TW")
繁體中文 (台灣)
mfabian@ari:~ $ rpm -q langtable langtable-0.0.11-1.fc21.noarch mfabian@ari:~ $
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #10 from Mike FABIAN mfabian@redhat.com --- There was no significant change in langtable for these names recently.
So I think on f19, Anaconda uses
print language_name("zh_CN")
简体中文 (中国)
print language_name("zh_TW")
繁體中文 (台灣)
and on f20 it uses only
print language_name(languageId="zh", territoryId="CN", languageIdQuery="zh")
中文 (中国)
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
Vratislav Podzimek vpodzime@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |anaconda-maint-list@redhat. | |com, dshea@redhat.com, | |g.kaviyarasu@hotmail.com, | |jonathan@jonmasters.org, | |kanarip@kanarip.com, | |mkolman@redhat.com, | |sbueno@redhat.com Component|langtable |anaconda Assignee|mfabian@redhat.com |vpodzime@redhat.com
--- Comment #11 from Vratislav Podzimek vpodzime@redhat.com --- This seems to be an Anaconda issue. However, the welcome screen is going to be changed a lot for the Fedora 20 (dealing with this bug, among the other things).
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #12 from Steve Tyler stephent98@hotmail.com --- Created attachment 790971 --> https://bugzilla.redhat.com/attachment.cgi?id=790971&action=edit localization-test-report-20_08_1.txt
Attached is a list of locales returned by get_available_translations().
zh_CN is listed, but not zh_TW.
$ cat localization-test-report-20_08_1.txt | egrep 'L: n:|zh' L: n: locale L: 72: zh_CN.UTF-8
Command line: $ ./localization-test-4.py localization_20_08_1.py > localization-test-report-20_08_1.txt
Testing is with F19: $ rpm -q langtable python langtable-0.0.6-1.fc19.noarch python-2.7.5-4.fc19.x86_64
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #13 from Steve Tyler stephent98@hotmail.com --- Created attachment 790972 --> https://bugzilla.redhat.com/attachment.cgi?id=790972&action=edit localization-test-4.py unit test
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #14 from Cheng-Chia Tseng pswo10680@gmail.com --- (In reply to Mike FABIAN from comment #8)
The f19 screenshot
https://bugzilla.redhat.com/attachment.cgi?id=790771
looks correct to me, I think we only have a problem in f20.
Yeah, f19 lists Traditional Chinese correctly.
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #15 from Steve Tyler stephent98@hotmail.com --- (In reply to Cheng-Chia Tseng from comment #14)
(In reply to Mike FABIAN from comment #8)
The f19 screenshot
https://bugzilla.redhat.com/attachment.cgi?id=790771
looks correct to me, I think we only have a problem in f20.
Yeah, f19 lists Traditional Chinese correctly.
Thanks. Are the country names OK?
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #16 from Cheng-Chia Tseng pswo10680@gmail.com --- (In reply to Steve Tyler from comment #15)
(In reply to Cheng-Chia Tseng from comment #14)
(In reply to Mike FABIAN from comment #8)
The f19 screenshot
https://bugzilla.redhat.com/attachment.cgi?id=790771
looks correct to me, I think we only have a problem in f20.
Yeah, f19 lists Traditional Chinese correctly.
Thanks. Are the country names OK?
The country names are OK (both in Traditional Chinese and English) too in f19.
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
Vratislav Podzimek vpodzime@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |POST
--- Comment #17 from Vratislav Podzimek vpodzime@redhat.com --- A small temporary patch posted to anaconda-patches.
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #18 from Steve Tyler stephent98@hotmail.com --- (In reply to Vratislav Podzimek from comment #17)
A small temporary patch posted to anaconda-patches.
Thanks. The patch fixes this bug.
I've attached a full report here: Bug 1001801, Comment 3: Bug 1001801 - some languages missing from language menu in Welcome dialog
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
Vratislav Podzimek vpodzime@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version| |an
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
Vratislav Podzimek vpodzime@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|POST |MODIFIED Fixed In Version|an |anaconda-20.10-1
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #19 from Steve Tyler stephent98@hotmail.com --- This is not fixed with the 20-Alpha-TC3 DVD. The DVD has anaconda 20.9-1, not 20.10-1[1].
Tested with: $ qemu-kvm -m 4096 -hda f20-test-3.img -cdrom ~/xfr/fedora/F20/Alpha/Fedora-20-Alpha-TC3-x86_64-DVD.iso -vga std -boot menu=on
[1] https://fedorahosted.org/rel-eng/ticket/5745#comment:9
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #20 from Mike FABIAN mfabian@redhat.com --- Created attachment 816842 --> https://bugzilla.redhat.com/attachment.cgi?id=816842&action=edit chinese-variants-in-language-selection-f20-beta-tc6.png
It works in Fedora-20-Beta-TC6-x86_64-DVD.iso.
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #21 from Cheng-Chia Tseng pswo10680@gmail.com --- Created attachment 817271 --> https://bugzilla.redhat.com/attachment.cgi?id=817271&action=edit This is the screenshot
I have just verified Fedora-Live-Desktop-x86_64-20-Beta-TC6 that traditional Chinese is listed.
However, the display name of traditional Chinese in Taiwan (zh_TW) should be "繁體中文 (台灣)" in traditional Chinese variant form instead of "繁体中文 (台湾)" in simplified Chinese variant form. The situation of traditional Chinese in Hong Kong is the same, using simplified Chinese variant to display the name.
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #22 from Mike FABIAN mfabian@redhat.com --- (In reply to Cheng-Chia Tseng from comment #21)
Created attachment 817271 [details] This is the screenshot
I have just verified Fedora-Live-Desktop-x86_64-20-Beta-TC6 that traditional Chinese is listed.
However, the display name of traditional Chinese in Taiwan (zh_TW) should be "繁體中文 (台灣)" in traditional Chinese variant form instead of "繁体中文 (台湾)" in simplified Chinese variant form. The situation of traditional Chinese in Hong Kong is the same, using simplified Chinese variant to display the name.
Ah, yes, you are right.
Seems to be correct in langtable though, trying to figure out how anaconda uses it to make this happen...
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #23 from Mike FABIAN mfabian@redhat.com --- Test cases from langtable:
>>> print(language_name(languageId="zh", territoryId="TW", languageIdQuery="zh")) # doctest: +NORMALIZE_WHITESPACE 繁体中文 (台湾)
>>> print(language_name(languageId="zh", territoryId="TW", languageIdQuery="zh", territoryIdQuery="TW")) # doctest: +NORMALIZE_WHITESPACE 繁體中文 (台灣)
>>> print(language_name(languageId="zh", territoryId="TW", languageIdQuery="zh", territoryIdQuery="CN")) # doctest: +NORMALIZE_WHITESPACE 繁体中文 (中华民国)
Vratislav Podzimek found the problem in anaconda (not using territoryIdQuery), he’ll fix it soon.
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
--- Comment #24 from Mike FABIAN mfabian@redhat.com --- Created attachment 820006 --> https://bugzilla.redhat.com/attachment.cgi?id=820006&action=edit chinese-variants-in-language-selection-f20-beta-rc3.png
Fixed in Fedora-20-Beta-RC3-x86_64-netinst.iso, see screenshot.
Thank you, Vratislav!
https://bugzilla.redhat.com/show_bug.cgi?id=1001446
Vratislav Podzimek vpodzime@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |ERRATA Last Closed| |2013-11-06 04:54:33
i18n-bugs@lists.fedoraproject.org