language selector: translate entries to both native and localized
Languages used to be hardcoded to English, change that to both the native language plus writing system along with their translation in the currently selected language. Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com> [ T: drop redundant info from subject and reword a bit ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5835bc4c10
commit
58518b154e
50
src/Utils.js
50
src/Utils.js
@ -62,31 +62,31 @@ utilities: {
|
|||||||
stateText: gettext('State'),
|
stateText: gettext('State'),
|
||||||
groupText: gettext('Group'),
|
groupText: gettext('Group'),
|
||||||
|
|
||||||
language_map: {
|
language_map: { //language map is sorted alphabetically by iso 639-1
|
||||||
ar: 'Arabic',
|
ar: 'العربية - '+gettext("Arabic"),
|
||||||
ca: 'Catalan',
|
ca: 'Català - '+gettext("Catalan"),
|
||||||
zh_CN: 'Chinese (Simplified)',
|
da: 'Dansk - '+gettext("Danish"),
|
||||||
zh_TW: 'Chinese (Traditional)',
|
de: 'Deutsch - '+gettext("German"),
|
||||||
da: 'Danish',
|
en: 'English - '+gettext("English"),
|
||||||
nl: 'Dutch',
|
es: 'Español - '+gettext("Spanish"),
|
||||||
en: 'English',
|
eu: 'Euskera (Basque) - '+gettext("Euskera (Basque)"),
|
||||||
eu: 'Euskera (Basque)',
|
fa: 'فارسی - '+gettext("Persian (Farsi)"),
|
||||||
fr: 'French',
|
fr: 'Français - '+gettext("French"),
|
||||||
de: 'German',
|
he: 'עברית - '+gettext("Hebrew"),
|
||||||
he: 'Hebrew',
|
it: 'Italiano - '+gettext("Italian"),
|
||||||
it: 'Italian',
|
ja: '日本語 - '+gettext("Japanese"),
|
||||||
ja: 'Japanese',
|
kr: '한국어 - '+gettext("Korean"),
|
||||||
kr: 'Korean',
|
nb: 'Bokmål - '+gettext("Norwegian (Bokmal)"),
|
||||||
nb: 'Norwegian (Bokmal)',
|
nl: 'Nederlands - '+gettext("Dutch"),
|
||||||
nn: 'Norwegian (Nynorsk)',
|
nn: 'Nynorsk - '+gettext("Norwegian (Nynorsk)"),
|
||||||
fa: 'Persian (Farsi)',
|
pl: 'Polski - '+gettext("Polish"),
|
||||||
pl: 'Polish',
|
pt_BR: 'Português Brasileiro - '+gettext("Portuguese (Brazil)"),
|
||||||
pt_BR: 'Portuguese (Brazil)',
|
ru: 'Русский - '+gettext("Russian"),
|
||||||
ru: 'Russian',
|
sl: 'Slovenščina - '+gettext("Slovenian"),
|
||||||
sl: 'Slovenian',
|
sv: 'Svenska - '+gettext("Swedish"),
|
||||||
es: 'Spanish',
|
tr: 'Türkçe - '+gettext("Turkish"),
|
||||||
sv: 'Swedish',
|
zh_CN: '中文(简体) - '+gettext("Chinese (Simplified)"),
|
||||||
tr: 'Turkish',
|
zh_TW: '中文(繁體) - '+gettext("Chinese (Traditional)"),
|
||||||
},
|
},
|
||||||
|
|
||||||
render_language: function(value) {
|
render_language: function(value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user