]> git.proxmox.com Git - pve-cluster.git/commitdiff
datacenter config: add missing language codes and comment all
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 29 Oct 2023 14:42:41 +0000 (15:42 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 29 Oct 2023 14:44:26 +0000 (15:44 +0100)
Croatian, Georgian, Ukrainian were all added only recently, so add
them to this map here.

Arabic, Korean and Dutch was missing too, and we had those in since
quite a while.

While at it, comment the long form for every language.

Copied over from widget-toolkit's language_map, then transformed with
some vim sed foo.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/DataCenterConfig.pm

index c864e514a773925267d1f29c62ae74dc9579ffef..2d28c8540b1e7ff8849c476a3d1e982ba1bed20d 100644 (file)
@@ -308,27 +308,33 @@ my $datacenter_schema = {
            type => 'string',
            description => "Default GUI language.",
            enum => [
-               'ca',
-               'da',
-               'de',
-               'en',
-               'es',
-               'eu',
-               'fa',
-               'fr',
-               'he',
-               'it',
-               'ja',
-               'nb',
-               'nn',
-               'pl',
-               'pt_BR',
-               'ru',
-               'sl',
-               'sv',
-               'tr',
-               'zh_CN',
-               'zh_TW',
+               'ar', # Arabic
+               'ca', # Catalan
+               'da', # Danish
+               'de', # German
+               'en', # English
+               'es', # Spanish
+               'eu', # Euskera (Basque)
+               'fa', # Persian (Farsi)
+               'fr', # French
+               'hr', # Croatian
+               'he', # Hebrew
+               'it', # Italian
+               'ja', # Japanese
+               'ka', # Georgian
+               'kr', # Korean
+               'nb', # Norwegian (Bokmal)
+               'nl', # Dutch
+               'nn', # Norwegian (Nynorsk)
+               'pl', # Polish
+               'pt_BR', # Portuguese (Brazil)
+               'ru', # Russian
+               'sl', # Slovenian
+               'sv', # Swedish
+               'tr', # Turkish
+               'ukr', # Ukrainian
+               'zh_CN', # Chinese (Simplified)
+               'zh_TW', # Chinese (Traditional)
            ],
        },
        http_proxy => {