[Bf-docboard-svn] bf-manual: [7445] trunk/blender_docs/tools_maintenance/update_po.py: Update Po: compile pot files to build/gettext
Aaron Carlisle
noreply at blender.org
Mon Nov 30 07:27:32 CET 2020
Revision: 7445
https://developer.blender.org/rBM7445
Author: Blendify
Date: 2020-11-30 07:27:32 +0100 (Mon, 30 Nov 2020)
Log Message:
-----------
Update Po: compile pot files to build/gettext
This matches the makefile output
Modified Paths:
--------------
trunk/blender_docs/tools_maintenance/update_po.py
Modified: trunk/blender_docs/tools_maintenance/update_po.py
===================================================================
--- trunk/blender_docs/tools_maintenance/update_po.py 2020-11-30 03:52:53 UTC (rev 7444)
+++ trunk/blender_docs/tools_maintenance/update_po.py 2020-11-30 06:27:32 UTC (rev 7445)
@@ -121,7 +121,7 @@
# Ensure we're in the repo's base:
ROOT_DIR = os.path.normpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), ".."))
os.chdir(ROOT_DIR)
-LOCALE_BUILD_DIR = os.path.join(ROOT_DIR, "build", "locale")
+LOCALE_BUILD_DIR = os.path.join(ROOT_DIR, "build", "gettext")
LOCALE_DIR = os.path.join(ROOT_DIR, "locale")
@@ -178,7 +178,7 @@
# Source.
"manual",
# Destination.
- os.path.join("build", "locale"),
+ LOCALE_BUILD_DIR,
])
# ---------------
@@ -200,7 +200,7 @@
sphinx_intl_arg_list.append([
"--config=" + os.path.join("manual", "conf.py"),
"update",
- "--pot-dir=" + os.path.join("build", "locale"),
+ "--pot-dir=" + LOCALE_BUILD_DIR,
"--language=" + po_lang,
])
More information about the Bf-docboard-svn
mailing list