de

designoir

icon Dictionary Switcher

Screenshot

Toggles between the installed dictionaries automatically or manually and displays the currently selected dictionary in the status bar.

See also: Dictionary Switcher for Thunderbird

Versions

2009-12-08: 1.0.1 @ AMO / local mirror
umlaut handling fixed
2008-06-23: 1.0
support for rich text editors (e.g. Gmail)
2008-06-04: 0.9
smarter auto-detection based on the host
default dictionary selection at startup fixed
added workaround for bug 436717
added support for Firefox 3.1a1pre
2008-05-27: 0.8.1
compatible with Firefox 3
2007-01-16: 0.8
experimental support for as-you-type detection
added a list of installed dictionaries to the context menu
localized: ko-KR
2007-01-02: 0.7.2
compatible with Firefox 3.0a2
localized: ca-AD, tr-TR
auto-detection enabled by default
2006-12-13: 0.7.1.3
small fix
2006-12-12: 0.7.1.2
small fix
2006-12-12: 0.7.1.1
bugfix for Firefox 2 (rechecking failed)
2006-12-12: 0.7.1
changing the dictionary on a site affects all textareas, if none is focused
fixed bug where the spellcheck UI would contain duplicated dictionary entries
2006-12-09: 0.7
automatically remember the dictionary when it has been changed manually for a site
don’t turn off auto-detection when the dictionary has been changed manually
predicate that the language was automatically detected only if it actually succeeded
2006-12-09: 0.6.3
label not highlighted but made bold if the dictionary is remembered for the current site
2006-11-28: 0.6.2
don’t recheck form field after switching language, if it’s not inside of the active tab
label highlighted if the dictionary is remembered for the current site
2006-11-26: 0.6.1
recheck form field after switching language (even if spellchecking UI hasn’t been initialized yet)
2006-11-26: 0.6
recheck form field after switching language
localized: hr, hu
2006-11-09: 0.5.4
localized: da, zh-TW, es-AR, pt-BR
2006-11-06: 0.5.3
localized: nl
2006-11-06: 0.5.2
some small fixes
localized: sv-SE
2006-11-06: 0.5.1
localized: fr, it, pl, ru, sk, uk-UA, zh-CN
2006-11-05: 0.5
internationalization
localized: de-DE
2006-11-04: 0.4.5
prevent memory leak
2006-11-03: 0.4.4
fixed: initialization fails when no dictionary was selected previously
2006-11-03: 0.4.3
fixed: initialization fails with blank startup page
2006-11-01: 0.4.2
some minor fixes
added support for Firefox 3.0a1
2006-10-03: 0.4.1
auto-detection
remember locale for sites

Comments / show all

  1. Chas wrote on November 16, 2009 12:47 AM GMT ():
    Dictionary Switcher 1.0 - It would be nice if the padding to the Left & Right of the StatusBar wording was not so large. My other Extension all seem to be around 10px.

    FF3.5.5 - Mac OS 10.5.8
    Theme - Mostly Crystal 3.5.1 (modified for Mac OS)
    Other StatusBar Ext - FlagFox, FoxClocks, QuickPageZoom
  2. simon wrote on December 1, 2009 10:07 AM GMT ():
    i does not install for me under ff 3.5.5
  3. Johan Walles wrote on December 8, 2009 12:52 PM GMT ():
    1.0 works very sporadically on Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.9.0.15) Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/3.0.15.

    Having responses to this e-mailed to johan.walles@gmail.com would be great!

    Try this:
    * Open GMail (Swedish UI in case that matters).
    * Start composing a new e-mail.
    * Write a sentence in Swedish in the mail-text field (I tried “Det här är kungens svenska”).
    * My status bar says: “auto: en-AU” (Swedish expected).
    * Switch to a new tab and back.
    * My status bar now says “auto: sv”. Seems correct, but why did I have to switch tabs?
    * Press an arrow key to move the cursor. The status bar changes to “auto: en_US”. Expected Swedish.

    Enabled options:
    “Detect dictionary as I type”
    “Ställ in språk automatiskt” (set language automatically).

    Disabled options:
    “Kom ihåg vald ordlista för denna webbplats” (remember selected dictionary for this web site).
  4. geek wrote on January 4, 2010 07:05 AM GMT ():
    please make the icon visible in the navigation toolbar too, not just in the statusbar. Thanks!
  5. Guido wrote on January 10, 2010 08:02 PM GMT ():
    It would be a nice feature if the add-on would take less space in your status bar by displaying a flag for the current language it’s using. When using auto-detect it shouldn’t display it but just show the flag.
  6. Szabolcs wrote on February 1, 2010 02:32 PM GMT ():
    Hello,

    Have you considered adding an option to use Google’s language detection API for better accuracy and performance? This obviously has drawbacks and cannot work in all situations (and might even require manually setting the preferred dictionary for each language), but I think it’ll work in the majority of cases. And when it works, it might actually work better than the current way.

    Problems with the current method are bad performance (occasional hangs) and very low accuracy when many dictionaries are installed. For example, while typing five relatively long sentences in Hungarian in Gmail, it started out with en-US, then kept switching back and forth between the British and the Greek-English combined dictionaries. But not once did it switch to the Hungarian one.
  7. Borek wrote on February 7, 2010 04:54 PM GMT ():
    When writing a new email in Czech in GMail, and after having about 2 lines written, this addon incorrectly switches to en-US which is weird because in cs_CZ, there are almost none red squiggly lines while after the switch, my text goes all red. The only options selected is “Detect dictionary as I type”, the other two are unchecked. Is this a known issue?
  8. René wrote on February 22, 2010 09:19 PM GMT ():
    Die Anzeige in der Statusleiste funktioniert im FF 3.6 bei mir nicht.

    Woran könnte das liegen?
  9. AnthonyDa wrote on February 25, 2010 03:51 PM GMT ():
    Hi, can you please add Chatzilla support for this extension ? Thx.
  10. Radek wrote on March 17, 2010 03:34 AM GMT ():
    hi, it is a great add-on.These days everybody needs something like that. Thank you for that. Radek
  11. Aldo wrote on March 20, 2010 07:06 PM GMT ():
    Handy add-on.

    One issue I have observed: I have American (en-US), Australian (en-AU) and British (en-UK) dictionaries installed. Pages that only specify English (en) default to the first (alphabetically) dictionary, namely Australian. It would be preferable to have a default dictionary in such cases, or go by the “accept-language” preference in the browser.

    Thanks for your good work.
  12. firefexx wrote on April 7, 2010 02:05 PM BST ():
    Klasse AddOn!
    Aber es wäre echt richtig klasse, wenn man die Einstellung vornehmen könnte welche Sprachen zur Auswahl stehen sollen. Bisher ist es ja die einzige Möglich die switch.js zu editieren. Eine Option wäre echt super. Denn unter Linux sind auch öfter mal ganze Sprachpakete installiert mit 20 Englisch Wörterbüchern aus sämtlichen Ländern. Da wäre soetwas doch ganz hilfreich.
  13. antistress wrote on April 11, 2010 05:32 PM BST ():
    thanks for the extension but i can’t find what is the license : is it free software (as in free speech)
  14. ed wrote on April 16, 2010 04:06 AM BST ():
    Hi,
    cool extension long time I was looking for it. Is there a way to remove the statusbar “icon” and use the toolbar button only ? Maybe by adding some entry to about:config ??
  15. Lo’oris wrote on May 5, 2010 02:28 PM BST ():
    would it be possible to assign a keyboard shortcut to change the language?
  16. Nörde wrote on May 6, 2010 12:19 PM BST ():
    1.0.1 doesn’t recognize finnish dictionary as installed. I can change it with right click -> languages -> finnish / Finland. But the right click menu of DS only recognizes en-US
  17. Tigerix wrote on June 11, 2010 11:16 AM BST ():
    Thanks for this excellent and really useful extension.
    One thing which I would really wish for is a hotkey to switch between languages. This way I could change the language while I am writing a text with just a keystroke without having to take my hands of the keyboard (to the mouse).
  18. noor shahzad wrote on July 9, 2010 04:12 AM BST ():
    pleas add ons this dictionary
  19. Florian wrote on July 23, 2010 11:09 AM BST ():
    Hi!
    Exactly what I was looking for. Thank you! Doesn’t work all the time, but often enough ;-) Switching tabs seems to help to make it re-auto-detect…
  20. Julian wrote on July 27, 2010 06:28 PM BST ():
    First of all, thanks for this nice addon.
    I’m using a patched version of your addon so I thought I should probably share my changes.

    1. I don’t fully understand the idea behind the text.length distinction (line 180 in switch.js), in any case I think that a substring(0,15) might leave the last word crippled in many cases, i.e., misspelled in any language. So I did a
    - if (text.length == 10) {
    - text = text.replace(/[^\w\x80-\x9F\xA2-\xA4\xC0-\xD6\xD8-\xF6\xF9-\xFF]+/ig, “ ”).replace(/^ /,“”).replace(/ $/,“”).split(“ ”);
    - if (text.length < 3)
    - return;
    - } else if (text.length > 15 && node != this._textarea) {
    - text = text.replace(/[^\w\x80-\x9F\xA2-\xA4\xC0-\xD6\xD8-\xF6\xF9-\xFF]+/ig, “ ”).replace(/^ /,“”).substring(0, 15).replace(/ $/,“”).split(“ ”);
    - } else {
    - return;
    - }
    + text = text.replace(/[^\w\x80-\x9F\xA2-\xA4\xC0-\xD6\xD8-\xF6\xF9-\xFF]+/ig, “ ”).replace(/^ /,“”).replace(/ $/,“”).split(“ ”);
    + if (text.length == 0)
    + return;
    and
    - for (let i = 0; i < text.length; i++)
    + for (let i = 0; i < text.length && i < 25; i++)

    2. I changed the keyPress function somewhat to keep the load on every key press low. I’m not a javascript expert, so maybe this implementation is not really wise:
    this._keyPress = function (e) {
    - obj.keyPress(e);
    + if (obj._timeout)
    + clearTimeout(obj._timeout);
    + obj._timeout = setTimeout(function (){ obj.keyPress(e); }, 1000);
    };

    3. Code similar to what was already present to make sure that we don’t check the same stuff twice:
    + if (this._textarea == node && this._oldText == text)
    + return;
    this._textarea = node;
    + this._oldText = text;

    4. A small speedup
    - if (sc.spellChecker.CheckCurrentWord(text[i]))
    + if (sc.spellChecker.CheckCurrentWordNoSuggest(text[i]))

    5. I think the old code has a bug that happens if you have more than two dictionaries installed. Suppose you have dictionaries A, B, C (in that order) and a text which has 3,2,1 spelling errors, respectively. The old code will imho select ’B’. The following patch should fix the selection process:
    - var maxMisspelled = Math.round(text.length / 4);
    var initialDict = sc.spellChecker.GetCurrentDictionary(), dict = initialDict;
    - var misspelled, oldMisspelled, newDict;
    + var misspelled, oldMisspelled = text.length+1, newDict = initialDict;
    do {
    misspelled = 0;
    - if (dict != initialDict)
    - sc.spellChecker.SetCurrentDictionary(dict);
    + sc.spellChecker.SetCurrentDictionary(dict);
    for (let i = 0; i < text.length && i < 25; i++)
    if (sc.spellChecker.CheckCurrentWordNoSuggest(text[i]))
    misspelled++;
    - if (!newDict || misspelled < oldMisspelled)
    + if (misspelled < oldMisspelled){
    newDict = dict;
    - oldMisspelled = misspelled;
    + oldMisspelled = misspelled;
    + }
    dict = this.getNextInList(dict);
    - } while (misspelled > maxMisspelled && dict != initialDict);
    + } while (dict != initialDict);

    All these changes have not been tested thoroughly so use them at own risk.
    If you have any remarks, contact me by email please (julian DOT rueth AT gmail).
    julian

HTML will not be interpreted.

Last changed on December 15, 2009 Dão G., 2005–2010
aggressiv akt andromeda bar beine blue efeu frontal fugaetu industriell komet land noir rost rot sonnenblume splash split winter wolke zeit