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 148994 - string needs comment for translators
string needs comment for translators
Status: RESOLVED DUPLICATE of bug 143698
Product: libgnomeui
Classification: Deprecated
Component: general
CVS HEAD
Other All
: Low minor
: future
Assigned To: libgnomeui maintainers
libgnomeui maintainers
Depends on:
Blocks:
 
 
Reported: 2004-08-01 13:31 UTC by Raphael Higino
Modified: 2005-08-30 12:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Raphael Higino 2004-08-01 13:31:50 UTC
What does mean each %s in this string? I'd like a comment to help translation.

#: libgnomeui/gnome-authentication-manager.c:288
msgid "You must log in to access %s domain %s\n"
Comment 1 Baishampayan Ghose 2005-07-21 17:19:40 UTC
Somebody explain the use of the %s in the string. The line number has changed in
CVS HEAD as follows --

#: libgnomeui/gnome-authentication-manager.c:299
#, c-format
msgid "You must log in to access %s domain %s\n"
msgstr "You must log in to access %s domain %s\n"
Comment 2 Mindaugas Tamosevicius 2005-07-23 07:34:30 UTC
That's a old C printf syntax - You must copy all such symbols verbatim. Later
the 'printf' function will be substitute them with actual values passed.

Take for example the same line in the same file:
message = g_strdup_printf (_("You must log in to access %s domain %s\n"),
name->str, in_args->domain);

g_strdup_printf will substitute first %s occurence with name->str value, second
%s in_args->domain value, so we get the full message in one step.
Comment 3 Kjartan Maraas 2005-08-30 12:58:23 UTC
Duplicate.

*** This bug has been marked as a duplicate of 143698 ***