bugGNU gettext - Bugs: bug #56919, msgcat combines strings with...

 
 

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

bug #56919: msgcat combines strings with singular and plural forms incorrectly

Submitter:  Matej Marusak <mmarusak>
Submitted:  Thu 19 Sep 2019 09:16:56 AM UTC
   
 
Category:  Plural forms Severity:  3 - Normal
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Wed 22 Dec 2021 03:34:32 PM UTC, comment #3: 

The aforementioned fix is contained in gettext-0.21.

Bruno Haible <haible>
Group administrator
Sun 29 Sep 2019 07:17:42 PM UTC, comment #2: 
Bruno Haible <haible>
Group administrator
Thu 19 Sep 2019 10:35:07 AM UTC, comment #1: 

This is essentially the same issue as bug #56456 and bug #35027.

The workaround is simple: just change anything in the wording of the sentence.

In situations where you are not using sentences, you can alternatively use contexts for the disambiguation.

Bruno Haible <haible>
Group administrator
Thu 19 Sep 2019 09:16:56 AM UTC, original submission:  

I hit problem  that if I have one string only as singular and the same string that allows also plural, only one singular form is created (and the plural is missing). I would think that these two translations would not be connected.

It is marked as fuzzy, so it seems that msgcat is fully aware it is connecting such case, but it still seems bit unnecessary.

Or is there some switch which would stop this behavior? I am mostly asking as this creates fuzzy translation, which needs some attention from human and breaks our automation which picks string to be translated, upload them to translation services and picks translated strings back all without human intervention.

Reproducer:
```
$ cat f.pot
#: pkg/playground/translate.html:95 pkg/dashboard/index.html:72
msgid "Network"
msgstr ""

$ cat b.pot
#: pkg/machines/components/aggregateStatusCards.jsx:72
msgid "Network"
msgid_plural "Networks"
msgstr[0] ""
msgstr[1] ""

$ msgcat f.pot b.pot
#: pkg/playground/translate.html:95 pkg/dashboard/index.html:72
#: pkg/machines/components/aggregateStatusCards.jsx:72
#, fuzzy
msgid "Network"
msgstr ""
"#-#-#-#-#  f.pot  #-#-#-#-#\n"
"#-#-#-#-#  b.pot  #-#-#-#-#\n"
```


Matej Marusak <mmarusak>

 

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

No files currently attached

 

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 mmarusak (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-19 haible CategoryTranslator tools Plural forms
        StatusNone Duplicate
        Assigned toNone haible
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code