Mozilla Language Redirector Script - gHacks Tech News

Mozilla Language Redirector Script

Update: The script is no longer working unfortunately. You can still set the preferred language at the page bottom on the Mozilla Add-ons repository, but that won't affect direct links that point to a different language than the one that you have set there.

When you browse regularly on the Mozilla Add-ons Repository website, you may know that it makes the contents available in many different languages. While that is usually not a problem when you open the Mozilla website manually, it can be quite annoying when you click on a link that is taken you to the site.

The interface language is determined by a script when you load the Mozilla Add-ons website manually. Links pointing to add-ons on the site on the other hand can link to foreign language versions of the site. While that too may not be such a big problem, as descriptions and reviews are not showing up translated, you may still prefer to see the site controls and menu options in a language that you understand.

mozilla add-ons

The language remains the same when you navigate away from the page.  While it is possible to change the interface language in a footer pulldown menu displayed on all pages, you may prefer an automated solution instead. Enter Language Redirect for addons.mozilla.org.

The userscript changes the interface language automatically to the language selected in the pull down menu on the Mozilla website. The userscript remembers the selected language, and will automatically change the web address to the selected language. Instead of opening the Danish language version of an add-on on the site, the link that is pointing to it is automatically converted to the selected language instead.

The script has been tested in the Firefox web browser with Greasemonkey installed where it worked as advertised.  It does not seem to work in the Google Chrome browser though. It also needs to be noted that it only works for Firefox add-on listings, and not for Thunderbird or Seamonkey listings.

The userscript can be useful if you sometimes, or even regularly, land on a foreign language Mozilla site after following a link posted on a blog, website or social networking site. (thanks Vineeth for the tip)





  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:

    Comments

    1. NONO said on May 4, 2012 at 9:39 am
      Reply

      The UI of new firefox is as same as ie 9.wow
      Video sniffer of avant browser is very useful; you can add this in next version

    Leave a Reply