21 Commits

Author SHA1 Message Date
Rémi Verschelde
9683c7b514 Fully remove POT-Creation-Date in Sphinx POT/PO, Sphinx fails parsing if it's invalid
Add it back for the Weblate POT in case Weblate makes use of it.
2024-07-26 11:29:17 +02:00
Rémi Verschelde
59624157c6 Update script to minimize Sphinx PO files and properly wait for all pids
Use --for-msgfmt to remove location, fuzzy strings, and untranslated msgids.
This should reduce disk usage and diff size.
2024-07-25 12:31:40 +02:00
Rémi Verschelde
02c6dd6d79 Sync Sphinx and Weblate templates with current docs (4.3) + update script
Reset POT-Creation-Date to reduce diff on updates.
2024-07-25 12:31:38 +02:00
Rémi Verschelde
191a0f9725 Make the slow sphinx_po update use all cores 2023-11-29 23:51:59 +01:00
Rémi Verschelde
6e42d7fe40 Sync Sphinx and Weblate templates with current docs 2021-12-21 17:16:54 +01:00
Rémi Verschelde
9003d52ed3 Revert "Add support for localized class reference"
This reverts commit 5ef867caba.

In the end we take a different approach for the class reference localization,
which no longer involves including Weblate PO files in this repo but instead
the generated rst files after running l10n versions of `--doctool` and
`make_rst.py` in the engine repository.
2021-12-21 16:09:20 +01:00
Rémi Verschelde
8a95b482b3 Remove source string location from Sphinx PO files
They're the generated files we use to build the docs with Sphinx,
so we can save some diff and disk space on future updates by not
including this info.

It's only relevant to keep for Weblate files to let translators
find their way to the original text.
2021-12-16 16:45:52 +01:00
Rémi Verschelde
b1873567bc Remove deleted translations from Weblate PO files
Automate it in the update script.
2021-12-16 16:45:45 +01:00
Rémi Verschelde
d470e7a603 Sync Sphinx and Weblate templates with current docs 2021-03-31 15:39:26 +02:00
Rémi Verschelde
96231fc4ad Merge Sphinx translations with Weblate translations 2021-01-07 15:06:35 +01:00
Rémi Verschelde
5ef867caba Add support for localized class reference
Move weblate tutorials files to `weblate/docs`, as we'll soon have
class reference translations in `weblate/classes`.
2020-04-27 11:56:05 +02:00
Rémi Verschelde
fdee9236d4 Update Weblate template from Sphinx templates
Fix regression from #3.
2019-02-10 13:58:06 +01:00
Hugo Locurcio
2e37a50bc0 Fix warnings reported by ShellCheck and use Bash strict mode
See http://redsymbol.net/articles/unofficial-bash-strict-mode/.
2019-02-10 10:28:50 +01:00
Rémi Verschelde
43fb59cce6 Only build Sphinx po for current langs with live instance
Building for each lang takes several minutes, so saves a lot of build time.
More langs will be added as they are more complete and a Read The Docs instance
is created for them.
2018-05-18 14:29:49 +02:00
Rémi Verschelde
29ff50b802 Merge Sphinx translations with Weblate translations 2018-05-08 22:56:55 +02:00
Rémi Verschelde
36c9962f51 Add logic to generate ordered list of templates
We need to list templates in their table of contents order
if we want the monolithic POT file to match the order of
the documentation, which is more translator-friendly than
an folder-wise alphabetical ordering of POT files.

The logic is hacky and requires a prebuilt index.html from
the docs repo, but it works™.
2018-05-08 22:00:03 +02:00
Rémi Verschelde
721f494b55 Merge Sphinx translations with Weblate translations 2018-05-02 13:14:24 +02:00
Rémi Verschelde
f29b022edd Sync translations with Weblate 2018-04-19 09:15:06 +02:00
Rémi Verschelde
39bb3a10c9 Add script to list authors from Weblate commits 2018-04-19 09:00:00 +02:00
Rémi Verschelde
3426c71f39 Add fr, es and zh_CN Weblate PO files
Using `./update.sh --add-langs`.
Further langs will be added directly via Weblate.
2018-04-10 13:47:17 +02:00
Rémi Verschelde
14efd8e5d2 Add script to handle Sphinx and Weblate files 2018-04-10 13:47:17 +02:00