Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1493582 - Fedora builds use nonstandard locale codes
Summary: Fedora builds use nonstandard locale codes
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-20 14:26 UTC by Michal Stanke [:MikkCZ][:mstanke] (use needinfo)
Modified: 2017-09-21 09:55 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-21 09:55:05 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github MikkCZ pontoon-tools issues 37#issuecomment-330837424 0 None None None 2017-09-20 14:27:32 UTC
Launchpad 1718448 0 None None None 2017-09-20 14:45:40 UTC

Description Michal Stanke [:MikkCZ][:mstanke] (use needinfo) 2017-09-20 14:26:33 UTC
Steps to Reproduce:
1. Install Czech version of Fedora.
2. Open pre-installed Firefox.
3. Open about:config and find "general.useragent.locale".

Actual results:
The value "cs-CZ" is non-standard (Mozilla builds have "cs" only, respectively for all languages use two character codes unless there are more regions). Consequently is breaks the usage of WebExtensions i18n API [1], returning value that is not expected by extensions.

Expected results:
The "general.useragent.locale" should be the same as for builds made by Mozilla and correspond to the Mozilla locale ("cs" in case of Czech).

Mozilla builds and languages:
https://product-details.mozilla.org/1.0/firefox_primary_builds.json
https://product-details.mozilla.org/1.0/languages.json

Additional info:
[1] https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/i18n/getUILanguage

Comment 1 Michal Stanke [:MikkCZ][:mstanke] (use needinfo) 2017-09-21 09:55:05 UTC
Turned out to be a bug in localization upstream (in toolkit/chrome/global/intl.properties).


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