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 612063 - Add translation comment
Add translation comment
Status: RESOLVED FIXED
Product: libgnomekbd
Classification: Core
Component: Config
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libgnomekbd maintainers
Sergey V. Udaltsov
Depends on:
Blocks:
 
 
Reported: 2010-03-07 08:29 UTC by Roman Matyus
Modified: 2016-10-11 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Roman Matyus 2010-03-07 08:29:18 UTC
Please add translation comment for this string:

#: ../libgnomekbd/gkbd-keyboard-config.c:752
#, c-format
msgid "layout \"%s\""
msgid_plural "layouts \"%s\""

#: ../libgnomekbd/gkbd-keyboard-config.c:771
#, c-format
msgid "option \"%s\""
msgid_plural "options \"%s\""
Comment 1 Sergey V. Udaltsov 2010-03-09 00:38:25 UTC
Actually, there are already comments in the source code. But for some reason they are ignored. Any ideas?
Comment 2 Marcel Telka 2010-03-11 10:03:40 UTC
You need to place the translation comment on the line immediately preceding the string, e.g.

	/* Translators: The count is related to the number of options. The %s
	 * format specifier should not be modified, left "as is". */
	layouts =
	    g_strdup_printf (ngettext
			     ("layout \"%s\"", "layouts \"%s\"",
			      count), buffer->str);
	g_string_truncate (buffer, 0);

should be changed to something like this:

	layouts =
	    g_strdup_printf (ngettext
	/* Translators: The count is related to the number of options. The %s
	 * format specifier should not be modified, left "as is". */
			     ("layout \"%s\"", "layouts \"%s\"",
			      count), buffer->str);
	g_string_truncate (buffer, 0);
Comment 3 Piotr Drąg 2016-10-11 14:04:52 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.