[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SPAM] Re: [bug #32975] install-info: `(null) --help'

From: Patrice Dumas
Subject: [SPAM] Re: [bug #32975] install-info: `(null) --help'
Date: Thu, 7 Apr 2011 20:17:15 +0200
User-agent: Mutt/

On Thu, Apr 07, 2011 at 11:53:57AM +0300, Sergey Poznyakoff wrote:
> Patrice Dumas <address@hidden> ha escrit:
> > As a side note, I readded the perl files in po/POTFILES.in, they need
> > to be there when there are error messages to be translated in these
> > files.
> That's problematic, because xgettext does not know about suffixes .pm and
> .init.  As a result it treats them as C files, which is incorrect.  I

It knows about .pm files, but not .init.  Which is right, as .init
files are not perl files in general.

> see two ways to fix it: either create a separate po directory in
> texi2html (this will imply registering a separate translation domain at
> TP), 

I don't think this is a good idea, as I tried to have the same messages
than in makeinfo when possible, so having a unique domain is better in 
my opinion.

> or to hack po/Makefile.in.in as Gettext docs (section 15.4)
> suggest.  I'm inclined for the latter solution.

Another solution would be to use an extension commonly used for perl for 
the init files.  A quick glance at the gettext code leads to:
  { "pl",    "perl"   },                                                \
  { "PL",    "perl"   },                                                \
  { "pm",    "perl"   },                                                \
  { "cgi",   "perl"   },                 

I guess that the best extension would be .pm for init files, since they are
to be required and not executed.  This would also help for detection of
highlighting in editors.

What do you think about this solution?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]