1
0
Fork 0
gitea/options/locale
wxiaoguang 042cac5fed
Improve install code to avoid low-level mistakes. (#17779)
* Improve install code to avoid low-level mistakes.

If a user tries to do a re-install in a Gitea database, they gets a warning and double check.
When Gitea runs, it never create empty app.ini automatically.

Also some small (related) refactoring:

* Refactor db.InitEngine related logic make it more clean (especially for the install code)
* Move some i18n strings out from setting.go to make the setting.go can be easily maintained.
* Show errors in CLI code if an incorrect app.ini is used.
* APP_DATA_PATH is created when installing, and checked when starting (no empty directory is created any more).
2021-12-01 15:50:01 +08:00
..
TRANSLATORS
locale_bg-BG.ini
locale_cs-CZ.ini
locale_de-DE.ini
locale_el-GR.ini
locale_en-US.ini Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
locale_es-ES.ini [skip ci] Updated translations via Crowdin 2021-11-27 00:25:11 +00:00
locale_fa-IR.ini
locale_fi-FI.ini
locale_fr-FR.ini
locale_hu-HU.ini
locale_id-ID.ini
locale_it-IT.ini
locale_ja-JP.ini [skip ci] Updated translations via Crowdin 2021-11-30 00:25:14 +00:00
locale_ko-KR.ini
locale_lv-LV.ini
locale_ml-IN.ini
locale_nl-NL.ini
locale_pl-PL.ini
locale_pt-BR.ini
locale_pt-PT.ini
locale_ru-RU.ini
locale_si-LK.ini [skip ci] Updated translations via Crowdin 2021-12-01 00:25:14 +00:00
locale_sr-SP.ini
locale_sv-SE.ini
locale_tr-TR.ini
locale_uk-UA.ini
locale_zh-CN.ini [skip ci] Updated translations via Crowdin 2021-12-01 00:25:14 +00:00
locale_zh-HK.ini
locale_zh-TW.ini