bug-gnu-utils
[Top][All Lists]
Advanced

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

Better error message ?


From: Felix Natter
Subject: Better error message ?
Date: 17 Mar 2002 03:02:37 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

hi,

in gettext 0.11.1, when I have this in es.po:

#: gtypist.c:1470
#, c-format
msgid "'%' must immediately follow value"
msgstr "«%» debe seguir un valor"

I get this error:

rm -f es.gmo && /usr/local/bin/msgfmt -c --statistics -o es.gmo es.po
es.po:76: 'msgstr' is not a valid C format string, unlike 'msgid'
/usr/local/bin/msgfmt: found 1 fatal error

This is misleading because 'msgid' is not a valid format-string
either. I think it should better be something like (I hope you have a better
idea):
es.po:76: 'msgstr' is not a valid C format string as the comment suggests
or
es.po:76: 'msgstr' is not a valid C format string but it is marked as one

I also have a question concerning the code:
the code looks like this:

          fatal_error( _("'*' must immediately follow '%'"), copy_of_line );
        else
          fatal_error( _("missing '%'"), copy_of_line );
      } else
        fatal_error( _("missing '%'"), copy_of_line );
    }
    if (isspace( *(data - 1) ))
      fatal_error( _("'%' must immediately follow value"), copy_of_line );
the whole file is here:
http://home.t-online.de/~fam.natter/gtypist.c

The format-string operations are done in fatal_error, and the code
above knows nothing about it. Should I still use "%%" ? It's not that
important, I was just interested.

thanks,

-- 
Felix Natter




reply via email to

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