utils: use template strings for language map

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-03-24 11:50:55 +01:00
parent 454ff6ea91
commit c43929212d

View File

@ -63,30 +63,30 @@ utilities: {
groupText: gettext('Group'),
language_map: { //language map is sorted alphabetically by iso 639-1
ar: 'العربية - '+gettext("Arabic"),
ca: 'Català - '+gettext("Catalan"),
da: 'Dansk - '+gettext("Danish"),
de: 'Deutsch - '+gettext("German"),
en: 'English - '+gettext("English"),
es: 'Español - '+gettext("Spanish"),
eu: 'Euskera (Basque) - '+gettext("Euskera (Basque)"),
fa: 'فارسی - '+gettext("Persian (Farsi)"),
fr: 'Français - '+gettext("French"),
he: 'עברית - '+gettext("Hebrew"),
it: 'Italiano - '+gettext("Italian"),
ja: '日本語 - '+gettext("Japanese"),
kr: '한국어 - '+gettext("Korean"),
nb: 'Bokmål - '+gettext("Norwegian (Bokmal)"),
nl: 'Nederlands - '+gettext("Dutch"),
nn: 'Nynorsk - '+gettext("Norwegian (Nynorsk)"),
pl: 'Polski - '+gettext("Polish"),
pt_BR: 'Português Brasileiro - '+gettext("Portuguese (Brazil)"),
ru: 'Русский - '+gettext("Russian"),
sl: 'Slovenščina - '+gettext("Slovenian"),
sv: 'Svenska - '+gettext("Swedish"),
tr: 'Türkçe - '+gettext("Turkish"),
zh_CN: '中文(简体) - '+gettext("Chinese (Simplified)"),
zh_TW: '中文(繁體) - '+gettext("Chinese (Traditional)"),
ar: `العربية - ${gettext("Arabic")}`,
ca: `Català - ${gettext("Catalan")}`,
da: `Dansk - ${gettext("Danish")}`,
de: `Deutsch - ${gettext("German")}`,
en: `English - ${gettext("English")}`,
es: `Español - ${gettext("Spanish")}`,
eu: `Euskera (Basque) - ${gettext("Euskera (Basque)")}`,
fa: `فارسی - ${gettext("Persian (Farsi)")}`,
fr: `Français - ${gettext("French")}`,
he: `עברית - ${gettext("Hebrew")}`,
it: `Italiano - ${gettext("Italian")}`,
ja: `日本語 - ${gettext("Japanese")}`,
kr: `한국어 - ${gettext("Korean")}`,
nb: `Bokmål - ${gettext("Norwegian (Bokmal)")}`,
nl: `Nederlands - ${gettext("Dutch")}`,
nn: `Nynorsk - ${gettext("Norwegian (Nynorsk)")}`,
pl: `Polski - ${gettext("Polish")}`,
pt_BR: `Português Brasileiro - ${gettext("Portuguese (Brazil)")}`,
ru: `Русский - ${gettext("Russian")}`,
sl: `Slovenščina - ${gettext("Slovenian")}`,
sv: `Svenska - ${gettext("Swedish")}`,
tr: `Türkçe - ${gettext("Turkish")}`,
zh_CN: `中文(简体)- ${gettext("Chinese (Simplified)")}`,
zh_TW: `中文(繁體)- ${gettext("Chinese (Traditional)")}`,
},
render_language: function(value) {