X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2b18c57462c2bfab3295e3312344253df6880b7..b632efe0d6c20859df77653dd3c62f25c0e493bd:/locale/Makefile diff --git a/locale/Makefile b/locale/Makefile index d4a6ae83fd..ce999e2e73 100644 --- a/locale/Makefile +++ b/locale/Makefile @@ -24,18 +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 ../contrib/include -name "*.h" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.pot - find ../contrib/src -name "*.cpp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.pot - find ../contrib/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