bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] [bug #56919] msgcat combines strings with singular and plu


From: Matej Marusak
Subject: [bug-gettext] [bug #56919] msgcat combines strings with singular and plural forms incorrectly
Date: Thu, 19 Sep 2019 05:16:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

URL:
  <https://savannah.gnu.org/bugs/?56919>

                 Summary: msgcat combines strings with singular and plural
forms incorrectly
                 Project: GNU gettext
            Submitted by: mmarusak
            Submitted on: Thu 19 Sep 2019 09:16:56 AM UTC
                Category: Translator tools
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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"
```






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56919>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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