bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] [bug #48872] msgfmt.exe doesn't show format specification


From: Vaclav Slavik
Subject: [bug-gettext] [bug #48872] msgfmt.exe doesn't show format specification error in msgstr[0]
Date: Sun, 28 Aug 2016 17:06:14 +0000 (UTC)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7

Follow-up Comment #1, bug #48872 (project gettext):

To clarify: the submitter originally posted this as a Poedit bug (see
https://groups.google.com/forum/#!msg/poedit/vlEQ55jdabo/zGAwYanLBQAJ).

It’s fine that msgfmt -c doesn’t complain about the lack of {selnum} in
msgstr[0] (singular). That’s of course desirable, because some languages
strongly prefer to express “1 something” without using the “1” number.


What _isn’t_ fine is that it doesn’t complain about other errors such as
the above example {selnum123}, which are unrelated to this singular special
case. The error given (lack of selnum) for msgstr[1] is misleading, but if you
use “{selnum} {selnum123} of {maxnum}" instead, you get the expected "a
format specification for argument 'selnum123' doesn't exist in
'msgid_plural’”… That’s something that should be reported for singular
translations & msgid as well.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48872>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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