After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 695234 - Split string to separate two strings
Split string to separate two strings
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-03-05 18:32 UTC by Ján Kyselica
Modified: 2017-05-29 10:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ján Kyselica 2013-03-05 18:32:55 UTC
This string is needed to split for correct translation in our language (Slovak).

#: ../gio/gdbusmessage.c:1383
#, c-format
msgid "Wanted to read %lu bytes but only got %lu"
msgid_plural "Wanted to read %lu byte but only got %lu"
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""

The problem is in plural forms, we use this rule:
Plural-Forms: nplurals=3; plural= (n==1) ? 1 : (n>=2 && n<=4) ? 2 : 0;

For example:
msgstr[0] "Potrebných 6 bajtov na čítanie, no získaných iba 5"
msgstr[0] "Potrebných 6 bajtov na čítanie, no získané iba 2"
Comment 1 Philip Withnall 2017-05-29 10:30:37 UTC
Given that this is an error message which is very unlikely to ever be seen, I’m not sure it’s worth the complexity of two calls to g_dngettext() and a fifth translatable string for ordering the two message components.