From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A987F92E4F for ; Thu, 23 Mar 2023 15:44:35 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2C5962DD0D for ; Thu, 23 Mar 2023 15:44:35 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 23 Mar 2023 15:44:33 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 324CD465F9 for ; Thu, 23 Mar 2023 15:44:33 +0100 (CET) From: Noel Ullreich To: pve-devel@lists.proxmox.com Date: Thu, 23 Mar 2023 15:44:24 +0100 Message-Id: <20230323144425.113963-2-n.ullreich@proxmox.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230323144425.113963-1-n.ullreich@proxmox.com> References: <20230323144425.113963-1-n.ullreich@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -1.401 Adjusted score from AWL reputation of From: address BAYES_50 0.8 Bayes spam probability is 40 to 60% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_2 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_4 0.1 random spam to be learned in bayes SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH pve-widget-toolkit 1/2] Translated language dropdown menu in web interface X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Mar 2023 14:44:35 -0000 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 --- 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