X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6a35dc1f64cd06e17ef91d5dd59f9d3b360dd66..3f66f6a5b3583b02c34854556eb83e3a808524ce:/locale/Makefile diff --git a/locale/Makefile b/locale/Makefile index c0e0098aae..95157de441 100644 --- a/locale/Makefile +++ b/locale/Makefile @@ -24,16 +24,16 @@ XGETTEXT_ARGS=-C -k_ -kwxPLURAL:1,2 -kwxTRANSLATE -s -j $(MSGFMT) -c -o $@ $< # a PO file must be updated from wxstd.pot to include new translations -%.po: wxstd.pot +# (but not manually maintained platform-specific files like msw/it.po) +$(foreach lang,$(WX_LINGUAS_UPDATE),$(lang).po): wxstd.pot + +%.po: if [ -f $@ ]; then $(MSGMERGE) $@ wxstd.pot > $@.new && mv $@.new $@; else cp wxstd.pot $@; fi -# note the extra -kAddToPopUp used for Scintilla files: this is a hack to -# translate the popup menu items wxstd.pot: touch $@ find ../include -name "*.h" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.pot find ../src -name "*.cpp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.pot - find ../src/stc/scintilla/src -name "*.cxx" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -kAddToPopUp -o wxstd.pot allpo: force-update @-for t in $(WX_LINGUAS_UPDATE); do $(MAKE) $$t.po; done @@ -44,6 +44,11 @@ allmo: force-update: $(RM) wxstd.pot +check: + @for t in $(WX_LINGUAS); do \ + $(MSGFMT) -c -o /dev/null $$t.po 2>/dev/null || echo "$$t.po is BROKEN."; \ + done + # print out the percentage of the translated strings stats: FORCE @for i in $(WX_LINGUAS); do \ @@ -61,4 +66,3 @@ FORCE: .PHONY: allpo allmo force-update percentage FORCE -# $Id$