Closed Bug 535422 Opened 15 years ago Closed 12 years ago

Language code 'dsb' not recognised by spellchecker language selector

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: derbeth.fora, Assigned: GPHemsley)

References

(Depends on 1 open bug)

Details

(Whiteboard: [bcp47])

Attachments

(1 file, 2 obsolete files)

User-Agent:       Opera/9.64 (Windows NT 5.1; U; de) Presto/2.1.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)

There are two add-ons:
https://addons.mozilla.org/de/firefox/addon/3956
https://addons.mozilla.org/de/firefox/addon/13201

If I install the first, dictionary files 'hsb.dic' and 'hsb.aff' are used. If I install the second, dictionary files 'dsb.dic' and 'dsb.aff' are used. When I right-click on a text field and select language for the spellchecker, I have on my list localized 'Upper Sorbian' (for 'hsb') and 'dsb' (for 'dsb').



Reproducible: Always

Steps to Reproduce:
1. Download and install the add-on https://addons.mozilla.org/de/firefox/addon/13201
2. Visit some page with multi-line text field
3. Right click on the text field and try to choose a language
Actual Results:  
'dsb' for Lower Sorbian language

Expected Results:  
Since both 'dsb' and 'hsb' are valid ISO-639-2 language codes (http://en.wikipedia.org/wiki/Lower_Sorbian_language http://en.wikipedia.org/wiki/Upper_Sorbian_language), I would expect having localized name of Lower Sorbian language displayed in spellchecker.
Reason is a missing entry in file languageNames.properties: There should be the entry "dsb=Lower Sorbian".
Attached is a patch to add this language code, and language codes of other dictionaries available in Fedora 13 which don't currently get assigned Human readable names in the Firefox spell checker list
I imagine that this should probably be assigned to the same component and assignee as similar but resolved bug 532496
Assignee: nobody → smontagu
Status: UNCONFIRMED → NEW
Component: Spelling checker → Internationalization
Ever confirmed: true
QA Contact: spelling-checker → i18n
Depends on: 666731
Blocks: bcp47
Whiteboard: [bcp47]
No longer blocks: bcp47
Depends on: bcp47
Depends on: 666662
Depends on: 716321
No longer depends on: 666662
No longer depends on: bcp47
To keep things simple, creating a patch for adding only Lower Sorbian [dsb].
Assignee: smontagu → gphemsley
Attachment #439695 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #658101 - Flags: review?(l10n)
Attachment #658101 - Flags: review?(jfkthame)
Attachment #658101 - Flags: review?(l10n) → review+
Attachment #658101 - Flags: review?(jfkthame) → review?(smontagu)
Comment on attachment 658101 [details] [diff] [review]
Add support for Lower Sorbian [dsb]

Review of attachment 658101 [details] [diff] [review]:
-----------------------------------------------------------------

Need to patch langGroups.properties also
(In reply to Simon Montagu from comment #5)
> Comment on attachment 658101 [details] [diff] [review]
> Add support for Lower Sorbian [dsb]
> 
> Review of attachment 658101 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Need to patch langGroups.properties also

Fine that this bug will be fixed soon.

If you set the encoding in langGroups.properties use please "x-central-euro", not x-western. 

If it is possible, change this for Upper Sorbian (hsb) as well. At present "hsb=x-western" is displayed there, should be "hsb=x-central-euro". I know that is another bug (but I think a not filed one) but it would be good if you could change this as well when you will modify this file for dsb.

Thanks,
Michael
Include langGroups (x-central-euro).
Attachment #658101 - Attachment is obsolete: true
Attachment #658101 - Flags: review?(smontagu)
Attachment #660886 - Flags: review?(smontagu)
Attachment #660886 - Flags: review?(jfkthame)
Attachment #660886 - Flags: review?(smontagu) → review+
(In reply to Michael Wolf from comment #6)
> If it is possible, change this for Upper Sorbian (hsb) as well. At present
> "hsb=x-western" is displayed there, should be "hsb=x-central-euro". I know
> that is another bug (but I think a not filed one) but it would be good if
> you could change this as well when you will modify this file for dsb.

Spun off into bug 791027.
See bug 716321 comment 14 for checkin information.
Keywords: checkin-needed
Attachment #660886 - Flags: review?(jfkthame)
https://hg.mozilla.org/mozilla-central/rev/114505455432
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
No longer depends on: 716321
Blocks: 393194
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: