[Top][All Lists]

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

Re: [Nano-devel] GNU nano 1.1.12

From: David Lawrence Ramsey
Subject: Re: [Nano-devel] GNU nano 1.1.12
Date: Sat, 26 Oct 2002 12:15:05 -0700 (PDT)

--- Ken Tyler <address@hidden> wrote:
>On Fri, 25 Oct 2002, David Lawrence Ramsey wrote:
>> That's odd.  I could have sworn that the patch worked
>> during testing, but with 1.1.12's and 1.1.12-cvs'
>>'s, NO_NGETTEXT is ignored, but HAVE_NGETTEXT
>> is defined or undefined properly.  Does this patch work?
>Bad news, it doesn't, this is what I see
>Making all in po
>make[2]: Entering directory `/usr/local/src/nano-1.1.12/po'
>: --update es.po nano.pot
>rm -f && /usr/bin/msgfmt -c --statistics -o es.po
>es.po:34: keyword "msgid_plural" unknown
>es.po:33: missing `msgstr' section
>es.po:34: parse error
>es.po:41: keyword "msgid_plural" unknown
>es.po:40: missing `msgstr' section
>es.po:41: parse error
>es.po:48: keyword "msgid_plural" unknown
>es.po:47: missing `msgstr' section
>es.po:48: parse error
>es.po:220: keyword "msgid_plural" unknown
>es.po:219: missing `msgstr' section
>es.po:220: parse error
>found 12 fatal errors
>make[2]: *** [] Error 1

Hmmm.  It looks as though msgid_plural is only valid if
the system has ngettext, and it's only put in if ngettext
is used.  I've looked into it, and if I'm understanding it
correctly, the reason that the patch from before worked in
1.1.11-cvs but not 1.1.12 is because building nano
straight from CVS (as opposed to doing 'make dist' and
trying to build nano from the resulting tar.gz file)
regenerates po/nano.pot, po/*.po, and po/*.gmo, which, if
you don't use ngettext(), won't include the msgid_plural

I've updated the patch again.  Now the conditional gettext
statement is used instead of ngettext regardless of
whether you have ngettext or not.  (This will,
unfortunately, break the ngettext-dependent translations,
though.)  For nano-1.1.12 (the distribution tarball, not
CVS), try applying this patch, deleting po/nano.pot and
po/*.gmo, doing 'make dist', and building nano from the
resulting tarball.  The msgid_plural entries will still be
there, but they'll be unused, so maybe there won't be a
problem.  (If there is, try just commenting those lines
out for the time being.)  Let me know if it works.

Sluggy.Net: The Sluggy Freelance Community!

Select your own custom email address for FREE! Get address@hidden w/No Ads, 
6MB, POP & more!

Attachment: nanongettext2.patch
Description: Binary data

reply via email to

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