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

zh and zh_Hans cannot exist at the same time #5427

Closed
pd4d10 opened this issue Feb 14, 2021 · 6 comments
Closed

zh and zh_Hans cannot exist at the same time #5427

pd4d10 opened this issue Feb 14, 2021 · 6 comments
Labels
question This is more a question for the support than an issue.

Comments

@pd4d10
Copy link

pd4d10 commented Feb 14, 2021

Describe the issue

The component contains several translation files mapped to a single language in Weblate. Please fix this by removing one of the translation files.

See https://hosted.weblate.org/projects/git-touch/git-touch/#alerts. Is this by design?

The zh locale is necessary for GitTouch because Flutter needs this as a fallback of zh_Hans

I searched the past issues and found #3471 and #4088, which are not caused by the same problem.

Server configuration and status

Weblate installation: weblate.org service

@nijel
Copy link
Member

nijel commented Feb 14, 2021

Are they supposed to differ?

@pd4d10
Copy link
Author

pd4d10 commented Feb 14, 2021

zh_Hans and zh_Hant are different. I think zh may be the same as one of them (as fallback)

An example:

https://github.com/flutter/gallery/blob/master/lib/l10n/intl_zh.arb
https://github.com/flutter/gallery/blob/master/lib/l10n/intl_zh_CN.arb

@nijel
Copy link
Member

nijel commented Feb 14, 2021

Yes, zh usually means zh_Hans. That's why Weblate complains when both are present - it's not useful to duplicate translators work when producing two translations which are supposed to be identical.

@nijel nijel added the question This is more a question for the support than an issue. label Feb 14, 2021
@github-actions
Copy link

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you!

@pd4d10
Copy link
Author

pd4d10 commented Feb 15, 2021

OK. Temporarily solved by excluding these by language filter: ^(?!(zh|nb)$).+$

@pd4d10 pd4d10 closed this as completed Feb 15, 2021
@github-actions
Copy link

The issue you have reported is resolved now. If you don’t feel it’s right, please follow it’s labels to get a clue and take further steps.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue.
Projects
None yet
Development

No branches or pull requests

2 participants