Download the PHP package wikifab/simple-language-selector without Composer
On this page you can find all versions of the php package wikifab/simple-language-selector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wikifab/simple-language-selector
More information about wikifab/simple-language-selector
Files in wikifab/simple-language-selector
Package simple-language-selector
Short Description Mediawiki extension to automatically set page language at page creation with current user language.
License
Informations about the package simple-language-selector
SimpleLanguageSelector
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 :
Configuration
Set the languages to use with $wgSimpleLangageSelectionLangList:
availables lang :
- de
- en
- es
- fr
- it
- pt
- sv
To add link to translate wikifab, add this config in LocalSettings.php :
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') }