wikifab/simple-language-selector

There is no license information available for the latest version (1.2.0) of this package.

Mediawiki extension to automatically set page language at page creation with current user language.

Installs: 2 917

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 2

Type:mediawiki-extension

1.2.0 2019-05-29 13:36 UTC

This package is auto-updated.

Last update: 2024-11-06 20:41:32 UTC


README

SimpleLanguageSelector is a mediawiki extension add an icone with a language chooser. It is optimized for chameleon and Wikifab.

To be used with Translate extension.

This uses Flags to select Languages. Note that this is not a good way to select languages (flags represents countries, not languages) But you may still want to use flags...

Installation

It requires wikifab chameleon skin.

Extract extension and place it in the 'extensions' directory of your installation. (the directory namme must be 'SimpleLanguageSelector')

Load extension and enable setting page Language in DB in file LocalSetting.php, et configure UniversalLanguageExtension to be enable, and not displayd :

wfLoadExtension( 'SimpleLanguageSelector' );

Configuration

Set the languages to use with $wgSimpleLangageSelectionLangList:

$wgSimpleLangageSelectionLangList = ['fr', 'en', 'es'];

availables lang :

  • de
  • en
  • es
  • fr
  • it
  • pt
  • sv

To add link to translate wikifab, add this config in LocalSettings.php :

$wgSimpleLangageSelectionShowTranslateLink = true;

How to add an available lang :

  • add flag png to flags dir (use one from flags/countries)
  • add css : (example for FR ) #pt-language .sls-trigger.lang-fr { /* @embed */ background-image: url('flags/fr.png') }