Ver código fonte

Merge pull request #4053 from akien-mga/update-locales

Update locales to match current engine core/translation.cpp
Rémi Verschelde 5 anos atrás
pai
commit
19c9e9f88b

+ 1 - 1
.github/workflows/ci.yml

@@ -19,7 +19,7 @@ jobs:
       - name: Linter checks
       - name: Linter checks
         run: |
         run: |
           bash _tools/format.sh
           bash _tools/format.sh
-          codespell -I _tools/codespell-ignore.txt {about,community,development,getting_started,tutorials}/**/*.rst
+          codespell -I _tools/codespell-ignore.txt -x _tools/codespell-ignore-lines.txt {about,community,development,getting_started,tutorials}/**/*.rst
 
 
       - name: Sphinx build
       - name: Sphinx build
         run: |
         run: |

+ 1 - 0
_tools/codespell-ignore-lines.txt

@@ -0,0 +1 @@
+| te           | Telugu                             |

+ 22 - 12
tutorials/i18n/locales.rst

@@ -3,6 +3,8 @@
 Locales
 Locales
 =======
 =======
 
 
+.. Note: This list is synced with core/translation.cpp in the engine.
+
 This is the list of supported locales and variants in the engine. It's
 This is the list of supported locales and variants in the engine. It's
 based on the Unix standard locale strings:
 based on the Unix standard locale strings:
 
 
@@ -61,6 +63,8 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | ar_SD        | Arabic (Sudan)                     |
 | ar_SD        | Arabic (Sudan)                     |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
+| ar_SS        | Arabic (South Sudan)               |
++--------------+------------------------------------+
 | ar_SY        | Arabic (Syria)                     |
 | ar_SY        | Arabic (Syria)                     |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | ar_TN        | Arabic (Tunisia)                   |
 | ar_TN        | Arabic (Tunisia)                   |
@@ -199,8 +203,6 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | en_NG        | English (Nigeria)                  |
 | en_NG        | English (Nigeria)                  |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
-| en_MT        | English (Malta)                    |
-+--------------+------------------------------------+
 | en_NZ        | English (New Zealand)              |
 | en_NZ        | English (New Zealand)              |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | en_PH        | English (Philippines)              |
 | en_PH        | English (Philippines)              |
@@ -279,6 +281,8 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | fi_FI        | Finnish (Finland)                  |
 | fi_FI        | Finnish (Finland)                  |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
+| fil          | Filipino                           |
++--------------+------------------------------------+
 | fil_PH       | Filipino (Philippines)             |
 | fil_PH       | Filipino (Philippines)             |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | fo_FO        | Faroese (Faroe Islands)            |
 | fo_FO        | Faroese (Faroe Islands)            |
@@ -375,6 +379,8 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | kab_DZ       | Kabyle (Algeria)                   |
 | kab_DZ       | Kabyle (Algeria)                   |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
+| ka           | Georgian                           |
++--------------+------------------------------------+
 | ka_GE        | Georgian (Georgia)                 |
 | ka_GE        | Georgian (Georgia)                 |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | kk_KZ        | Kazakh (Kazakhstan)                |
 | kk_KZ        | Kazakh (Kazakhstan)                |
@@ -435,14 +441,18 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | mhr_RU       | Eastern Mari (Russia)              |
 | mhr_RU       | Eastern Mari (Russia)              |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
+| mi           | Maori                              |
++--------------+------------------------------------+
 | mi_NZ        | Maori (New Zealand)                |
 | mi_NZ        | Maori (New Zealand)                |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
-| miq_NI       | Mískito  (Nicaragua)               |
+| miq_NI       | Mískito (Nicaragua)                |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | mk           | Macedonian                         |
 | mk           | Macedonian                         |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | mk_MK        | Macedonian (Macedonia)             |
 | mk_MK        | Macedonian (Macedonia)             |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
+| ml           | Malayalam                          |
++--------------+------------------------------------+
 | ml_IN        | Malayalam (India)                  |
 | ml_IN        | Malayalam (India)                  |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | mni_IN       | Manipuri (India)                   |
 | mni_IN       | Manipuri (India)                   |
@@ -461,7 +471,7 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | my_MM        | Burmese (Myanmar)                  |
 | my_MM        | Burmese (Myanmar)                  |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
-| myv_RU       | Erzya  (Russia)                    |
+| myv_RU       | Erzya (Russia)                     |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | nah_MX       | Nahuatl languages (Mexico)         |
 | nah_MX       | Nahuatl languages (Mexico)         |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
@@ -495,10 +505,6 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | nn_NO        | Norwegian Nynorsk (Norway)         |
 | nn_NO        | Norwegian Nynorsk (Norway)         |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
-| no           | Norwegian                          |
-+--------------+------------------------------------+
-| no_NO        | Norwegian (Norway)                 |
-+--------------+------------------------------------+
 | nr_ZA        | South Ndebele (South Africa)       |
 | nr_ZA        | South Ndebele (South Africa)       |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | nso_ZA       | Pedi (South Africa)                |
 | nso_ZA       | Pedi (South Africa)                |
@@ -577,6 +583,8 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | sid_ET       | Sidamo (Ethiopia)                  |
 | sid_ET       | Sidamo (Ethiopia)                  |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
+| si           | Sinhala                            |
++--------------+------------------------------------+
 | si_LK        | Sinhala (Sri Lanka)                |
 | si_LK        | Sinhala (Sri Lanka)                |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | sk           | Slovak                             |
 | sk           | Slovak                             |
@@ -585,6 +593,8 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | sl           | Slovenian                          |
 | sl           | Slovenian                          |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
+| sl_SI        | Slovenian (Slovenia)               |
++--------------+------------------------------------+
 | so           | Somali                             |
 | so           | Somali                             |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | so_DJ        | Somali (Djibouti)                  |
 | so_DJ        | Somali (Djibouti)                  |
@@ -607,9 +617,9 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | sr           | Serbian                            |
 | sr           | Serbian                            |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
-| sr_BA        | Serbian (Bosnia and Herzegovina)   |
+| sr_Cyrl      | Serbian (Cyrillic)                 |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
-| sr_CS        | Serbian (Serbia and Montenegro)    |
+| sr_Latn      | Serbian (Latin)                    |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | sr_ME        | Serbian (Montenegro)               |
 | sr_ME        | Serbian (Montenegro)               |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
@@ -639,6 +649,8 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | tcy_IN       | Tulu (India)                       |
 | tcy_IN       | Tulu (India)                       |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
+| te           | Telugu                             |
++--------------+------------------------------------+
 | te_IN        | Telugu (India)                     |
 | te_IN        | Telugu (India)                     |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | tg_TJ        | Tajik (Tajikistan)                 |
 | tg_TJ        | Tajik (Tajikistan)                 |
@@ -649,8 +661,6 @@ based on the Unix standard locale strings:
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | th_TH        | Thai (Thailand)                    |
 | th_TH        | Thai (Thailand)                    |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
-| th_TH_TH     | Thai (Thailand, TH)                |
-+--------------+------------------------------------+
 | ti           | Tigrinya                           |
 | ti           | Tigrinya                           |
 +--------------+------------------------------------+
 +--------------+------------------------------------+
 | ti_ER        | Tigrinya (Eritrea)                 |
 | ti_ER        | Tigrinya (Eritrea)                 |