Add utils entry to generate docs i18n source files

This commit is contained in:
Veronica Berglyd Olsen
2025-02-02 23:34:04 +01:00
parent 92cd4e0169
commit b0169067be
2 changed files with 47 additions and 0 deletions
+11
View File
@@ -202,6 +202,17 @@ if __name__ == "__main__":
)
cmdBuildQM.set_defaults(func=utils.assets.buildTranslationAssets)
# Update Docs i18n Sources
cmdUpdateDocsPo = parsers.add_parser(
"docs-lupdate", help=(
"Update translation files for internationalisation of the docs. "
"The langauges to be updated can be added as arguments, "
"or set to all to update all existing translations."
)
)
cmdUpdateDocsPo.add_argument("lang", nargs="+")
cmdUpdateDocsPo.set_defaults(func=utils.assets.updateDocsTranslationSources)
# Build Manual
cmdBuildManual = parsers.add_parser(
"manual", help="Build the help documentation as a PDF (requires LaTeX)."