Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Firefox (v. 26 for Ubuntu). I'm the the U.S., and I keep setting the spell check to U.S. English (right click on a word marked as incorrectly spelled, choose Languages, then the correct one.) It briefly remembers, but after an hour or so (even within the same session) it reverts to Canadian English. I'm a web developer and am fine with hacking about:config, but although I've set spellchecker.dictionary to en_US, it doesn't seem to stick around.

Is there any other setting I'm missing?

share|improve this question
    
Ideally, intl.accept_languages, and general.useragent.locale would be en-US too. Also, if the current Firefox edition is a different one, you could try installing the en-US edition. Otherwise if there are extra dictionaries other than the default builtin corresponding to en-US, try disabling/removing them via Tools (Alt + T) > Add-ons. –  vWil Dec 17 '13 at 16:27
    
Thanks; I'll try these suggestions when I get home tonight. –  EmmyS Dec 17 '13 at 19:45
    
Well, I set both of those config properties to en-US and restarted with high hopes. No luck; still insists I'm Canadian. I guess I'll try disabling them and see what happens. EDIT: no can do. The only languages listed there are South African and Great British English. Canadian isn't even a choice. How would I know if it's not a US English edition of Firefox. About only shows that it's the version created specifically for Ubuntu. –  EmmyS Dec 18 '13 at 2:08
    
Right-click general.useragent.locale and Reset to revert to, and reveal the original locale (Fx) info. If Firefox was installed via the OS tools then usually it would be equivalent to the current OS language/internalization settings unless a different Firefox edition was explicitly chosen. You can view the current OS locale details by entering locale in the terminal. Also, can you please check if this happens in a new Firefox profile. –  vWil Dec 18 '13 at 14:01
    
Reset is grayed out, so I have to assume that it's never been changed. Per locale, Ubuntu knows that I'm in the U.S. And I've never had any other location-based issues (i.e. time zones, etc.) It's only ever been a problem with the FF spellchecker. And yes, it happens with new FF profiles as well. –  EmmyS Dec 19 '13 at 3:52
show 3 more comments

migrated from webapps.stackexchange.com Dec 15 '13 at 1:22

This question came from our site for power users of web applications.

1 Answer

I have a workaround that works for me, but it involves modifying system myspell libraries.

On ubuntu, this solution appears to work: Askubuntu.com: How can I change Firefox's default dictionary

But somebody may not be using Ubuntu, like myself. I'm using Gentoo, and at this time, all the en_* variations are part of the same package, app-dicts/myspell-en

So my solution is to just delete the ones I've no use for:

cd /usr/share/myspell
ls -lah
total 25M
drwxr-xr-x   2 root root 4.0K Apr 17 11:25 .
drwxr-xr-x 438 root root  16K Apr 12 19:27 ..
-rw-r--r--   1 root root  306 Apr 17 11:25 dictionary.lst.en
-rw-r--r--   1 root root  37K Apr 17 11:25 en_AU.aff
-rw-r--r--   1 root root 552K Apr 17 11:25 en_AU.dic
-rw-r--r--   1 root root 1.8K Apr 17 11:25 en_CA.aff
-rw-r--r--   1 root root 683K Apr 17 11:25 en_CA.dic
-rw-r--r--   1 root root  27K Apr 17 11:25 en_GB-oed.aff
-rw-r--r--   1 root root 513K Apr 17 11:25 en_GB-oed.dic
-rw-r--r--   1 root root  27K Apr 17 11:25 en_GB.aff
-rw-r--r--   1 root root 515K Apr 17 11:25 en_GB.dic
-rw-r--r--   1 root root  28K Apr 17 11:25 en_NZ.aff
-rw-r--r--   1 root root 524K Apr 17 11:25 en_NZ.dic
-rw-r--r--   1 root root 3.0K Apr 17 11:25 en_US.aff
-rw-r--r--   1 root root 680K Apr 17 11:25 en_US.dic
-rw-r--r--   1 root root  27K Apr 17 11:25 en_ZA.aff
-rw-r--r--   1 root root 577K Apr 17 11:25 en_ZA.dic
-rw-r--r--   1 root root  78K Apr 17 11:25 hyph_en_GB.dic
-rw-r--r--   1 root root  18M Apr 17 11:25 th_en_US_v2.dat
-rw-r--r--   1 root root 3.0M Apr 17 11:25 th_en_US_v2.idx
rm en_AU.*
rm en_CA*
rm en_ZA*
ls -lah
total 23M
drwxr-xr-x   2 root root 4.0K Apr 17 11:31 .
drwxr-xr-x 438 root root  16K Apr 12 19:27 ..
-rw-r--r--   1 root root  306 Apr 17 11:25 dictionary.lst.en
-rw-r--r--   1 root root  27K Apr 17 11:25 en_GB-oed.aff
-rw-r--r--   1 root root 513K Apr 17 11:25 en_GB-oed.dic
-rw-r--r--   1 root root  27K Apr 17 11:25 en_GB.aff
-rw-r--r--   1 root root 515K Apr 17 11:25 en_GB.dic
-rw-r--r--   1 root root  28K Apr 17 11:25 en_NZ.aff
-rw-r--r--   1 root root 524K Apr 17 11:25 en_NZ.dic
-rw-r--r--   1 root root 3.0K Apr 17 11:25 en_US.aff
-rw-r--r--   1 root root 680K Apr 17 11:25 en_US.dic
-rw-r--r--   1 root root  78K Apr 17 11:25 hyph_en_GB.dic
-rw-r--r--   1 root root  18M Apr 17 11:25 th_en_US_v2.dat
-rw-r--r--   1 root root 3.0M Apr 17 11:25 th_en_US_v2.idx

And then remove the unwanted lines from dictionary.lst.en

Note: No ZA/CA/AU

# Autogenerated by app-dicts/myspell-en-20081002
DICT en GB en_GB
DICT en US en_US
DICT en NZ en_NZ
DICT en GB en_GB-oed
HYPH en US hyph_en_GB
HYPH en GB hyph_en_GB
THES en US th_en_US_v2
THES en GB th_en_US_v2

And after doing that and restarting firefox, my menu is as follows:

Screenshot of my language menu showing US and GB and NZ with NZ at the top and no CA/AU

And this is adequate for me, gives me the language default I want, but the others are still there if I desperately need them.

( Though i've still to work out what governs the sort order, if I could work that out I could just rig the default to come first )

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.