Re: new module 'propername'

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches,gmane.comp.lib.gnulib.bugs
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 5/19/2008 6:42 AM:
|
| Actually, I'm starting to wonder if the culprit is bad documentation in
| propername.h.  It recommends:
|
| ~           --keyword=proper_name:1,"This is a proper name. See the gettext
| manual, section Names."
| ~           --keyword=proper_name_utf8:1,"This is a proper name. See the
| gettext manual, section Names."

Yep - that was the culprit.  After reading 'info xgettext', it looks like
the extended specifier to --keyword was added in xgettext 0.15, but it
needs literal " in its argument.  So, I ended up using this instead:

~  --keyword=proper_name:1,'"This is a proper name. See the gettext manual,
section Names."' \
~  --keyword=proper_name_utf8:1,'"This is a proper name. See the gettext
manual, section Names."' \

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgxedQACgkQ84KuGfSFAYAU+ACgnJr8myB8LnLwkc+YGAUjYxd8
f5YAnAieOmGJFuS7xglHM4cHtFgjVedx
=SOCa
-----END PGP SIGNATURE-----

_______________________________________________
M4-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-patches
m4.patch349 (text/plain, 1.6 KB)
From 28b96dbbd1eeb0e1fc1b0678735cacaddebe3595 Mon Sep 17 00:00:00 2001
From: Eric Blake <[email protected]>
Date: Mon, 19 May 2008 06:57:38 -0600
Subject: [PATCH] Fix xgettext options.

* po/Makevars (XGETTEXT_OPTIONS): The " must be passed to
xgettext.

Signed-off-by: Eric Blake <[email protected]>
---
 ChangeLog   |    4 ++++
 po/Makevars |    4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 75b6cef..625a99f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-05-19  Eric Blake  <[email protected]>
 
+	Fix xgettext options.
+	* po/Makevars (XGETTEXT_OPTIONS): The " must be passed to
+	xgettext.
+
 	Fix spelling of René Seindal's name in --version output.
 	* ltdl/m4/gnulib-cache.m4: Import propername module.
 	* src/main.c (AUTHORS): Rewrite in terms of proper_name.
diff --git a/po/Makevars b/po/Makevars
index 74f3bac..475ef3b 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -31,8 +31,8 @@ XGETTEXT_OPTIONS = \
   --from-code=UTF-8 \
   --keyword=_ --flag=_:1:pass-c-format \
   --keyword=N_ --flag=N_:1:pass-c-format \
-  --keyword=proper_name:1,"This is a proper name. See the gettext manual, section Names." \
-  --keyword=proper_name_utf8:1,"This is a proper name. See the gettext manual, section Names." \
+  --keyword=proper_name:1,'"This is a proper name. See the gettext manual, section Names."' \
+  --keyword=proper_name_utf8:1,'"This is a proper name. See the gettext manual, section Names."' \
   --flag=error:3:c-format --flag=error_at_line:5:c-format \
   --flag=verror:3:c-format --flag=verror_at_line:5:c-format \
   --flag=asprintf:2:c-format --flag=vasprintf:2:c-format \
-- 
1.5.5.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.