Skip to content
Snippets Groups Projects
Commit 40735c93 authored by Pino Toscano's avatar Pino Toscano
Browse files

i18n: use dummy source for objinfo and example catalogs

use rc.cpp as dummy source for the objinfo and example catalogs, so
repack-pot can properly identify and remove the references to the
sources

there is no change to the resulting catalogs, only dropped source
references to the dummy objinfo.cpp and examples.cpp
parent cf3901cf
No related branches found
No related tags found
No related merge requests found
......@@ -2,17 +2,17 @@
EXTRACTXML="./extractxml"
rm -f rc.cpp
$EXTRACTXML --extract \
--context='%(filename)s:%(tag)s' --tag-regex='^(?:title|body|p|h[1-6])$' --recursive --strip \
./objectinfo/*.html --output=objinfo.cpp
./objectinfo/*.html --output=rc.cpp
$XGETTEXT rc.cpp -o $podir/step_objinfo_files.pot
rm -f rc.cpp
$EXTRACTXML --extract \
--context='%(tag)s' --tag=name --tag=text --unquote \
--parse-unquoted='--context=HTML:%(tag)s --tag-regex=^(?:title|body|p|h[1-6])$ --recursive --strip' \
./examples/*.step ./tutorials/*.step --output=examples.cpp
$XGETTEXT objinfo.cpp -o $podir/step_objinfo_files.pot
$XGETTEXT examples.cpp -o $podir/step_example_files.pot
rm -f objinfo.cpp
rm -f examples.cpp
./examples/*.step ./tutorials/*.step --output=rc.cpp
$XGETTEXT rc.cpp -o $podir/step_example_files.pot
rm -f rc.cpp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment