Wikipedia Language Changer

By kuy Last update May 5, 2009 — Installed 3,262 times.

Script Summary: Language change utility for Wikipedia.



Version: 0.1.1

Script homepage

Information

Latest version : 0.1.1 [2009.05.06]

Tested platform : Firefox 3.0.10 + Greasemonkey 0.8.20090123.1

Settings

There are 3 functions:

  • Language Tab - add language link tab for quick access.
  • Language Changer - add language drop-down list. select to jump.
  • Quick Switcher - double-click to toggle.

Configurable items:

  • enable - enable/disable function. true or false. Boolean. required.
  • lang - language code list. Array of String.
  • label - language display name. 'name', 'code' or 'both'. String.
    • name : "English"
    • code : "en"
    • both : "English [en]"
  • default - default language code. String.

This is a sample setting:

// configurations
var cfg = {
	// lang tab
	tab: {
		// true or false
		enable: true,
		// lang code you want to show as tab
		// *** if ommit this, it won't show any langs ***
		lang: ['ja', 'en', 'de'],
		// 'code', 'name' or 'both'
		label: 'name'
	},
	// lang drop-down list
	list: {
		enable: true,
		// lang code you want to show as drop-down list
		// *** if ommit this, it will show all langs ***
		lang: [],
		label: 'both'
	},
	// quick toggle
	toggle: {
		enable: true,
		// if ommit this, it will set first element of cfg.toggle.lang
		default: 'ja',
		// pair of toggle language
		lang: ['ja', 'en']
	}
};

Todo

  • Opera support
  • Quick Switcher : Support multiple-languages.
  • Language Changer : Remove language that display as tab from drop-down list

Updates

  • [2007-10-28] 0.1.0 first version
  • [2009-05-05] 0.1.1 bugfixed (thx Wayne!)