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

Allow more flexibility on the components affected by "Add missing languages" add-on #12987

Open
keunes opened this issue Nov 11, 2024 · 4 comments
Labels
wontfix Nobody will work on this.

Comments

@keunes
Copy link
Contributor

keunes commented Nov 11, 2024

Describe the problem

Because of the above, we have to manually maintain the languages for all components (website has 4, play store listing 3, and the app itself 1). That's a bit of a pain.

Describe the solution you would like

Until we moved the play store listing translations from Transifex to Weblate, we had enabled the "Add missing languages" add-on. This would ensure that the languages of the app & website components are in sync. We now cannot use that add-on any-more.

To allow us again to use that add-on, I'm thinking of either of these two solutions:

  • allow add-on configuration, to exclude specific components (or component groups)
  • allow installing the configuration at component (or component group) level, instead of having to install it project-wide

Describe alternatives you have considered

An alternative for us would be to keep a single set of languages across the project (including the play store listing components), and do some processing along the way (post Weblate, pre Gradle).
Or a new component-level add-on could be introduced which allows to make a mapping in Weblate, such that language a gets saved with language code b. But that doesn't sound like a great idea either.

Screenshots

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented Nov 11, 2024

If you want some component to use only a subset of languages, language filter might also be the way to go.

@keunes
Copy link
Contributor Author

keunes commented Nov 16, 2024

Thank you @nijel for the quick reply & the tip. We could apply the language filter on the 3 Google Play text (app description) components to only set the permitted languages. However, that wouldn't prevent those language definitions (e.g. cs-CZ) from being used in all our other components, where we want a code without region indication (e.g. cs). To address that, we'd need to add the same list (as exclusions) for our five other components. Which is where another solution would come in handy.
But we'll give that a try, thanks for the tip :-)

@nijel
Copy link
Member

nijel commented Nov 17, 2024

For Weblate cs-cz and cs are the same (unless you manually created it).

PS: See https://docs.weblate.org/en/latest/admin/languages.html#parsing-language-codes

Copy link

github-actions bot commented Dec 2, 2024

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

2 participants