Uh oh!
There was an error while loading. Please reload this page.
Add script for handling translations - #195
Conversation
0d01316 to
fb27bb0Comparefb27bb0 to
d271facCompare
hugovk
left a comment
There was a problem hiding this comment.
Thanks for this! Please could you add it somehow to the CI, so we know it at least runs without errors?
I was thinking if this script could be converted into Makefile commands, but then we won't have Windows support, so that's no good. But we could add Makefile commands to call this script. This can be left for later though.
Uh oh!
There was an error while loading. Please reload this page.
@hugovk workflow job added to tests.yml. My intention is to show the script works, but we can shape it better. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Wulian233
commented
Sep 17, 2024
It looks like this PR hasn't had a new activity in a while, is it finished now? |
hugovk
left a comment
There was a problem hiding this comment.
A few nits, then I think we can merge this and iterate if needed, unless anyone else has any last comments?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In the Simplified Chinese documentation, there is an issue regarding hard-coded (edit: not hard-coded) strings such as "added in version". that cannot be translated. Can this PR solve this problem? |
rffontenelle
commented
Oct 27, 2024
No, that's a Sphinx string and it is not translated to zh_CN: https://github.com/sphinx-doc/sphinx/blob/116a430caca98580c8877cf7b0ba270eae9604bf/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.po#L1951 Consider contributing in https://explore.transifex.com/sphinx-doc/sphinx-1/ |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Otherwise init command will be skipped
As one need to have POT before initializing PO
rffontenelle
commented
Oct 28, 2024
That's all from my side. Just a few minor changes. |
Wulian233
commented
Oct 28, 2024
It looks great! I have a question: where should we translate this theme, and how will the translation automatically sync to this repository? |
rffontenelle
commented
Oct 28, 2024
@Wulian233 I mentioned that in the issue and it is yet to be defined. Some projects coordinate translation efforts in the own forge via pull/merge requests — not optimal for the translators. There is also translation platforms like Weblate, Transifex and others. My vote would be to use Weblate, which provides "libre hosting" for free software and features automatic opening and updating pull request for contributed translations. Tasks involve: setting up Weblate project (I can help with/do it), maintainers here update POT and give time before releasing to receive translations; and merging translation pull requests from Weblate. |
This is an initial take on the enable localization initiative adding a script to ease the babel call.
Usage:
See #194