Merge branch 'i18n-enh' of https://github.com/lanurmi/wxWidgets
Keep strings in wxstd.pot in the natural, but the same under all platforms, order. See https://github.com/wxWidgets/wxWidgets/pull/2214
This commit is contained in:
@@ -17,7 +17,7 @@ XGETTEXT=xgettext
|
|||||||
XARGS=xargs
|
XARGS=xargs
|
||||||
|
|
||||||
# common xgettext args: C++ syntax, use the specified macro names as markers
|
# common xgettext args: C++ syntax, use the specified macro names as markers
|
||||||
XGETTEXT_ARGS=-C -k_ -kwxPLURAL:1,2 -kwxTRANSLATE -kwxGetTranslation --add-comments=TRANSLATORS: -s -j
|
XGETTEXT_ARGS=-C -k_ -kwxPLURAL:1,2 -kwxTRANSLATE -kwxGetTranslation --add-comments=TRANSLATORS: -j
|
||||||
|
|
||||||
# implicit rules
|
# implicit rules
|
||||||
%.mo: %.po
|
%.mo: %.po
|
||||||
@@ -32,9 +32,7 @@ $(foreach lang,$(WX_LINGUAS_UPDATE),$(lang).po): wxstd.pot
|
|||||||
|
|
||||||
wxstd.pot:
|
wxstd.pot:
|
||||||
touch $@
|
touch $@
|
||||||
find ../include -name "*.h" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.pot
|
(find ../include -name "*.h"; find ../src -name "*.cpp"; find ../src -name "*.mm") | LC_COLLATE=C sort | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.pot
|
||||||
find ../src -name "*.cpp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.pot
|
|
||||||
find ../src -name "*.mm" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.pot
|
|
||||||
|
|
||||||
allpo: force-update
|
allpo: force-update
|
||||||
@-for t in $(WX_LINGUAS_UPDATE); do $(MAKE) $$t.po; done
|
@-for t in $(WX_LINGUAS_UPDATE); do $(MAKE) $$t.po; done
|
||||||
|
Reference in New Issue
Block a user