i18n: language code nds not resolved in spell checker list
Categories
(Core :: Spelling checker, defect)
Tracking
()
People
(Reporter: giacomo.dantonio, Unassigned)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0
Steps to reproduce:
I'm writing an add-on to add low german (nds) spell check to Firefox.
So far the spell check works when I load the add-on in debug mode.
To test it out on your side, you need to clone this repository and add the add-on in the about:debugging page: https://github.com/giacomo-dantonio/mozilla_nds_addon
Actual results:
When I open the context menu for spell check, the language is shown as "nds (Deutschland)". All other languages are shown with their colloquial names (e.g. Niederländisch, or Englisch, etc.).
I'm attaching a screenshot of this.
Expected results:
The menu entry for nds should have been "Niederdeutsch (Deutschland)" or "Plattdeutsch (Deutschland)", or something similar.
Since nds is an ISO 639-2 code, I think this is reasonable.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Spelling checker' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•3 years ago
•
|
||
:flod, I guess this is because https://searchfox.org/mozilla-central/source/toolkit/locales/en-US/toolkit/intl/languageNames.ftl does not include language-name-nds
, is it?
(Per https://searchfox.org/mozilla-central/rev/2fd70a667e6f89a9ec6622ecb302b1ab48e4a062/toolkit/modules/InlineSpellChecker.jsm#289 I think yes)
Comment 3•3 years ago
|
||
That's correct.
There are hundreds of language names (ISO 639-2 has more than 500), so we consciously only add locales that we ship in Firefox at this point. Adding a locale name to that file is part of a checklist when a localization moves to Beta, not even when they start in Nightly.
I'm afraid this makes it a WONTFIX.
Comment 4•3 years ago
|
||
Thanks!
I feel like there should be a way to show at least an untranslated language name so that it can at least show a human readable word, but I understand that this is a fairly niche case.
Description
•