coldtrick / language_selector
Provides a selector for users to easily change the language
Fund package maintenance!
ColdTrick
www.paypal.me/ColdTrick
Installs: 108
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 15
Open Issues: 3
Type:elgg-plugin
Requires
- composer/installers: ^1.0.8
Requires (Dev)
- coldtrick/releases: dev-master
- coldtrick/sniffs: dev-master
Conflicts
- elgg/elgg: <2.0
This package is auto-updated.
Last update: 2024-10-08 07:26:11 UTC
README
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
.