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

Use Weblate for translations management #96

Open
Chralu opened this issue Mar 14, 2023 · 2 comments
Open

Use Weblate for translations management #96

Chralu opened this issue Mar 14, 2023 · 2 comments

Comments

@Chralu
Copy link
Contributor

Chralu commented Mar 14, 2023

Describe the solution you'd like
Translations management is tricky and many issues can occur.

I just gave a try to https://weblate.org, and I think it could be a huge help for translations management.

To me, the interesting features are :

  • Plugs directly to Git repository (PR mechanism builtin)
  • It's FOSS
  • Hosted version is free for FOSS
  • handles well arb files
  • simple UI for translators

@amugofjava If that's alright to you, I can setup a Weblate project to give it a try.

@amugofjava
Copy link
Owner

Hi @Chralu,

I agree that translation management is tricky and Anytime relies on a fork of the original intl_translation package, but there is method in the madness.

By default, Anytimes uses the LocalisationsDelegate class to load localisations, but there is also an EmbeddedLocalisationsDelegate that allow specific translations for specific locales to be overridden. The idea here is that this allows third-parties who may wish to use Anytime as the basis of or within their own app to change translated strings. An example of this is the Breez app that takes Anytime as the basis of their own podcast player within their app.

I'm very happy to consider other solutions that will make translations easier, but we would need to maintain this override functionality. 👍

@Chralu
Copy link
Contributor Author

Chralu commented Mar 17, 2023

That's an interesting point indeed !

According to my tests, Weblate only updates *.arb files. So LocalizationDelegate generation remains the build pipeline responsability.

To be further tested...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants