diff options
author | 风青山 <idleman@yeah.net> | 2023-11-19 09:19:45 +0800 |
---|---|---|
committer | 风青山 <idleman@yeah.net> | 2023-11-19 11:29:46 +0800 |
commit | ed0e6e87fd03efdf2ebd8deecf5137f1d01bd73f (patch) | |
tree | 071693673e93abaf6f08305ca3b4267e5766293a | |
parent | 80de898d721f952dac0b102d48bb73d6b02ee1e8 (diff) | |
download | redot-engine-ed0e6e87fd03efdf2ebd8deecf5137f1d01bd73f.tar.gz |
Fix translation po file not found when `make rst`
The parsed language parameters contain unstripped spaces. This will
generate a wrong path.
Provide a `TOOLSOPT` to allow overriding the default values of
parameters of the `make_rst.py` script.
The xml generated by `godot --doctool -l LANG` can be checked for
errors using `make xml-check LANGARG=LANG`, which may be useful for
checking errors in po files.
-rw-r--r-- | doc/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/Makefile b/doc/Makefile index 53c5c7dcb0..722746f366 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -4,7 +4,7 @@ OUTPUTDIR = $(BASEDIR)/_build TOOLSDIR = $(BASEDIR)/tools JSDIR = "$(BASEDIR)/../platform/web" LANGARG ?= en -LANGCMD = -l $(LANGARG) +TOOLSOPT ?= .ONESHELL: @@ -19,7 +19,10 @@ doxygen: rst: rm -rf "$(OUTPUTDIR)/rst" mkdir -p "$(OUTPUTDIR)/rst" - python3 "$(TOOLSDIR)/make_rst.py" -o "$(OUTPUTDIR)/rst" "$(LANGCMD)" $(CLASSES) + python3 "$(TOOLSDIR)/make_rst.py" -o "$(OUTPUTDIR)/rst" -l "$(LANGARG)" $(TOOLSOPT) $(CLASSES) + +xml-check: + python3 "$(TOOLSDIR)/make_rst.py" --dry-run -l "$(LANGARG)" $(TOOLSOPT) $(CLASSES) rstjs: rm -rf "$(OUTPUTDIR)/rstjs" |