#1174 Duplicate message definition in locale/po/hu.po

1.3
closed-fixed
None
5
2015-02-23
2014-06-19
No

As noted on http://i18n.debian.org/l10n-pkg-status/l/ledgersmb.html, there are 22 duplicate message errors present in locale/po/hu.po.

$ msgfmt -c -o /dev/null locale/po/hu.po
hu.po:8070: duplicate message definition...
hu.po:2337: ...this is the location of the first definition
hu.po:8075: duplicate message definition...
hu.po:2423: ...this is the location of the first definition
hu.po:8080: duplicate message definition...
hu.po:2452: ...this is the location of the first definition
hu.po:8085: duplicate message definition...
hu.po:2501: ...this is the location of the first definition
hu.po:8090: duplicate message definition...
hu.po:2515: ...this is the location of the first definition
hu.po:8096: duplicate message definition...
hu.po:2548: ...this is the location of the first definition
hu.po:8111: duplicate message definition...
hu.po:2594: ...this is the location of the first definition
hu.po:8116: duplicate message definition...
hu.po:2619: ...this is the location of the first definition
hu.po:8121: duplicate message definition...
hu.po:1475: ...this is the location of the first definition
hu.po:8126: duplicate message definition...
hu.po:1481: ...this is the location of the first definition
hu.po:8131: duplicate message definition...
hu.po:1487: ...this is the location of the first definition
hu.po:8136: duplicate message definition...
hu.po:766: ...this is the location of the first definition
hu.po:8141: duplicate message definition...
hu.po:771: ...this is the location of the first definition
hu.po:8146: duplicate message definition...
hu.po:1112: ...this is the location of the first definition
hu.po:8151: duplicate message definition...
hu.po:3056: ...this is the location of the first definition
hu.po:8156: duplicate message definition...
hu.po:3062: ...this is the location of the first definition
hu.po:8161: duplicate message definition...
hu.po:3068: ...this is the location of the first definition
hu.po:8168: duplicate message definition...
hu.po:3545: ...this is the location of the first definition
hu.po:8176: duplicate message definition...
hu.po:1853: ...this is the location of the first definition
hu.po:8181: duplicate message definition...
hu.po:3705: ...this is the location of the first definition
hu.po:8186: duplicate message definition...
hu.po:3742: ...this is the location of the first definition
hu.po:8191: duplicate message definition...
hu.po:3776: ...this is the location of the first definition
msgfmt: found 22 fatal errors

Issue verified and was found to be present in the 1.3, 1.4, and master branches by running msgfmt -c -o /dev/null locale/po/hu.po.

Discussion

    • Group: 1.4 --> 1.3
     
  • Referenace also: Debian bug 752063

     
  • Fix for v1.3: 56f3a5c

     
  • Confirmed that the issue is also in the master branch.

     
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -49,4 +49,4 @@
     msgfmt: found 22 fatal errors
    

    -Issue verified and was found to be present in both the 1.3 and 1.4 branches by running msgfmt -c -o /dev/null hu.po. May also be present in master.
    +Issue verified and was found to be present in the 1.3, 1.4, and master branches by running msgfmt -c -o /dev/null locale/po/hu.po.

    - **assigned_to**: Pongracz Istvan
    
     
  • Note that after the fix is applied in the 1.3 branch, there is now another error showing:

    $ msgfmt -c -o /dev/null locale/po/hu.po
    locale/po/hu.po:7763: format specifications in 'msgid' and 'msgstr' for argument 1 are not the same
    msgfmt: found 1 fatal error
    

    However; the % character being used in that string is not being used for formating, but rather to actually represent percent.

     
  • Technically only this problem exists.
    % used as percent, not formatting:

    msgid "Special order items are subject to a 10% cancellation fee."
    msgstr "Speciális rendelések visszamondása esetén 10% díjat számítunk fel."

    What to with that?

     
  • What about using %% ? Any sideeffects like it will shown as double % on the invoice?

     
    • On Mon, Sep 15, 2014 at 9:43 AM, Pongracz Istvan pongracz@users.sf.net wrote:

      What about using %% ? Any sideeffects like it will shown as double % on the invoice?

      Isn't there some way to "escape" it, so that's not seen a format code?

       
      • I found %% should escaping %. I did not try it yet. Maybe it is not really important as there is an other occurrence of this kind of % usage, but that is in a multiline text and there is no error for that.

        Example:
        msg ""
        "blablabla % blabla"
        "blabla"

        In this case there is no error message.

         
  • Happened to check this today after a git pull; the issue in branch 1.4 is the same as that in branch 1.3 but at a different line. The error in the master branch is still the same as that originally reported.

    Keep this issue for all branches here in the same ticket? Perhaps changing the milestone to "1.4" after the issue is fulled resolved for v1.3, then whatever milestone we're using to track the master branch after it's fully resolved for v1.4?

     
    • Chris Travers
      Chris Travers
      2014-09-19

      At this point we already have two issues on this. I would suggest either closing this and opening one for the % escaping, or just keeping it on this ticket.

       
  • Chris Travers
    Chris Travers
    2014-10-15

    Ok this is complicated. Gettext expects that the % will be escapped as %%. Locale::Maketext::Lexicon expects that % will be left as %. If we change it to %% to please gettext, our i18n libraries cant handle it.

    Because of the fact that this is separate from the original issue, I will be closing this and opening up a new bug report with more information, sources, etc.

    Closing closed-fixed since the original issue was fixed. The current issue will require someone somewhere else to fix something, I think.

     
  • Chris Travers
    Chris Travers
    2014-10-15

    • status: open --> closed-fixed