Skip to content

Commit

Permalink
gui: Switch to Weblate for translations (syncthing#8777)
Browse files Browse the repository at this point in the history
* Normalize EOL before EOF.

* Import current Transifex state, only translated.

Skip duplicated and completely empty languages.

* Re-add untranslated strings to JSON files.

These are now treated correctly as untranslated, but present with the
original (English) translation key.

* Update valid language codes and names.

* Refer to Weblate instead of Transifex for translations.

* lang-es: Copy untranslated strings from es-ES.

* Integrate translation changes from Weblate.

Translated using Weblate (Polish)

Currently translated at 100.0% (512 of 512 strings)

Translation: Syncthing/GUI strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/pl/

Translated using Weblate (Danish)

Currently translated at 98.6% (505 of 512 strings)

Translation: Syncthing/GUI strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/da/

Translated using Weblate (Lithuanian)

Currently translated at 85.4% (441 of 516 strings)

Translation: Syncthing/GUI strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/lt/

Translated using Weblate (French)

Currently translated at 100.0% (516 of 516 strings)

Translation: Syncthing/GUI strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/fr/

Translated using Weblate (Danish)

Currently translated at 98.6% (509 of 516 strings)

Translation: Syncthing/GUI strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/da/

Translated using Weblate (Spanish)

Currently translated at 100.0% (516 of 516 strings)

Translation: Syncthing/GUI strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/gui/es/

* translation update uses weblate

---------

Co-authored-by: Jakob Borg <jakob@kastelo.net>
  • Loading branch information
acolomb and calmh authored Feb 7, 2023
1 parent 38f2b34 commit 784129e
Show file tree
Hide file tree
Showing 54 changed files with 8,513 additions and 221 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/update-docs-translations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ jobs:
bash build.sh prerelease
git push
env:
TRANSIFEX_USER: ${{ secrets.TRANSIFEX_USER }}
TRANSIFEX_PASS: ${{ secrets.TRANSIFEX_PASS }}
WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}
11 changes: 8 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ too much information will never get you yelled at. :)
## Contributing Translations

All translations are done via
[Transifex](https://www.transifex.com/projects/p/syncthing/). If you
wish to contribute to a translation, just head over there and sign up.
[Weblate](https://hosted.weblate.org/projects/syncthing/). 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.

Note that the previously used service at
[Transifex](https://www.transifex.com/projects/p/syncthing/) is being
retired and we kindly ask you to sign up on Weblate for continued
involvement.

## Contributing Code

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ case "${1:-default}" in

prerelease)
script authors
build transifex
build weblate
pushd man ; ./refresh.sh ; popd
git add -A gui man AUTHORS
git commit -m 'gui, man, authors: Update docs, translations, and contributors'
Expand Down
4 changes: 2 additions & 2 deletions gui/default/assets/lang/README.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
All files in this directory are auto generated. Do not change any of
them. To contribute translations, please head over to

https://explore.transifex.com/syncthing/
https://hosted.weblate.org/projects/syncthing/

Any updates made on Transifex will be automatically pulled into these
Any updates made on Weblate will be automatically pulled into these
files.
518 changes: 518 additions & 0 deletions gui/default/assets/lang/lang-ar.json

Large diffs are not rendered by default.

518 changes: 518 additions & 0 deletions gui/default/assets/lang/lang-be.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gui/default/assets/lang/lang-bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,4 +515,4 @@
"{%device%} wants to share folder \"{%folder%}\".": "{{device}} споделя папката „{{folder}}“.",
"{%device%} wants to share folder \"{%folderlabel%}\" ({%folder%}).": "{{device}} споделя папката „{{folder}}“. ({{folder}}).",
"{%reintroducer%} might reintroduce this device.": "Поръчителят {{reintroducer}} може отново да предложи това устройство."
}
}
518 changes: 518 additions & 0 deletions gui/default/assets/lang/lang-ca.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gui/default/assets/lang/lang-ca@valencia.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,4 +515,4 @@
"{%device%} wants to share folder \"{%folder%}\".": "{{device}} vol compartit la carpeta \"{{folder}}\".",
"{%device%} wants to share folder \"{%folderlabel%}\" ({%folder%}).": "{{device}} vol compartir la carpeta \"{{folderlabel}}\" ({{folder}}).",
"{%reintroducer%} might reintroduce this device.": "{{reintroducer}} podria tornar a introduir aquest dispositiu."
}
}
2 changes: 1 addition & 1 deletion gui/default/assets/lang/lang-cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,4 +515,4 @@
"{%device%} wants to share folder \"{%folder%}\".": "{{device}} chce sdílet složku „{{folder}}“.",
"{%device%} wants to share folder \"{%folderlabel%}\" ({%folder%}).": "{{device}} chce sdílet složku „{{folderlabel}}“ ({{folder}}).",
"{%reintroducer%} might reintroduce this device.": "{{reintroducer}} může toto zařízení znovu uvést."
}
}
112 changes: 56 additions & 56 deletions gui/default/assets/lang/lang-da.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gui/default/assets/lang/lang-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,4 +515,4 @@
"{%device%} wants to share folder \"{%folder%}\".": "{{device}} möchte den Ordner „{{folder}}“ teilen.",
"{%device%} wants to share folder \"{%folderlabel%}\" ({%folder%}).": "{{device}} möchte den Ordner „{{folderlabel}}“ ({{folder}}) teilen.",
"{%reintroducer%} might reintroduce this device.": "{{reintroducer}} könnte dieses Gerät wieder einführen."
}
}
518 changes: 518 additions & 0 deletions gui/default/assets/lang/lang-el.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gui/default/assets/lang/lang-en-AU.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,4 +515,4 @@
"{%device%} wants to share folder \"{%folder%}\".": "{{device}} wants to share folder \"{{folder}}\".",
"{%device%} wants to share folder \"{%folderlabel%}\" ({%folder%}).": "{{device}} wants to share folder \"{{folderlabel}}\" ({{folder}}).",
"{%reintroducer%} might reintroduce this device.": "{{reintroducer}} might reintroduce this device."
}
}
2 changes: 1 addition & 1 deletion gui/default/assets/lang/lang-en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,4 +515,4 @@
"{%device%} wants to share folder \"{%folder%}\".": "{{device}} wants to share folder \"{{folder}}\".",
"{%device%} wants to share folder \"{%folderlabel%}\" ({%folder%}).": "{{device}} wants to share folder \"{{folderlabel}}\" ({{folder}}).",
"{%reintroducer%} might reintroduce this device.": "{{reintroducer}} might reintroduce this device."
}
}
518 changes: 518 additions & 0 deletions gui/default/assets/lang/lang-eo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gui/default/assets/lang/lang-es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -515,4 +515,4 @@
"{%device%} wants to share folder \"{%folder%}\".": "{{device}} quiere compartir la carpeta \"{{folder}}\".",
"{%device%} wants to share folder \"{%folderlabel%}\" ({%folder%}).": "{{device}} quiere compartir la carpeta \"{{folderlabel}}\" ({{folder}}).",
"{%reintroducer%} might reintroduce this device.": "{{reintroducer}} puede reintroducir este equipo."
}
}
Loading

0 comments on commit 784129e

Please sign in to comment.