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 748137 - Use ngettext
Use ngettext
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
: 753665 754434 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-04-19 11:20 UTC by Alexandre Franke
Modified: 2015-10-13 22:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexandre Franke 2015-04-19 11:20:13 UTC
"About a year ago" and "About %u years ago" should be grouped with ngettext.

See https://wiki.gnome.org/TranslationProject/DevGuidelines/Plurals
Comment 1 Piotr Drąg 2015-09-19 14:02:23 UTC
*** Bug 753665 has been marked as a duplicate of this bug. ***
Comment 2 Piotr Drąg 2015-09-19 14:02:39 UTC
*** Bug 754434 has been marked as a duplicate of this bug. ***
Comment 3 Piotr Drąg 2015-09-19 14:03:29 UTC
These too (from bug #754434):

#: ../src/search/gb-search-display-group.c:182
#, c-format
msgid "%s more"

#: ../tools/ide-search.c:68
#, c-format
msgid "%s results\n"
Comment 4 Alexandre Franke 2015-09-19 14:44:27 UTC
This is non trivial as those strings use a temporary string formatted with G_GUINT64_FORMAT and such.
Comment 5 Marek Černocký 2015-09-22 08:03:13 UTC
Why it is non trivial? This would not work?:

count_str = g_strdup_printf ("%"G_GUINT64_FORMAT, count);
markup = g_strdup_printf (ngettext("%s more", "%s more", count), count_str);

gCount_str = g_strdup_printf ("%"G_GSIZE_FORMAT, gCount);
g_print (ngettext("%s results\n", "%s results\n", gCount), gCount_str);
Comment 6 Christian Hergert 2015-10-13 22:00:25 UTC
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.

If you come across more of these, please create individual bugs for them. It's really hard to keep track of them otherwise. A single bug with a list of them is also good.