-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gitea fails to start because of non-translated string #21199
Comments
Thanks for this report, and all of the details you did, it is very appreciated. That's an interesting fail condition, as i haven't been in the translation part of the code recently, but I believe things fall back to English since it has all of the translations, but by having only French I guess it has nothing to fall back to. I guess if the translation isn't available we could just have it print the translation key, although that might run into issues with when we printf into the variables. |
Those were exactly my thoughts (i.e. it likely falls back to English if possible, and currently fails if not), but not knowing gitea code base nor Go, I could not say whether falling back to the translation key was desirable. I should have mentioned all this in my first post. ^^ |
Some backgrounds here:
When these two mechanisms come together, and you set an incomplete translation as default language, then this issue happens. Some possible solutions:
|
This PR #21200 implements solution 3 |
Only en-US has complete translations. When use other language as default, the en-US should still be used as fallback. Close #21199 ### Screenshot ![image](https://user-images.githubusercontent.com/2114189/190882906-b7a83958-0ea2-46c4-9084-42c4f9a239aa.png) Co-authored-by: Lauris BH <[email protected]>
Description
On gitea service startup (using systemd):
Unable to register cron task update_migration_poster_id Error: translation is missing for task "update_migration_poster_id", please add translation for "admin.dashboard.update_migration_poster_id"
This fails the service start.
I’ve setup gitea with:
Adding english makes it work.
I don’t think it should hard fail for a missing translated string…
Gitea Version
1.17.2
Operating System
Arch Linux
How are you running Gitea?
Systemd package using provided systemd service.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: