Mark the debug options for translation

This adds the descriptions of the debug options to the list of
translatable strings.

https://bugzilla.gnome.org/show_bug.cgi?id=658700
This commit is contained in:
Neil Roberts
2011-09-10 09:52:48 +01:00
parent 7669fdc827
commit f628839771
4 changed files with 115 additions and 107 deletions

View File

@ -151,15 +151,16 @@ _cogl_parse_debug_string (const char *value,
}
else if (strcmp (value, "help") == 0)
{
g_printerr ("\n\n%28s\n", "Supported debug values:");
g_printerr ("\n\n%28s\n", _("Supported debug values:"));
#define OPT(MASK_NAME, GROUP, NAME, NAME_FORMATTED, DESCRIPTION) \
g_printerr ("%28s %s\n", NAME ":", DESCRIPTION);
g_printerr ("%28s %s\n", NAME ":", g_dgettext (GETTEXT_PACKAGE, \
DESCRIPTION));
#include "cogl-debug-options.h"
g_printerr ("\n%28s\n", "Special debug values:");
g_printerr ("\n%28s\n", _("Special debug values:"));
OPT (IGNORED, "ignored", "all", "ignored", \
"Enables all non-behavioural debug options");
N_("Enables all non-behavioural debug options"));
OPT (IGNORED, "ignored", "verbose", "ignored", \
"Enables all non-behavioural debug options");
N_("Enables all non-behavioural debug options"));
#undef OPT
exit (1);
}