Re: new module 'propername'

Bruno Haible <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches,gmane.comp.lib.gnulib.bugs
Message-ID <[email protected]>
Eric Blake wrote:
> 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."' \

You hit the nail on the head. The double-quotes must indeed be part of the
--keyword argument.

I'm applying this, and am sorry that I wasted an hour of your time on this.


2008-05-19  Bruno Haible  <[email protected]>

	* modules/propername (Notice, configure.ac): Put quoted "..." into
	--keyword option.
	* lib/propername.h: Update comments accordingly.
	Reported by Eric Blake.

*** lib/propername.h.orig	2008-05-20 01:46:35.000000000 +0200
--- lib/propername.h	2008-05-20 00:41:06.000000000 +0200
***************
*** 72,82 ****
       3) If you are using GNU gettext version 0.16.1 or older, in po/Makevars,
          in the definition of the XGETTEXT_OPTIONS variable, add:
  
!            --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."
  
          This specifies automatic comments for the translator. (Requires
!         xgettext >= 0.15.)
   */
  
  #ifndef _PROPERNAME_H
--- 72,83 ----
       3) If you are using GNU gettext version 0.16.1 or older, in po/Makevars,
          in the definition of the XGETTEXT_OPTIONS variable, add:
  
!            --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."'
  
          This specifies automatic comments for the translator. (Requires
!         xgettext >= 0.15. The double-quotes inside the quoted string are on
!         purpose: they are part of the --keyword argument syntax.)
   */
  
  #ifndef _PROPERNAME_H
*** modules/propername.orig	2008-05-20 01:46:36.000000000 +0200
--- modules/propername	2008-05-20 01:41:22.000000000 +0200
***************
*** 4,11 ****
  Notice:
  If you are using GNU gettext version 0.16.1 or older, add the following options
  to XGETTEXT_OPTIONS in your po/Makevars:
!   --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.'
  
  Files:
  lib/propername.h
--- 4,11 ----
  Notice:
  If you are using GNU gettext version 0.16.1 or older, add the following options
  to XGETTEXT_OPTIONS in your po/Makevars:
!   --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."'
  
  Files:
  lib/propername.h
***************
*** 26,33 ****
  
  configure.ac:
  m4_ifdef([AM_XGETTEXT_OPTION],
!   [AM_XGETTEXT_OPTION([--keyword=proper_name:1,'This is a proper name. See the gettext manual, section Names.'])
!    AM_XGETTEXT_OPTION([--keyword=proper_name_utf8:1,'This is a proper name. See the gettext manual, section Names.'])])
  
  Makefile.am:
  lib_SOURCES += propername.h propername.c
--- 26,33 ----
  
  configure.ac:
  m4_ifdef([AM_XGETTEXT_OPTION],
!   [AM_XGETTEXT_OPTION([--keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'])
!    AM_XGETTEXT_OPTION([--keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'])])
  
  Makefile.am:
  lib_SOURCES += propername.h propername.c
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.