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

Migrate to Weblate for translations #1998

Merged
merged 17 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ You can get logs in various ways:
## Contributing Translations

All translations are done via
[Transifex](https://www.transifex.com/projects/p/syncthing-android/). If you
[Hosted Weblate](https://hosted.weblate.org/projects/syncthing/android/). If you
wish to contribute to a translation, just head over there and sign up.
Before every release, the language resources are updated from the
latest info on Transifex.
latest info on Weblate.

## Contributing Code

Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@ Handling feature requests use up the little time that is present to keep the app

# Translations

The project is translated on [Transifex](https://www.transifex.com/projects/p/syncthing-android/).
The project is translated on [Hosted Weblate](https://hosted.weblate.org/projects/syncthing/android/).

## Dev

Language mappings are defined in `.tx/config`, with the second code being the one from transifex. Google play supported languages: https://support.google.com/googleplay/android-developer/table/4419860. Android supported languages: https://stackoverflow.com/questions/7973023/what-is-the-list-of-supported-languages-locales-on-android. If a new language is added on transifex that's not supported, add them to `deleteUnsupportedPlayTranslations` in `app/build.gradle`.
Language codes are usually mapped correctly by Weblate itself. The supported
set is different between [Google Play][1] and Android apps. The latter can be
deduced by what the [Android core framework itself supports][2]. New languages
need to be added in the repository first, then appear automatically in Weblate.

[1]: https://support.google.com/googleplay/android-developer/table/4419860
[2]: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/main/core/res/res/

# Building

Expand Down
2 changes: 1 addition & 1 deletion app/lint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</issue>
<!-- Ignore lint on ... not being replaced by the ellipsis character -->
<issue id="TypographyEllipsis" severity="ignore" />
<!-- Don't fail lint on translation errors, they have to be resolved on transifex -->
<!-- Don't fail lint on translation errors, they have to be resolved on Weblate -->
<issue id="ImpliedQuantity" severity="warning">
<ignore path="src/main/res/values-fr" />
<ignore path="src/main/res/values-pt-rBR" />
Expand Down
11 changes: 0 additions & 11 deletions app/src/main/play/listings/he_IL/full-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/he_IL/short-description.txt

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/main/play/listings/lt/full-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/lt/short-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/lt/title.txt

This file was deleted.

9 changes: 0 additions & 9 deletions app/src/main/play/listings/no-NO/full-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/no-NO/short-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/no-NO/title.txt

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/main/play/listings/sl/full-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/sl/short-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/sl/title.txt

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/main/play/listings/sr/full-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/sr/short-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/sr/title.txt

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/main/play/listings/ta-IN/full-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/ta-IN/short-description.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/ta-IN/title.txt

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/play/listings/zh_HK/title.txt

This file was deleted.