X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04458ef49607571946baabc14229beeb0ff918a4..42ed9e53adbb0ec00b967270f072e39f3b998cd3:/locale/Makefile diff --git a/locale/Makefile b/locale/Makefile index b2d5269734..f0612bec47 100644 --- a/locale/Makefile +++ b/locale/Makefile @@ -17,7 +17,7 @@ XGETTEXT=xgettext XARGS=xargs # common xgettext args: C++ syntax, use the specified macro names as markers -XGETTEXT_ARGS=-C -k_ -kwxPLURAL:1,2 -kwxTRANSLATE -s -j +XGETTEXT_ARGS=-C -k_ -kwxPLURAL:1,2 -kwxTRANSLATE -kwxGetTranslation -s -j # implicit rules %.mo: %.po @@ -30,13 +30,10 @@ $(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 @@ -47,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 \ @@ -64,4 +66,3 @@ FORCE: .PHONY: allpo allmo force-update percentage FORCE -# $Id$