This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
mxp.plugins.LanguageSelector
Gnafu edited this page Dec 3, 2014
·
2 revisions
In order to use this plugin you need to include this files in the build.cfg:
src/mxp/plugins/LanguageSelector.js
NOTE: In the default configuration this is already done.
This plugin allow change the application's language.
You can configure it adding this plugin with this configuration:
{
"ptype": "mxp_languageselector",
"actionTarget":{
"target": "north.tbar",
"index": 7
}
}
The default list of available languages is:
- English
- Français
- Italiano
- Deutsch
- Español
Languages can be configured using the 'data' object.
If no 'data' object is configured, the default settings are equals to the following configuration
{
"ptype": "mxp_languageselector",
"actionTarget":{
"target": "north.tbar",
"index": 7
},
"data":[
["en","English","","en","English language"],
["fr","Français","","fr","Franch language"],
["it","Italiano","","it","Italian language"],
["de","Deutsch","","de","Deutsch language"],
["es","Español","","es","Spanish language"]
]
}
For the languages to work they must be available in MapStore