dasher r3478 - in trunk: . Src po



Author: alarson
Date: Tue Mar 25 01:20:42 2008
New Revision: 3478
URL: http://svn.gnome.org/viewvc/dasher?rev=3478&view=rev

Log:
Localize --help output (#454530).


Modified:
   trunk/ChangeLog
   trunk/Src/main.cc
   trunk/po/ChangeLog
   trunk/po/POTFILES.in

Modified: trunk/Src/main.cc
==============================================================================
--- trunk/Src/main.cc	(original)
+++ trunk/Src/main.cc	Tue Mar 25 01:20:42 2008
@@ -1,3 +1,8 @@
+#include "config.h"
+#ifdef GNOME_LIBS
+#include <glib/gi18n.h>
+#endif
+
 #include "Common/Common.h"
 
 #include <gdk/gdk.h>
@@ -179,16 +184,21 @@
     //   {"preferences", 'p', 0, G_OPTION_ARG_NONE, &preferences, "Show preferences window only", NULL},
     //   {"textentry", 'o', 0, G_OPTION_ARG_NONE, &textentry, "Onscreen text entry mode", NULL},
     //   {"pipe", 's', 0, G_OPTION_ARG_NONE, &stdoutpipe, "Pipe text to stdout", NULL},
-    {"appstyle", 'a', 0, G_OPTION_ARG_STRING, &(sCommandLine.szAppStyle), "Application style (traditional, direct, compose or fullscreen)", "traditional"},
-    {"options", 'o', 0, G_OPTION_ARG_STRING, &(sCommandLine.szOptions), "Override stored options", NULL},
-    {"help-options", 0, 0, G_OPTION_ARG_NONE, &do_option_help, "Describe \"--options\".", NULL},
+    // Note to translators: This is the help string for "--appstyle"
+    {"appstyle", 'a', 0, G_OPTION_ARG_STRING, &(sCommandLine.szAppStyle), N_("Application style (traditional, direct, compose or fullscreen)"), "traditional"},
+    // Note to translators: This is the help string for "--options"
+    {"options", 'o', 0, G_OPTION_ARG_STRING, &(sCommandLine.szOptions), N_("Override stored options"), NULL},
+    // Note to translators: This is the help string for "--help-options"
+    {"help-options", 0, 0, G_OPTION_ARG_NONE, &do_option_help, N_("Describe \"--options\"."), NULL},
     {NULL}
   };
 
   //parse command line options
   GOptionContext *goptcontext;
-  goptcontext = g_option_context_new(("- A text input application honouring accessibility"));
-  g_option_context_add_main_entries(goptcontext, options, "Dasher");
+  // Note to translators: This is the "--help" description of dasher.
+  goptcontext = g_option_context_new(_("- A text input application honouring accessibility"));
+  g_option_context_add_main_entries(goptcontext, options, GETTEXT_PACKAGE);
+  g_option_context_add_group(goptcontext, gtk_get_option_group (TRUE));
   g_option_context_parse(goptcontext, &argc, &argv, NULL);
 
   // TODO: Check what happens here when goption has done its stuff

Modified: trunk/po/POTFILES.in
==============================================================================
--- trunk/po/POTFILES.in	(original)
+++ trunk/po/POTFILES.in	Tue Mar 25 01:20:42 2008
@@ -1,5 +1,7 @@
 # Add files with translateable strings here.
 # Please keep this file sorted alphabetically.
+# Run this command at top level to check for missing files:
+# find * -iname '*.cc' -o -iname '*.h' -o -iname '*.cpp' | xargs egrep -l '[^a-z0-9A-MO-Z_]_\(' | sort
 Data/dasher.desktop.in.in
 Data/glade/dasher.compose.glade
 Data/glade/dasher.direct.glade
@@ -11,21 +13,23 @@
 Src/DasherCore/ClickFilter.cpp
 Src/DasherCore/ClickFilter.h
 Src/DasherCore/DasherButtons.cpp
-Src/DasherCore/DasherInterfaceBase.cpp
 Src/DasherCore/DasherGameMode.cpp
+Src/DasherCore/DasherInterfaceBase.cpp
 Src/DasherCore/DynamicFilter.cpp
 Src/DasherCore/EyetrackerFilter.cpp
 Src/DasherCore/OneButtonDynamicFilter.cpp
 Src/DasherCore/OneDimensionalFilter.cpp
+Src/DasherCore/SettingsStore.cpp
 Src/DasherCore/SocketInput.cpp
 Src/DasherCore/SocketInputBase.cpp
 Src/DasherCore/TwoButtonDynamicFilter.cpp
+Src/Gtk2/DasherAppSettings.cpp
 Src/Gtk2/Preferences.cpp
-Src/Gtk2/dasher_editor_internal.cpp
 Src/Gtk2/dasher_action_keyboard.cpp
 Src/Gtk2/dasher_action_keyboard_maemo.cpp
 Src/Gtk2/dasher_action_script.cpp
 Src/Gtk2/dasher_action_speech.cpp
+Src/Gtk2/dasher_editor_internal.cpp
 Src/Gtk2/dasher_main.cpp
 Src/Gtk2/module_settings_window.cpp
 Src/Gtk2/mouse_input.h



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]