Skip to content
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

fix(translationtool): Fallback to English plural form #706

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jan 13, 2025

If a project does not use any plurals (only t and no n), then the po file might also not contain the plural header. In this case we still need a plural form string for our Nextcloud JS output.

So to solve this we just fallback to English (it is currently not used and will also be overwritten with the correct string as soon as a plural form is used)

If a project does not use any plurals (only `t` and no `n`),
then the po file might also not contain the plural header.
In this case we still need a plural form string for our Nextcloud JS output.

So to solve this we just fallback to English (it is currently not used
and will also be overwritten with the correct string as soon as a plural form is used)

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux merged commit 073b746 into master Jan 14, 2025
3 checks passed
@susnux susnux deleted the fix/translation-tool branch January 14, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

translationtool crashes when there are no plural form
2 participants