Closed Bug 284560 Opened 19 years ago Closed 19 years ago

Can't add English [en] to the language list

Categories

(Firefox :: Settings UI, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: osaier, Assigned: bugs)

References

Details

(Keywords: intl)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050302 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050302 Firefox/1.0+

1. Go to options>advanced>general>edit languages...
2. Remove English [en]
3. Try to add it back

Reproducible: Always

Actual Results:  
Clicking the Add button has no visible effect


It can still be added by editing the intl.accept_languages pref.
Keywords: intl
I confirm this, can't seem to add english[en] as well.
Version: unspecified → Trunk
->NEW
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch patchSplinter Review
String 'en' matches 'en-us', so we cannot add language 'en'.

This patch also fixes:
Bug 284088 - Removing the first language in list doesn't work properly
Attachment #176140 - Flags: review?
Comment on attachment 176140 [details] [diff] [review]
patch

Looks OK, but fix these nits:

>+        languagesArray.push( item.id );

No whitespace around item.id.

>+    var string = languagesArray.join(',');

These files standardize on " for quotes, not '

... then r=ben@mozilla.org
I fixed the nits and checked this in. 
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #176140 - Flags: review? → review+
Blocks: 284088
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs,
filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → preferences
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: