summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2013-08-01 00:23:58 +0000
committerjstebbins <[email protected]>2013-08-01 00:23:58 +0000
commit7cb083b6bb9d63a29104a6726c9d683c3e8b0b72 (patch)
tree17120506450345b225c39913bb12dc2c38e444ea /gtk/src/main.c
parent1ccc3bb50f1776015612f100e7d4fec6993dc052 (diff)
LinGui: mark more strings as translation candidates
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5678 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index b656f7812..b23936d34 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -52,6 +52,7 @@
#endif
#include <glib/gstdio.h>
+#include <glib/gi18n.h>
#include <gio/gio.h>
#include "hb.h"
#include "renderer_button.h"
@@ -73,16 +74,7 @@
/*
* Standard gettext macros.
*/
-#ifdef ENABLE_NLS
-# include <libintl.h>
-# undef _
-# define _(String) dgettext(PACKAGE, String)
-# ifdef gettext_noop
-# define N_(String) gettext_noop(String)
-# else
-# define N_(String) (String)
-# endif
-#else
+#ifndef ENABLE_NLS
# define textdomain(String) (String)
# define gettext(String) (String)
# define dgettext(Domain,Message) (Message)
@@ -688,9 +680,9 @@ static gboolean ghb_debug = FALSE;
static GOptionEntry entries[] =
{
- { "device", 'd', 0, G_OPTION_ARG_FILENAME, &dvd_device, "The device or file to encode", NULL },
- { "preset", 'p', 0, G_OPTION_ARG_STRING, &arg_preset, "The preset values to use for encoding", NULL },
- { "debug", 'x', 0, G_OPTION_ARG_NONE, &ghb_debug, "Spam a lot", NULL },
+ { "device", 'd', 0, G_OPTION_ARG_FILENAME, &dvd_device, N_("The device or file to encode"), NULL },
+ { "preset", 'p', 0, G_OPTION_ARG_STRING, &arg_preset, N_("The preset values to use for encoding"), NULL },
+ { "debug", 'x', 0, G_OPTION_ARG_NONE, &ghb_debug, N_("Spam a lot"), NULL },
{ NULL }
};
@@ -857,7 +849,7 @@ main(int argc, char *argv[])
textdomain(GETTEXT_PACKAGE);
#endif
- context = g_option_context_new("- Transcode media formats");
+ context = g_option_context_new(_("- Transcode media formats"));
g_option_context_add_main_entries(context, entries, GETTEXT_PACKAGE);
g_option_context_add_group(context, gtk_get_option_group(TRUE));
#if defined(_ENABLE_GST)