bugGNU gettext - Bugs: bug #64332, "de.po:3087: 'msgstr' is not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64332: "de.po:3087: 'msgstr' is not a valid C format string, unlike 'msgid'" error when building xfsprogs-6.3.0

Submitter:  Sam James <thesamesam>
Submitted:  Wed 21 Jun 2023 08:13:33 PM UTC
   
 
Category:  Programmer tools Severity:  3 - Normal
Item Group:  None Status:  Answer Provided
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Wed 21 Jun 2023 09:05:14 PM UTC, comment #3: 

Until the translator has fixed this, possible workarounds are:
- Mark the relevant message in de.po with '#, fuzzy', or
- Remove 'de' from the LINGUAS file.

Bruno Haible <haible>
Group administrator
Wed 21 Jun 2023 08:41:57 PM UTC, comment #2: 

Older versions of msgfmt were more sloppy, thus allowing such mistakes to cause bugs at runtime.

Bruno Haible <haible>
Group administrator
Wed 21 Jun 2023 08:36:28 PM UTC, comment #1: 

The relevant lines of the de.po file are:

#, c-format
msgid "%s will take about %.1f megabytes\n"
msgstr "%s wird etwa %.lf Megabytes einnehmen\n"

A directive %.lf is invalid, according to the references of https://www.gnu.org/software/gettext/manual/html_node/c_002dformat.html .

This needs to be fixed by the translator.

Bruno Haible <haible>
Group administrator
Wed 21 Jun 2023 08:13:33 PM UTC, original submission:  

When building xfsprogs-6.3.0 with gettext-0.22, I get the following build failure:
```
/usr/bin/gzip --best -c < CHANGES > CHANGES.gz
    [MSGFMT] de.mo
    [MSGFMT] pl.mo
    [SED]    mkfs.xfs.8
/usr/bin/sed -e 's|@mkfs_cfg_dir@|/usr/share/xfsprogs/mkfs|g' < mkfs.xfs.8.in > mkfs.xfs.8
/usr/bin/msgfmt -c --statistics -o de.mo de.po
de.po:3087: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/usr/bin/msgfmt: found 1 fatal error
2345 translated messages.
gmake[2]: * [../include/buildrules:110: de.mo] Error 1
gmake[2]: * Waiting for unfinished jobs....
/usr/bin/msgfmt -c --statistics -o pl.mo pl.po
3104 translated messages.
gmake[1]: * [include/buildrules:35: po] Error 2
gmake[1]: * Waiting for unfinished jobs....
```

Originally reported downstream in Gentoo at https://bugs.gentoo.org/908864.

I've attached de.po. Let me know if more information is needed too.

Sam James <thesamesam>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #54853:  de.po added by thesamesam (423KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by thesamesam (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-06-21 haible CategoryEnd-user / runtime Programmer tools
    2023-06-21 haible StatusNone Answer Provided
        Assigned toNone haible
        Open/ClosedOpen Closed
    2023-06-21 thesamesam Attached File- Added de.po, #54853

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code