diff options
-rw-r--r-- | Makefile.common | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common index 9f5597c..b857da7 100644 --- a/Makefile.common +++ b/Makefile.common @@ -103,7 +103,7 @@ XMLFORMAT=xmlformat XMLFOPTS=-f $(FDPDIR)/docs-common/bin/xmlformat-fdp.conf XMLLINT =xmllint XML2PO =xml2po -PO2XML =xml2po +PO2XML =po2xml MSGMERGE=msgmerge ######################################################################### @@ -397,9 +397,11 @@ $(foreach L,${OTHERS},$(eval $(call DIR_template,${L}))) ######################################################################### ######################################################################### +# Define a template to generate the locale-specific XML files given the +# original ${PRI_LANG} file and an updated po/${LANG}.po file. define XML_template $(patsubst ${PRI_LANG}/%,${1}/%,${2}):: ${2} po/${1}.po ${1} - ${PO2XML} -p po/${1}.po ${2} >$$@ + ${PO2XML} ${2} po/${1}.po >$$@ endef $(foreach L,${OTHERS}, \ |