projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Interface fixes for wxGrid classes
[wxWidgets.git]
/
locale
/
Makefile
diff --git
a/locale/Makefile
b/locale/Makefile
index c0e0098aaefa0cb39f45e5aad49083faefae5ba4..d305436a8611e17ad8bd80540eac0667af5b81b3 100644
(file)
--- 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
$(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
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
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
allpo: force-update
@-for t in $(WX_LINGUAS_UPDATE); do $(MAKE) $$t.po; done
@@
-44,6
+44,11
@@
allmo:
force-update:
$(RM) wxstd.pot
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 \
# print out the percentage of the translated strings
stats: FORCE
@for i in $(WX_LINGUAS); do \