diff options
author | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2020-06-04 11:01:00 -0300 |
commit | fc7369835258467bf97eb64f184b93691f9a9fd5 (patch) | |
tree | daabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/SimpleLanguageSelector/README.md |
first commit
Diffstat (limited to 'www/wiki/extensions/SimpleLanguageSelector/README.md')
-rw-r--r-- | www/wiki/extensions/SimpleLanguageSelector/README.md | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/www/wiki/extensions/SimpleLanguageSelector/README.md b/www/wiki/extensions/SimpleLanguageSelector/README.md new file mode 100644 index 00000000..1a0bb49e --- /dev/null +++ b/www/wiki/extensions/SimpleLanguageSelector/README.md @@ -0,0 +1,52 @@ + +## 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 : + +``` +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') + }
\ No newline at end of file |