po: extract messages also for metainfo files
Recent versions of gettext know how to extract messages also from XML files such as AppStream metadata. Hence, extract their messages, and append them together with the global message catalog.
This commit is contained in:
parent
19300113fc
commit
b5969c1c9b
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
|
@ -40,7 +40,10 @@ po/$(PACKAGE_NAME).html.pot: $(NODE_MODULES_TEST)
|
||||||
po/$(PACKAGE_NAME).manifest.pot: $(NODE_MODULES_TEST)
|
po/$(PACKAGE_NAME).manifest.pot: $(NODE_MODULES_TEST)
|
||||||
po/manifest2po src/manifest.json -o $@
|
po/manifest2po src/manifest.json -o $@
|
||||||
|
|
||||||
po/$(PACKAGE_NAME).pot: po/$(PACKAGE_NAME).html.pot po/$(PACKAGE_NAME).js.pot po/$(PACKAGE_NAME).manifest.pot
|
po/$(PACKAGE_NAME).metainfo.pot: org.cockpit-project.$(PACKAGE_NAME).metainfo.xml
|
||||||
|
xgettext --default-domain=$(PACKAGE_NAME) --output=$@ $<
|
||||||
|
|
||||||
|
po/$(PACKAGE_NAME).pot: po/$(PACKAGE_NAME).html.pot po/$(PACKAGE_NAME).js.pot po/$(PACKAGE_NAME).manifest.pot po/$(PACKAGE_NAME).metainfo.pot
|
||||||
msgcat --sort-output --output-file=$@ $^
|
msgcat --sort-output --output-file=$@ $^
|
||||||
|
|
||||||
# Update translations against current PO template
|
# Update translations against current PO template
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue