Bug 1111154 - Firefox does not translate 3-letter langage codes
Summary: Firefox does not translate 3-letter langage codes
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Jan Horak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-19 11:35 UTC by Mattias Ellert
Modified: 2017-08-08 11:47 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-08-08 11:47:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
The bottom of the langage selection menu showing language codes instead of language names (85.77 KB, image/png)
2014-06-19 11:35 UTC, Mattias Ellert
no flags Details
script to generate language list from isocodes xml file (384 bytes, text/x-python)
2014-10-22 21:53 UTC, Mattias Ellert
no flags Details
output generated by the lang.py script (8.70 KB, text/plain)
2014-10-22 21:55 UTC, Mattias Ellert
no flags Details

Description Mattias Ellert 2014-06-19 11:35:24 UTC
Created attachment 910356 [details]
The bottom of the langage selection menu showing language codes instead of language names

Description of problem:

When selecting the language for spell checking 3-letter language codes are not handled properly. See attached screenshot.

Version-Release number of selected component (if applicable):

firefox-30.0-4.fc20.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Right click on a textedit field and go to the language setting for spell checking.
2. Scroll to the bottom of the menu
3. See the menu items displaying language codes like "ber", "cop" and "smj".

Actual results:

Language codes displayed

Expected results:

Language names displayed

Comment 1 Mattias Ellert 2014-06-19 12:00:31 UTC
Looking closely it seems to handle "ast", "csb", "dsb", "fur". "grf", "haw". "hil", "hsb" and "nso" correctly. So it is not failing for all 3-letter codes.

It fails for "ber", "cop", "fil", "mai", "mos", "nds", "plt", "quh", "shs", "smj", "tet" and "tpi".

It also fails for "sh" and "YU" which of course are obsolete (Serbocrotaian, Yugoslavia) so that might be by chose.

Comment 2 Martin Stransky 2014-06-26 10:13:49 UTC
Jan, could you check this one?

Comment 3 Jan Horak 2014-09-04 12:55:06 UTC
Problem is that these miss translation in following files:
http://mxr.mozilla.org/mozilla-central/source/toolkit/locales/en-US/chrome/global/languageNames.properties
http://mxr.mozilla.org/mozilla-central/source/toolkit/locales/en-US/chrome/global/regionNames.properties

Feel free to attach patch with correct language/region code to language/region name mapping that we can try to propagate it to upstream.

Upstream does not provide mentioned dictionaries so translation is missing for them.

Comment 4 Mattias Ellert 2014-10-22 21:53:19 UTC
Created attachment 949584 [details]
script to generate language list from isocodes xml file

This script generates a language list based on /usr/share/xml/iso-codes/iso_639.xml

Some of the generated entries needs some cleanup, e.g. these entries are not optimal:

nb = Bokmål, Norwegian; Norwegian Bokmål
nn = Norwegian Nynorsk; Nynorsk, Norwegian

The entries in the existing languageNames.properties are better:

nb = Norwegian Bokm\u00e5l
nn = Norwegian Nynorsk

But the generated list gives an idea about missing entries.

Comment 5 Mattias Ellert 2014-10-22 21:55:27 UTC
Created attachment 949585 [details]
output generated by the lang.py script

Comment 6 Fedora End Of Life 2015-05-29 12:09:33 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2017-07-25 18:40:31 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-08-08 11:47:12 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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