public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Noel Ullreich <n.ullreich@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-widget-toolkit 1/2] Translated language dropdown menu in web interface
Date: Thu, 23 Mar 2023 15:44:24 +0100	[thread overview]
Message-ID: <20230323144425.113963-2-n.ullreich@proxmox.com> (raw)
In-Reply-To: <20230323144425.113963-1-n.ullreich@proxmox.com>

Translated the languages in the web interface dropdown menu. Languages
used to be in English, now they are in their native language and
writing system along with their translation in the currently selected
language.

Signed-off-by: Noel Ullreich <n.ullreich@proxmox.com>
---
 src/Utils.js | 50 +++++++++++++++++++++++++-------------------------
 1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/src/Utils.js b/src/Utils.js
index 7b7a83a..3510590 100644
--- a/src/Utils.js
+++ b/src/Utils.js
@@ -62,31 +62,31 @@ utilities: {
     stateText: gettext('State'),
     groupText: gettext('Group'),
 
-    language_map: {
-	ar: 'Arabic',
-	ca: 'Catalan',
-	zh_CN: 'Chinese (Simplified)',
-	zh_TW: 'Chinese (Traditional)',
-	da: 'Danish',
-	nl: 'Dutch',
-	en: 'English',
-	eu: 'Euskera (Basque)',
-	fr: 'French',
-	de: 'German',
-	he: 'Hebrew',
-	it: 'Italian',
-	ja: 'Japanese',
-	kr: 'Korean',
-	nb: 'Norwegian (Bokmal)',
-	nn: 'Norwegian (Nynorsk)',
-	fa: 'Persian (Farsi)',
-	pl: 'Polish',
-	pt_BR: 'Portuguese (Brazil)',
-	ru: 'Russian',
-	sl: 'Slovenian',
-	es: 'Spanish',
-	sv: 'Swedish',
-	tr: 'Turkish',
+    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)"),
     },
 
     render_language: function(value) {
-- 
2.30.2





  reply	other threads:[~2023-03-23 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-23 14:44 [pve-devel] [PATCH pve-widget-toolkit 0/2] fix 4524: Language names should be translated Noel Ullreich
2023-03-23 14:44 ` Noel Ullreich [this message]
2023-03-24 11:25   ` [pve-devel] applied: [PATCH pve-widget-toolkit 1/2] Translated language dropdown menu in web interface Thomas Lamprecht
2023-03-23 14:44 ` [pve-devel] [PATCH pve-widget-toolkit 2/2] increased language dropdown menu width Noel Ullreich
2023-03-24 11:27   ` [pve-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230323144425.113963-2-n.ullreich@proxmox.com \
    --to=n.ullreich@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal