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: anonymous
Subject: [bug-gettext] [bug #48872] msgfmt.exe doesn't show format specification error in msgstr[0]
Date: Tue, 23 Aug 2016 16:08:28 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

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

                 Summary: msgfmt.exe doesn't show format specification error
in msgstr[0]
                 Project: GNU gettext
            Submitted by: None
            Submitted on: Tue 23 Aug 2016 04:08:25 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I have following code in test.po file:

========================================================
#: test.py:8
#, python-brace-format
msgid "[{selnum} of {maxnum} object selected]"
msgid_plural "[{selnum} of {maxnum} objects selected]"
msgstr[0] "[{selnum123} von {maxnum} Objekt selektiert]"
msgstr[1] "[{selnus} von {maxnum} Objekten selektiert]"
========================================================

{selnum123} in msgstr[0] shows no format specification error from 'msgfmt.exe'
if you run with option '--check'.

The same problem, if:
msgstr[0] "[{selnum} {selnum123} von {maxnum} Objekt selektiert]"

If you use a wrong specification in msgstr[1] its raise an error properly.
Also if you work without plural.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 23 Aug 2016 04:08:25 PM UTC  Name: test.po  Size: 681B   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=38330>

    _______________________________________________________

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]