Commit cf650b47 authored by Tobias Quathamer's avatar Tobias Quathamer

Move pot creation into common.mk

parent 09c96618
......@@ -19,6 +19,10 @@ MOSTLYCLEANFILES = \
%.mo: %.po
$(MSGFMT) $(MSGFMT_FLAGS) -o $@ $<
# Generic target to create .pot files from JSON data files
$(DOMAIN).pot: $(top_srcdir)/data/$(DOMAIN).json
python3 $(top_srcdir)/bin/pot_from_json.py $(DOMAIN) $(top_srcdir)/data
# Used in the domain subdirectories for checking that
# all .po files contain UTF-8 data
check-local:
......
DOMAIN = iso_15924
include $(top_srcdir)/common.mk
iso_15924.pot: iso_15924.xml
../iso2pot.py --is-version ${VERSION} --comments alpha_4_code \
--fields name --outfile $@ $<
DOMAIN = iso_3166-1
include $(top_srcdir)/common.mk
iso_3166.pot: iso_3166.xml
../iso2pot.py --is-version $(VERSION) --comments alpha_3_code \
--fields name,names,official_name,common_name --outfile $@ $<
DOMAIN = iso_3166-2
include $(top_srcdir)/common.mk
iso_3166_2.pot: iso_3166_2.xml
../iso2pot.py --is-version ${VERSION} --comment code \
--fields name --outfile $@ $<
DOMAIN = iso_4217
include $(top_srcdir)/common.mk
iso_4217.pot: iso_4217.xml
../iso2pot.py --is-version ${VERSION} --comments letter_code \
--fields currency_name --outfile $@ $<
DOMAIN = iso_639-2
include $(top_srcdir)/common.mk
iso_639.pot: iso_639.xml
$(top_srcdir)/iso2pot.py --is-version $(VERSION) \
--comments iso_639_2T_code \
--comments iso_639_1_code \
--fields name,common_name --outfile $@ iso_639.xml
DOMAIN = iso_639-3
include $(top_srcdir)/common.mk
iso_639_3.pot: iso_639_3.xml
../iso2pot.py --is-version ${VERSION} --comment id \
--fields name,inverted_name,reference_name,common_name --outfile $@ $<
DOMAIN = iso_639-5
include $(top_srcdir)/common.mk
iso_639_5.pot: iso_639_5.xml
../iso2pot.py --is-version ${VERSION} --comment id \
--fields name --outfile $@ $<
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment