Mozilla Thunderbird and Firefox spellcheck has too many languages

Bug #651586 reported by komputes
174
This bug affects 31 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Confirmed
Undecided
Unassigned
language-selector (Ubuntu)
Triaged
Medium
Unassigned
libreoffice (Ubuntu)
Confirmed
Medium
Unassigned
libreoffice-dictionaries (Ubuntu)
Won't Fix
Medium
Unassigned
thunderbird (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: thunderbird

Mozilla Thunderbird and Firefox spellcheck has too many languages. It does not follow the Ubuntu Language Support Standard (gnome-language-selector).

Language Support (gnome-language-selector) has a feature which allows you to gray out languages you are not interested in seeing and black in the languages you would like to see. Mozilla apps should follow this or should at least offer a workaround allowing a user to disable certain languages.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: thunderbird 3.0.8+build2+nobinonly-0ubuntu0.10.04.1
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic i686
Architecture: i386
Date: Wed Sep 29 17:49:00 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Release Candidate i386 (20100419.1)
ProcEnviron:
 LANGUAGE=en_US:en_CA:en
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: thunderbird

Revision history for this message
komputes (komputes) wrote :
Revision history for this message
komputes (komputes) wrote :
Revision history for this message
komputes (komputes) wrote :
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Hi,

Firefox and Thunderbird both offer the dictionaries installed on the system (which I believe is correct). It's not really obvious what the significance of the greyed out entries are in gnome-language-selector.

As another example, if you open gedit and go to Tools -> Set Language, it will present you with the same list of dictionaries installed on the system (just like Firefox, but in a dialog rather than a menu).

If you want to hide certain languages in the spellcheckers, then gnome-language-selector allows you to uninstall these components (Install/Remove Languages, and then uncheck the Spellchecking and writing aids checkbutton for the languages you don't want to see)

Revision history for this message
komputes (komputes) wrote :

Thanks for trying to help me with this. Unfortunately if I do this I will remove all English spell checking from the system. I just want to remove 7 of the 8 English entries (see screenshot). The "Install/Remove" window doesn't seem to be doable using gnome-language-selector since it only shows me "English" and not "English (Australia), English (Canada), English (United States), etc..."

However I beleive that the significance of the grayed out entries are in gnome-language-selector means that they are installed but are not in use and will not be presented to the user. This is my opinion, and unfortunately (from my research) language-selector is undocumented. I guess it will have to be up to the maintainer or developers (subscribed) to tell us the purpose of the grayed languages feature.

Revision history for this message
Pedro Bezunartea López (pedro-bezunartea) wrote :

This is a long standing issue. I've seen posts from 2007. I need spell checking in 3 languages: spanish (spain), english (uk) and german (germany). Unfortunately, I get a menu with 42 "different" options: German (Luxembourg), German (Austria), ..., Spanish (Argentina), Spanish (Spain), etc, etc, etc.

Expected behaviour:
1. Have some application (system preferences, myspell, firefox, ...) where to select the preferred languages.
2. Show ONLY those selected options in any application that uses the myspell dictionaries.

Every time I need to select a different dictionary I spend 5 minutes cursing in any known, and unknown language until I find the one I need... please help!

Revision history for this message
Roland Giesler (lifeboy) wrote :

Firefox seems to detect different spell checkers now. I can add Afrikaans to firefox, but it doesn't appear in the hunspell list. The same goes for en-za.

Can someone shed some light of the various methods FF can use (version 3.6 upwards it seems)? Maybe we can find a workaround in the meantime?

Revision history for this message
Leo (leorolla) wrote :

If you type e-mails in 4 differente languages, and you have to switch among these 4 dozens of times a day, you will understand how horrible it is to have 30 options rather than 4 every single time you want to switch. There is even a rolling bar!

If one of these languages is spanish, it gets worse.

Changed in firefox (Ubuntu):
status: New → Confirmed
Changed in language-selector (Ubuntu):
status: New → Confirmed
Changed in thunderbird (Ubuntu):
status: New → Confirmed
Revision history for this message
Fiable.biz (fiable.biz) wrote :

This bug is still in Ubuntu 11.04 with Mozilla Firefox 4.01. According to https://bugzilla.mozilla.org/show_bug.cgi?id=631516 , it's an Ubuntu bug, not a Mozilla one.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

As regards language-selector, its behavior is documented in Natty. You can reach the help document, which e.g. explains the meaning of the greyed menu items in the combobox on the "Language" tab, by clicking the "Help" button when in Language Support.

Furthermore, this is reasonably not a language-selector bug, at least not in Natty, where the list of display languages consists of available translations. I invalidated the language-selector bug.

The use of the word "dictionary" confuses me. The long lists seem to consist of locales, not dictionaries. Maybe there is just one dictionary for Spanish spell checking, for instance. Thunderbird and gedit still show all available locales that relate to the installed languages, which does not make sense IMO.

Changed in language-selector (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Martin Pitt (pitti) wrote :

It seems we actually can do something about this in check-language-support by not installing e. g. the -en-za dictionary if the user only selected e. g. "English (UK) / English" in the language preference list. With the static language-support-LL packages gone, it should actually be feasible to make this more dynamic now.

Changed in language-selector (Ubuntu):
importance: Undecided → Medium
status: Invalid → Triaged
Revision history for this message
Fabián Rodríguez (magicfab) wrote :

(Destructive) workaround which I tested and did it for me:
http://ubuntuforums.org/showpost.php?p=10085577&postcount=5

Revision history for this message
Andres Muniz (andresmp) wrote :
Revision history for this message
Andres Muniz (andresmp) wrote :

@Fabian Rodriguez the link you show suggestes removing links to unused files from
file:///usr/share/myspell/dicts/

I have found that I have:

file:///usr/share/myspell/dicts/en-GB.aff

file:///usr/share/myspell/dicts/en-GB.dic

file:///usr/share/myspell/dicts/en_CA.aff

file:///usr/share/myspell/dicts/en_CA.dic

file:///usr/share/myspell/dicts/en_GB.aff

file:///usr/share/myspell/dicts/en_GB.dic

file:///usr/share/myspell/dicts/en_ZA.aff

file:///usr/share/myspell/dicts/en_ZA.dic

I should only have GB and ES spain. What GB do you suggest removing? is CA spanish? what is za?

komputes (komputes)
tags: added: css-sponsored-p
komputes (komputes)
tags: added: rls-mgr-p-tracking
Revision history for this message
Sicco van Sas (sicco) wrote :

I have the same problem. Too many types of English and Dutch show up in Thunderbirds spelling checker. Renaming(/backupping) the obsolete .aff and .dic files in /usr/share/hunspell fixed the problem for me.

Martin Pitt (pitti)
tags: removed: rls-mgr-p-tracking
Revision history for this message
madbiologist (me-again) wrote :

@Andres Muniz (andresmp) - CA is the Canada locale and ZA is South Africa (taken from it's name in Dutch: Zuid-Afrika). See http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 but don't confuse them with the two-letter language codes (such as en) described at http://en.wikipedia.org/wiki/ISO_639-1
The two are combined to make IETF language tags you listed, as described at http://en.wikipedia.org/wiki/IETF_language_tag

Revision history for this message
madbiologist (me-again) wrote :

Official support for the desktop version of Ubuntu 10.04 LTS "Lucid Lynx" ended on May 9, 2013. Official support for Ubuntu 11.04 "Natty Narwhal" ended on October 28, 2012. Is this still occurring in Ubuntu 13.04 "Raring Ringtail" with Firefox 23?

Changed in firefox (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Sicco van Sas (sicco) wrote :

madbiologist, yes this still occurs on Ubuntu 13.04 with Firefox 23. I have a laptop with the English and Dutch languages installed and the default available spell checking languages in Firefox are 6 versions of Dutch (Dutch Belgium, Dutch Antilles, Dutch Suriname, Dutch Aruba, Dutch Dutch and Dutch while I only need one version of Dutch and 4 versions of English (English UK, English USA, English South Africa, English Australia) while I only want the UK and USA versions. Note that I specified these preferences in Ubuntu's language settings (though these settings show a different selection of language varieties, e.g. only 1 Dutch version and no English South Africa, but does list English Canada and English New Zealand).

Revision history for this message
kolya (mar-kolya) wrote :

This problem still exists in 13.04

Changed in firefox (Ubuntu):
status: Incomplete → Confirmed
madbiologist (me-again)
tags: added: natty raring
Revision history for this message
Cristobal Tapia (crtapia) wrote :

So, is this bug ever going to be fixed?

Revision history for this message
komputes (komputes) wrote :

I really hope so. Spell check in default mozilla applications is bulky and needs to simplified.

Mozilla developers, please have a look at how Chromium handles the the same task, I am honestly impressed. (see attachment)

Revision history for this message
Tom K. C. Chiu (tomchiukc) wrote :

Is it possibly the same as #1066720? Is there any way we the users can help to trace back the bug?

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

This is not related to bug #1066720.

My answer at http://askubuntu.com/questions/545356 might help illustrate the nature of the issue reported in this bug report.

Revision history for this message
Tom K. C. Chiu (tomchiukc) wrote :

My point: It is difficult or even impossible for people to add a new spellcheck in Chromium.

It does not take short period for a language to collect enough statistics to build a spellchecker. At least it takes the following steps:
1. Well documented.
2. Revival it for using it more.
3. Have enough articles to generate statistics, or have an organization to check every text produced and justified about the spelling / orthography.
4. Generating the .dic / .aff

I read from Wikipedia and Evertype.com that Ireland that nearly a hundred years to revival the written Irish Gaelics. And now, the aboriginal Taiwanese started to have textbook in their own around ten years ago. It is about the time the first generation of kids educated in their aboriginal language are capable to analyse their native tongue. I see studies of their languages as well as language tools emerging.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Adding libreoffice and libreoffice-dictionaries as affected packages.

Basically, if I understand it correctly, the symlinks, which cause all the items in e.g. Firefox and Thunderbird, are there to ensure that the dictionaries are properly recognized by LibreOffice irrespective of the language/country combination in the effective system locale. So if it would be doable to change the LibreOffice behavior in this respect, we could get rid of many of the items in the spellcheck lists of other applications.

Changed in libreoffice (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Changed in libreoffice-dictionaries (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Mattia Rizzolo (mapreri) wrote :

We just had another package that likes and wants more symlinks, and I'm going to approve that and add more symlinks. I don't think removing them is the way to go atm, rather firefox and thunderbird could do something to deduplicate them (but it needs to be clever, as not necessarily all en_* (or whatever) are the same).

Changed in libreoffice-dictionaries (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
mag (mg5) wrote :

This has become a problem again with me. I used the "$HOME/.local/share/myspell-selected" workaround from https://askubuntu.com/questions/299398/mozilla-thunderbird-spellcheck-has-too-many-listed-languages but it stopped working again a while ago (a year?).

In thunderbird spellcheck I how have
- 6 varieties of German
- 7 varieties fo French
- 5 varieties of English and
- 19 varieties of Arabic

I'm using English localization and have AR, DE, FR installed as I need the keyboard from time to time. Not sure why it is not possible to select only ONE variety of each language. (Especially for Arabic I have the impression that the varieties are for the most part only copies of Standard Arabic. Would be helpful if a solution comes up some time.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.