GNU gettext - Bugs: bug #56456, xgettext doesn't separate...
You are not allowed to post comments on this tracker with your current authentication level.
bug #56456: xgettext doesn't separate msgid_plural and msgid when extracting
Submitter: | Michal Čihař <nijel> | ||
Submitted: | Fri 07 Jun 2019 10:06:47 AM UTC | ||
Category: | Plural forms | Severity: | 3 - Normal |
Item Group: | None | Status: | Not a Bug |
Privacy: | Public | Assigned to: | haible |
Open/Closed: | Closed |
Jump to the original submission
Wed 22 Dec 2021 03:34:28 PM UTC, comment #6: |
Bruno Haible <haible> |
Sun 29 Sep 2019 07:17:13 PM UTC, comment #5: xgettext will now emit a warning in this case.
|
Bruno Haible <haible> |
Tue 11 Jun 2019 05:58:12 PM UTC, comment #4: Good point, but in the end it's printed in capitals, that's why I didn't notice this. Even if the my case is not optimal I sill find this behavior weird. The problem is that it's hard to notice that these translations are not possible at all until you review that everything is translated or look into the PO files if all strings are present. |
Michal Čihař <nijel> |
Mon 10 Jun 2019 06:57:12 PM UTC, comment #3:
|
Bruno Haible <haible> |
Mon 10 Jun 2019 05:55:23 PM UTC, comment #2: Well this is exactly the string where I hit the problem (given that it's hidden by Django templating and string extraction, it took me some time to figure out that the actual problem lies down in the gettext). The singular string is used as table column label (so only singular is perfectly okay) and the plural string is used on landing page (eg. https://hosted.weblate.org/engage/weblate/) where it has to be pluralized to look good in non English locales.
|
Michal Čihař <nijel> |
Mon 10 Jun 2019 04:43:56 PM UTC, comment #1: I don't see it as a bug, because your example is contrived, not realistic.
|
Bruno Haible <haible> |
Fri 07 Jun 2019 10:06:47 AM UTC, original submission:
When there are both simple and plural string with same singular they are extracted as only plural leaving out possibility to translate the simple form as that.
|
Michal Čihař <nijel> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2019-06-10 | haible | Status | None | Not a Bug | |
Assigned to | None | haible | |||
Open/Closed | Open | Closed |
Powered by Savane 3.13-d3ae.
Corresponding source code
The aforementioned fix is contained in gettext-0.21.