[www-doc] [Git][VideoLAN.org/websites][master] l10n: corrected locales naming with _ instead of -

Konstantin Pavlov gitlab at videolan.org
Sat Mar 27 09:42:42 UTC 2021



Konstantin Pavlov pushed to branch master at VideoLAN organization / websites


Commits:
784bb26b by Michał Trzebiatowski at 2021-03-26T23:23:59+01:00
l10n: corrected locales naming with _ instead of -

- - - - -


13 changed files:

- www.videolan.org/include/header.php
- www.videolan.org/locale/as-IN/LC_MESSAGES/website.po → www.videolan.org/locale/as_IN/LC_MESSAGES/website.po
- www.videolan.org/locale/bn/LC_MESSAGES/website.po → www.videolan.org/locale/bn_BD/LC_MESSAGES/website.po
- www.videolan.org/locale/bn-IN/LC_MESSAGES/website.po → www.videolan.org/locale/bn_IN/LC_MESSAGES/website.po
- www.videolan.org/locale/en-GB/LC_MESSAGES/website.po → www.videolan.org/locale/en_GB/LC_MESSAGES/website.po
- www.videolan.org/locale/es-MX/LC_MESSAGES/website.po → www.videolan.org/locale/es_MX/LC_MESSAGES/website.po
- www.videolan.org/locale/gu/LC_MESSAGES/website.po → www.videolan.org/locale/gu_IN/LC_MESSAGES/website.po
- www.videolan.org/locale/my-MM/LC_MESSAGES/website.po → www.videolan.org/locale/my_MM/LC_MESSAGES/website.po
- www.videolan.org/locale/or/LC_MESSAGES/website.po → www.videolan.org/locale/or_IN/LC_MESSAGES/website.po
- www.videolan.org/locale/pt-BR/LC_MESSAGES/website.po → www.videolan.org/locale/pt_BR/LC_MESSAGES/website.po
- www.videolan.org/locale/pt/LC_MESSAGES/website.po → www.videolan.org/locale/pt_PT/LC_MESSAGES/website.po
- www.videolan.org/locale/zh/LC_MESSAGES/website.po → www.videolan.org/locale/zh_CN/LC_MESSAGES/website.po
- www.videolan.org/locale/zh-TW/LC_MESSAGES/website.po → www.videolan.org/locale/zh_TW/LC_MESSAGES/website.po


Changes:

=====================================
www.videolan.org/include/header.php
=====================================
@@ -9,13 +9,13 @@ function getLocaleFromLanguage( $language )
     case 'am': $locale = "am_ET.utf8"; break;
     case 'an': $locale = "an_ES.utf8"; break;
     case 'ar': $locale = "ar_EG.utf8"; break;
-    case 'as-IN': $locale = "as_IN.utf8"; break;
+    case 'as_IN': $locale = "as_IN.utf8"; break;
     case 'ast': $locale = "ast_ES.utf8"; break;
     case 'az': $locale = "az_AZ.utf8"; break;
     case 'be': $locale = "be_BY.utf8"; break;
     case 'bg': $locale = "bg_BG.utf8"; break;
-    case 'bn': $locale = "bn_BD.utf8"; break;
-    case 'bn-IN': $locale = "bn_IN.utf8"; break;
+    case 'bn_BD': $locale = "bn_BD.utf8"; break;
+    case 'bn_IN': $locale = "bn_IN.utf8"; break;
     case 'br': $locale = "br_FR.utf8"; break;
     case 'bs': $locale = "bs_BA.utf8"; break;
     case 'ca': $locale = "ca_ES.utf8"; break;
@@ -26,9 +26,9 @@ function getLocaleFromLanguage( $language )
     case 'de': $locale = "de_DE.utf8"; break;
     case 'dv': $locale = "dv_MV.utf8"; break;
     case 'el': $locale = "el_GR.utf8"; break;
-    case 'en-GB': $locale = "en_GB.utf8"; break;
+    case 'en_GB': $locale = "en_GB.utf8"; break;
     case 'es': $locale = "es_ES.utf8"; break;
-    case 'es-MX': $locale = "es_MX.utf8"; break;
+    case 'es_MX': $locale = "es_MX.utf8"; break;
     case 'et': $locale = "et_EE.utf8"; break;
     case 'eu': $locale = "eu_ES.utf8"; break;
     case 'fa': $locale = "fa_IR.utf8"; break;
@@ -39,7 +39,7 @@ function getLocaleFromLanguage( $language )
     case 'ga': $locale = "ga_IE.utf8"; break;
     case 'gd': $locale = "gd_GB.utf8"; break;
     case 'gl': $locale = "gl_ES.utf8"; break;
-    case 'gu': $locale = "gu_IN.utf8"; break;
+    case 'gu_IN': $locale = "gu_IN.utf8"; break;
     case 'he': $locale = "he_IL.utf8"; break;
     case 'hi': $locale = "hi_IN.utf8"; break;
     case 'hr': $locale = "hr_HR.utf8"; break;
@@ -63,15 +63,15 @@ function getLocaleFromLanguage( $language )
     case 'mr': $locale = "mr_IN.utf8"; break;
     case 'ms': $locale = "ms_MY.utf8"; break;
     case 'my': $locale = "my_MM.utf8"; break;
-    case 'my-MM': $locale = "my_MM.utf8"; break;
+    case 'my_MM': $locale = "my_MM.utf8"; break;
     case 'nb': $locale = "nb_NO.utf8"; break;
     case 'ne': $locale = "ne_NP.utf8"; break;
     case 'nl': $locale = "nl_NL.utf8"; break;
     case 'nn': $locale = "nn_NO.utf8"; break;
-    case 'or': $locale = "or_IN.utf8"; break;
+    case 'or_IN': $locale = "or_IN.utf8"; break;
     case 'pl': $locale = "pl_PL.utf8"; break;
-    case 'pt-BR': $locale = "pt_BR.utf8"; break;
-    case 'pt': $locale = "pt_PT.utf8"; break;
+    case 'pt_BR': $locale = "pt_BR.utf8"; break;
+    case 'pt_PT': $locale = "pt_PT.utf8"; break;
     case 'ro': $locale = "ro_RO.utf8"; break;
     case 'ru': $locale = "ru_RU.utf8"; break;
     case 'sc': $locale = "sc_IT.utf8"; break;	
@@ -92,8 +92,8 @@ function getLocaleFromLanguage( $language )
     case 'uz': $locale = "uz_UZ.utf8"; break;
     case 'vi': $locale = "vi_VN.utf8"; break;
     case 'wa': $locale = "wa_BE.utf8"; break;
-    case 'zh': $locale = "zh_CN.utf8"; break;
-    case 'zh-TW': $locale = "zh_TW.utf8"; break;
+    case 'zh_CN': $locale = "zh_CN.utf8"; break;
+    case 'zh_TW': $locale = "zh_TW.utf8"; break;
     }
 
     return $locale;


=====================================
www.videolan.org/locale/as-IN/LC_MESSAGES/website.po → www.videolan.org/locale/as_IN/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/bn/LC_MESSAGES/website.po → www.videolan.org/locale/bn_BD/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/bn-IN/LC_MESSAGES/website.po → www.videolan.org/locale/bn_IN/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/en-GB/LC_MESSAGES/website.po → www.videolan.org/locale/en_GB/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/es-MX/LC_MESSAGES/website.po → www.videolan.org/locale/es_MX/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/gu/LC_MESSAGES/website.po → www.videolan.org/locale/gu_IN/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/my-MM/LC_MESSAGES/website.po → www.videolan.org/locale/my_MM/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/or/LC_MESSAGES/website.po → www.videolan.org/locale/or_IN/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/pt-BR/LC_MESSAGES/website.po → www.videolan.org/locale/pt_BR/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/pt/LC_MESSAGES/website.po → www.videolan.org/locale/pt_PT/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/zh/LC_MESSAGES/website.po → www.videolan.org/locale/zh_CN/LC_MESSAGES/website.po
=====================================


=====================================
www.videolan.org/locale/zh-TW/LC_MESSAGES/website.po → www.videolan.org/locale/zh_TW/LC_MESSAGES/website.po
=====================================



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/784bb26bbe937a11d856e0a049052eae791f8cb4

-- 
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/784bb26bbe937a11d856e0a049052eae791f8cb4
You're receiving this email because of your account on code.videolan.org.




More information about the www-doc mailing list