forked from gitea/gitea
1
0
Fork 0
gitea/options/locale
wxiaoguang d72462dae6
Improve update-locales script and fix locale processing bug (#23240)
The locales of Gitea has been broken for long time, till now, it's still
not fully fixed.

One of the root problems is that the `ini` library is quite quirky and
the `update-locales` script doesn't work well for all cases.


This PR fixes the `update-locales` script to make it satisfy `ini`
library and the crowdin.

See the comments for more details.

The `locale_zh-CN.ini` is an example, it comes from crowdin and is
processed by the new `update-locales.sh`. Especially see the `feed_of`:
https://github.com/go-gitea/gitea/pull/23240/files#diff-321f6ca4eae1096eba230e93c4740f9903708afe8d79cf2e57f4299786c4528bR268
2023-03-02 12:33:36 -06:00
..
TRANSLATORS Fix missing left and right carets in TRANSLATORS (#21397) 2022-10-10 10:36:37 -04:00
locale_cs-CZ.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_de-DE.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_el-GR.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_en-US.ini Pull Requests: add button to compare force pushed commits (#22857) 2023-03-01 14:19:47 -05:00
locale_es-ES.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_fa-IR.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_fi-FI.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_fr-FR.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_hu-HU.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_id-ID.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_is-IS.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_it-IT.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_ja-JP.ini [skip ci] Updated translations via Crowdin 2023-03-02 00:23:09 +00:00
locale_ko-KR.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_lv-LV.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_nl-NL.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_pl-PL.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_pt-BR.ini [skip ci] Updated translations via Crowdin 2023-03-02 00:23:09 +00:00
locale_pt-PT.ini [skip ci] Updated translations via Crowdin 2023-03-02 00:23:09 +00:00
locale_ru-RU.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_si-LK.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_sk-SK.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_sv-SE.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_tr-TR.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_uk-UA.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_zh-CN.ini Improve update-locales script and fix locale processing bug (#23240) 2023-03-02 12:33:36 -06:00
locale_zh-HK.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00
locale_zh-TW.ini [skip ci] Updated translations via Crowdin 2023-02-28 00:15:54 +00:00