How to prevent firefox from using foreign language dictionaries?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to prevent firefox from using foreign language dictionaries?
Firefox has started choosing the wrong language (randomly so far as I can tell) for spell checking.
A google search found many references to the problem, with suggestions to remove the unwanted dictionaries from firefox's addons.
But there were NO dictionaries in firefox's addons, not American English and not any other. But firefox was still finding foreign language dictionaries to use for spell check.
So I installed the firefox addon for an American English dictionary. But that made no difference. It still selects either French or Canadian English most of the time.
I expect my Centos system has foreign language dictionaries installed in some other package and firefox manages to find and use those. I don't need foreign language dictionaries on this computer, so if I knew what/where they were, I would probably uninstall them.
The real question is how to make firefox consistently spell check using American English. If the best way to do that is find and uninstall the other dictionaries then how do I do that? If there is some other way to force American English, what is that?
For a one time force of American English, I followed the instructions to right click in the box where the spell check is occurring and select language then select the desired language. Usually my selection doesn't take and that gets me to (or back to) Canadian English. If I try that several times, it then takes and I have American English for that one dialog, then back to French or whatever for the next.
Go go into a text box such as the one you use to answer this post. Right-click on the text box and a menu will appear. You should see an item called Check Spelling and a check mark should appear to the left of this item. If the check mark is not there then click on the item and it should appear. When it appears you should see another item called Languages appear below the Check Spelling item. Click on that one and then you can select the language you want to spell check. If you don't see the language you want to spell check then click on Add Dictionaries... and add the one you want. You can remove unwanted languages by removing the relevant files in the .mozilla folder.
jdk
When it appears you should see another item called Languages appear below the Check Spelling item. Click on that one and then you can select the language you want to spell check.
Yes, that is what I described in the last paragraph of my post. The thing that takes a few tries and then lets me do a one time override of the language choice. Then it reverts to apparently random.
Quote:
You can remove unwanted languages by removing the relevant files in the .mozilla folder.
Can you be more specific?
I searched the whole directory tree starting from ~/.mozilla and I don't see anything that looks language specific other than (deap in a sub sub directory) the en-US@dictionaries.addons.mozilla.org
that (in my first post) I described adding.
Like the solutions that google found, you are telling me to remove unwanted languages. But where are these unwanted languages hidden? The spell checker obviously can find them. But so far I can't.
On my system (Kubuntu 12.04) there's an "/usr/lib/firefox/dictionaries" folder. It has dictionaries for the different languages you describe.
Code:
$ dpkg -S /usr/lib/firefox/dictionaries/*
dpkg-query: no path found matching pattern /usr/lib/firefox/dictionaries/en_AU.aff.
dpkg-query: no path found matching pattern /usr/lib/firefox/dictionaries/en_AU.dic.
dpkg-query: no path found matching pattern /usr/lib/firefox/dictionaries/en_GB.aff.
dpkg-query: no path found matching pattern /usr/lib/firefox/dictionaries/en_GB.dic.
dpkg-query: no path found matching pattern /usr/lib/firefox/dictionaries/en_US.aff.
dpkg-query: no path found matching pattern /usr/lib/firefox/dictionaries/en_US.dic.
dpkg-query: no path found matching pattern /usr/lib/firefox/dictionaries/en_ZA.aff.
dpkg-query: no path found matching pattern /usr/lib/firefox/dictionaries/en_ZA.dic.
The dictionaries don't appear to be owned by a package though the folder itself appears to be a part of the firefox package on my system...
I would say it's probably safe to manually remove them if you have a similar configuration as myself. I found the dictionaries with the mlocate package command locate.
Code:
# updatedb
$ locate firefox | grep dict
EDIT:
After removing the dicts I had to restart Firefox for it to take effect. At this point I think I'm going to remove all of them and install the dictionary through addons.
Thanks for the help. I was so busy I didn't have time to try it for a while.
On my system /usr/lib64/firefox/dictionaries was a symlink to /usr/share/myspell which contained US, GB and CS versions of en_ dictionaries together with a lot of other country's en_ dictionaries that were each symlinks (almost all to the GB version). I deleted all that except en_US.
But that did not fix the problem. It still randomly switches to Canadian English but no longer has that dictionary, so every word is marked as mis spelled.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.