GNOME Bugzilla – Bug 748136
Don't split strings
Last modified: 2015-05-12 18:35:52 UTC
src/search/gb-search-display-group.c line 181: _("%"G_GUINT64_FORMAT" more") results in "%" as the translatable string. src/vim/gb-vim.c line 90: _("%"G_GINT64_FORMAT" is invalid for %s") results in "%" as the translatable string. tools/ide-search.c line 64: _("%"G_GSIZE_FORMAT" results\n") results in "%" as the translatable string.
How do other applications deal with this? The format for a size_t is going to be different on 32-bit and 64-bit.
(In reply to Christian Hergert from comment #1) > How do other applications deal with this? https://bugzilla.gnome.org/buglist.cgi?bug_id=605547,639290,640808
So the way Mathias fixed it in gdk_pixbuf was - _("Color profile has invalid length '%" G_GSIZE_FORMAT "'."), - icc_profile_size); + _("Color profile has invalid length %d."), + (gint)icc_profile_size);
Commit is at https://git.gnome.org/browse/gdk-pixbuf/commit/?id=081ac784
https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=821fa0b23f0476fc6cf322f6368a5ef76a2bbe8b shows another solution.
Created attachment 303277 [details] [review] Don't split strings That makes it actually possible to translate those
Review of attachment 303277 [details] [review]: LGTM
Attachment 303277 [details] pushed as 0e35c2b - Don't split strings