Skip to content
Sets the language for the site
Branch: master
Clone or download
Latest commit ec61b20 Dec 12, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
actions code style fixes Jan 29, 2015
languages feature(ui): provides a view to add selector as a dropdown Apr 25, 2016
lib code style fixes Jan 29, 2015
views/default feature(ui): provides a view to add selector as a dropdown Apr 25, 2016
.gitignore chore: composer update Dec 12, 2016
.travis.yml
CHANGES.txt chore: wrapping up v3.0 Dec 12, 2016
README.md chore: badges in README Dec 12, 2016
composer.json chore: added travis releases support Dec 12, 2016
composer.lock chore: added travis releases support Dec 12, 2016
manifest.xml chore: wrapping up v3.0 Dec 12, 2016
start.php code style fixes Jan 29, 2015

README.md

Language selector

Build Status Scrutinizer Code Quality Latest Stable Version License

Provides a language_selector view to use in your themes. If you are using a default theme, there is an admin option to extend the header with the language selector. Check the admin settings of the plugin for things to configure.

Features

  • language_selector/default view to use in themes
  • handles translation preferences for logged in (user preferences) AND non logged in users (cookies)
  • incorporated autodetection of browser language (only for non logged in users)
  • language selector display country codes or flags

Notes

  • To add a language selector in a custom position, use elgg_view('language_selector/default')
  • To display a language selector with a dropdown, use elgg_view('language_selector/dropdown')
  • To add a custom language icon or replace an existing one, add an image file (svg, jpg, png, gif) in your plugin under /views/default/language_selector/flags/$language_code.$ext.
You can’t perform that action at this time.