GNOME Bugzilla – Bug 148994
string needs comment for translators
Last modified: 2005-08-30 12:58:23 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"
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"
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.
Duplicate. *** This bug has been marked as a duplicate of 143698 ***