]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use MSGFMT_015 and XGETTEXT_015 when the POT file contains msgctxt.
authorBruno Haible <bruno@clisp.org>
Thu, 20 Oct 2005 17:55:53 +0000 (17:55 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:56 +0000 (12:12 +0200)
16 files changed:
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/po.m4
gettext-runtime/po/ChangeLog
gettext-runtime/po/Makefile.in.in
gettext-runtime/po/Makevars
gettext-tools/examples/ChangeLog
gettext-tools/examples/hello-c++-gnome/po/Makevars
gettext-tools/examples/hello-c++-kde/po/Makevars
gettext-tools/examples/hello-c++/po/Makevars
gettext-tools/examples/hello-c-gnome/po/Makevars
gettext-tools/examples/hello-c/po/Makevars
gettext-tools/examples/hello-objc-gnome/po/Makevars
gettext-tools/examples/hello-objc/po/Makevars
gettext-tools/po/ChangeLog
gettext-tools/po/Makefile.in.in
gettext-tools/po/Makevars

index 10edffb13a36bd42a747811b614c2a7e129e343d..f23e9fc4be081daac118a6a373eb175f63eb9452 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-18  Bruno Haible  <bruno@clisp.org>
+
+       * po.m4 (AM_PO_SUBDIRS): Also define MSGFMT_015, GMSGFMT_015,
+       XGETTEXT_015.
+
 2005-10-18  Bruno Haible  <bruno@clisp.org>
 
        * po.m4 (AM_PO_SUBDIRS): Remove redundant checks.
index eb6f6e2c384e82250c6093a1957878395c1a3d6b..ac47bbc765cadb2a7aa8e9f75a65ad6211ac8ba5 100644 (file)
@@ -1,4 +1,4 @@
-# po.m4 serial 9 (gettext-0.15)
+# po.m4 serial 10 (gettext-0.15)
 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -39,6 +39,22 @@ AC_DEFUN([AM_PO_SUBDIRS],
     :)
   AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
+  dnl Test whether it is GNU msgfmt >= 0.15.
+changequote(,)dnl
+  case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
+    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
+    *) MSGFMT_015=$MSGFMT ;;
+  esac
+changequote([,])dnl
+  AC_SUBST([MSGFMT_015])
+changequote(,)dnl
+  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
+    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
+    *) GMSGFMT_015=$GMSGFMT ;;
+  esac
+changequote([,])dnl
+  AC_SUBST([GMSGFMT_015])
+
   dnl Search for GNU xgettext 0.12 or newer in the PATH.
   dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
   dnl The second test excludes FreeBSD xgettext.
@@ -49,6 +65,15 @@ AC_DEFUN([AM_PO_SUBDIRS],
   dnl Remove leftover from FreeBSD xgettext call.
   rm -f messages.po
 
+  dnl Test whether it is GNU xgettext >= 0.15.
+changequote(,)dnl
+  case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
+    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
+    *) XGETTEXT_015=$XGETTEXT ;;
+  esac
+changequote([,])dnl
+  AC_SUBST([XGETTEXT_015])
+
   dnl Search for GNU msgmerge 0.11 or newer in the PATH.
   AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
     [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
index 834683f00cc5302ee8743f9fb696e000f60fa0fb..5366bba8942c44ecdd59695dbce75c824cd8b5aa 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-18  Bruno Haible  <bruno@clisp.org>
+
+       * Makevars (USE_MSGCTXT): New macro.
+       * Makefile.in.in (GMSGFMT, MSGFMT, XGETTEXT): Define according to the
+       value of $(USE_MSGCTXT).
+
 2005-07-26  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.in.in (datarootdir): New variable.
index 77330edfb08297f1f5f511eed7b4fb366550640e..f22cf90431c8d15d8bb639d978fc6cf8c8691e8f 100644 (file)
@@ -33,9 +33,18 @@ INSTALL_DATA = @INSTALL_DATA@
 MKINSTALLDIRS = @MKINSTALLDIRS@
 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
 
-GMSGFMT = @GMSGFMT@
-MSGFMT = @MSGFMT@
-XGETTEXT = @XGETTEXT@
+GMSGFMT_ = @GMSGFMT@
+GMSGFMT_no = @GMSGFMT@
+GMSGFMT_yes = @GMSGFMT_015@
+GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
+MSGFMT_ = @MSGFMT@
+MSGFMT_no = @MSGFMT@
+MSGFMT_yes = @MSGFMT_015@
+MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
+XGETTEXT_ = @XGETTEXT@
+XGETTEXT_no = @XGETTEXT@
+XGETTEXT_yes = @XGETTEXT_015@
+XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
 MSGMERGE = msgmerge
 MSGMERGE_UPDATE = @MSGMERGE@ --update
 MSGINIT = msginit
index 7b66638bf0a0d2b8dbd176a4d587e945773dce35..6fa6b94f26c8d7aebc35b29995f34f5c5685359c 100644 (file)
@@ -42,3 +42,9 @@ MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES =
+
+# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
+# context.  Possible values are "yes" and "no".  Set this to yes if the
+# package uses functions taking also a message context, like pgettext(), or
+# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
+USE_MSGCTXT = no
index 7b14cbd11d6ee1ee326ae4754fcb3f6fe5d30be8..5409e4a58dc3b845a680de3b5a7286e2f2fdc9ce 100644 (file)
@@ -1,3 +1,13 @@
+2005-10-18  Bruno Haible  <bruno@clisp.org>
+
+       * hello-c/po/Makevars (USE_MSGCTXT): New macro.
+       * hello-c-gnome/po/Makevars (USE_MSGCTXT): New macro.
+       * hello-c++/po/Makevars (USE_MSGCTXT): New macro.
+       * hello-c++-gnome/po/Makevars (USE_MSGCTXT): New macro.
+       * hello-c++-kde/po/Makevars (USE_MSGCTXT): New macro.
+       * hello-objc/po/Makevars (USE_MSGCTXT): New macro.
+       * hello-objc-gnome/po/Makevars (USE_MSGCTXT): New macro.
+
 2005-09-19  Bruno Haible  <bruno@clisp.org>
 
        * hello-*/autogen.sh: Also install m4/progtest.m4.
index e20fc8caa3172de369423c762c49861a154988f6..9cdeb3acda57396d6cad6a87a81f0bce76547875 100644 (file)
@@ -53,3 +53,9 @@ MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES =
+
+# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
+# context.  Possible values are "yes" and "no".  Set this to yes if the
+# package uses functions taking also a message context, like pgettext(), or
+# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
+USE_MSGCTXT = no
index adcf4e7c40d9899d067b19cee5f4f64412369344..5cbe58c50720c9a160e03c251a87c789681ea718 100644 (file)
@@ -49,3 +49,9 @@ MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES =
+
+# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
+# context.  Possible values are "yes" and "no".  Set this to yes if the
+# package uses functions taking also a message context, like pgettext(), or
+# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
+USE_MSGCTXT = no
index 7c3b897a8193bd808d23c15dc040fc49fdb0ccbe..9a63ebf5625dfc59a3dce666f071a95fa2b02490 100644 (file)
@@ -42,3 +42,9 @@ MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES =
+
+# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
+# context.  Possible values are "yes" and "no".  Set this to yes if the
+# package uses functions taking also a message context, like pgettext(), or
+# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
+USE_MSGCTXT = no
index e20fc8caa3172de369423c762c49861a154988f6..9cdeb3acda57396d6cad6a87a81f0bce76547875 100644 (file)
@@ -53,3 +53,9 @@ MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES =
+
+# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
+# context.  Possible values are "yes" and "no".  Set this to yes if the
+# package uses functions taking also a message context, like pgettext(), or
+# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
+USE_MSGCTXT = no
index 03bfa22f1253f0787cc8d555337ec421192f7724..3f34e17397de1f8fc0bfd014dc601909c4110742 100644 (file)
@@ -41,3 +41,9 @@ MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES =
+
+# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
+# context.  Possible values are "yes" and "no".  Set this to yes if the
+# package uses functions taking also a message context, like pgettext(), or
+# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
+USE_MSGCTXT = no
index e20fc8caa3172de369423c762c49861a154988f6..9cdeb3acda57396d6cad6a87a81f0bce76547875 100644 (file)
@@ -53,3 +53,9 @@ MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES =
+
+# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
+# context.  Possible values are "yes" and "no".  Set this to yes if the
+# package uses functions taking also a message context, like pgettext(), or
+# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
+USE_MSGCTXT = no
index 03bfa22f1253f0787cc8d555337ec421192f7724..3f34e17397de1f8fc0bfd014dc601909c4110742 100644 (file)
@@ -41,3 +41,9 @@ MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES =
+
+# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
+# context.  Possible values are "yes" and "no".  Set this to yes if the
+# package uses functions taking also a message context, like pgettext(), or
+# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
+USE_MSGCTXT = no
index dba3c7e4fee30b7529e89cdedcee643efcb81cf8..9e77d56ba778125a347e0acf45ac16eaa5182623 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-18  Bruno Haible  <bruno@clisp.org>
+
+       * Makevars (USE_MSGCTXT): New macro.
+       * Makefile.in.in (GMSGFMT, MSGFMT, XGETTEXT): Define according to the
+       value of $(USE_MSGCTXT).
+
 2005-07-26  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.in.in (datarootdir): New variable.
index 77330edfb08297f1f5f511eed7b4fb366550640e..f22cf90431c8d15d8bb639d978fc6cf8c8691e8f 100644 (file)
@@ -33,9 +33,18 @@ INSTALL_DATA = @INSTALL_DATA@
 MKINSTALLDIRS = @MKINSTALLDIRS@
 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
 
-GMSGFMT = @GMSGFMT@
-MSGFMT = @MSGFMT@
-XGETTEXT = @XGETTEXT@
+GMSGFMT_ = @GMSGFMT@
+GMSGFMT_no = @GMSGFMT@
+GMSGFMT_yes = @GMSGFMT_015@
+GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
+MSGFMT_ = @MSGFMT@
+MSGFMT_no = @MSGFMT@
+MSGFMT_yes = @MSGFMT_015@
+MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
+XGETTEXT_ = @XGETTEXT@
+XGETTEXT_no = @XGETTEXT@
+XGETTEXT_yes = @XGETTEXT_015@
+XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
 MSGMERGE = msgmerge
 MSGMERGE_UPDATE = @MSGMERGE@ --update
 MSGINIT = msginit
index 9ab201f9cfba0aa0059bf45e4a9b3c7f74dc9a60..71d710115eeedd66ca5b75c342a69ec6ceb09b35 100644 (file)
@@ -46,3 +46,9 @@ MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES =
+
+# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
+# context.  Possible values are "yes" and "no".  Set this to yes if the
+# package uses functions taking also a message context, like pgettext(), or
+# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
+USE_MSGCTXT = no