1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-17 23:54:25 +00:00
gitea/options/locale
wxiaoguang b2359f3df6
Fix various bugs for "install" page (#23194)
## TLDR

* Fix the broken page / broken image problem when click "Install"
* Close #20089
* Fix the Password Hash Algorithm display problem for #22942
* Close #23183
* Close #23184

## Details

### The broken page / broken image problem when click "Install"
(Redirect failed after install gitea #23184)

Before: when click "install", all new requests will fail, because the
server has been restarted. Users just see a broken page with broken
images, sometimes the server is not ready but the user would have been
redirect to "/user/login" page, then the users see a new broken page
(connection refused or something wrong ...)

After: only check InstallLock=true for necessary handlers, and sleep for
a while before restarting the server, then the browser has enough time
to load the "post-install" page. And there is a script to check whether
"/user/login" is ready, the user will only be redirected to the login
page when the server is ready.

### During new instance setup make 'Gitea Base URL' filled from
window.location.origin #20089

If the "app_url" input contains `localhost` (the default value from
config), use current window's location href as the `app_url` (aka
ROOT_URL)

### Fix the Password Hash Algorithm display problem for "Provide the
ability to set password hash algorithm parameters #22942"

Before: the UI shows `pbkdf2$50000$50`

<details>

![image](https://user-images.githubusercontent.com/2114189/221917143-e1e54798-1698-4fee-a18d-00c48081fc39.png)

</details>

After: the UI shows `pbkdf2`

<details>

![image](https://user-images.githubusercontent.com/2114189/221916999-97a15be8-2ebb-4a01-bf93-dac18e354fcc.png)

</details>

### GET data: net::ERR_INVALID_URL #23183

Cause by empty `data:` in `<link rel="manifest"
href="data:{{.ManifestData}}">`

---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2023-03-04 10:12:02 +08: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 Fix various bugs for "install" page (#23194) 2023-03-04 10:12:02 +08: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
TRANSLATORS Fix missing left and right carets in TRANSLATORS (#21397) 2022-10-10 10:36:37 -04:00