GNOME Bugzilla – Bug 695234
Split string to separate two strings
Last modified: 2017-05-29 10:30:37 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"
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.