speechd-discuss
[Top][All Lists]
Advanced

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

[PATCH 2/2] mark say.c messages for translation


From: Andrei Kholodnyi
Subject: [PATCH 2/2] mark say.c messages for translation
Date: Mon, 1 Nov 2010 16:36:59 +0100

From: Rui Batista <address@hidden>
To: address@hidden

The help messages were split for ease of translation; the options
themselves should not be marked.
---
 po/POTFILES.in            |    1 +
 src/clients/say/options.c |  102 +++++++++++++++++++++++++++------------------
 2 files changed, 62 insertions(+), 41 deletions(-)

diff --git a/po/POTFILES.in b/po/POTFILES.in
index 685d475..5444826 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1 +1,2 @@
 src/server/options.c
+src/clients/say/options.c
diff --git a/src/clients/say/options.c b/src/clients/say/options.c
index 4159dc6..e0d03f5 100644
--- a/src/clients/say/options.c
+++ b/src/clients/say/options.c
@@ -36,6 +36,7 @@
 #include <string.h>
 #include <assert.h>
 #include "options.h"
+#include <i18n.h>
 
 void
 options_print_help(char *argv[])
@@ -43,64 +44,83 @@ options_print_help(char *argv[])
     assert(argv);
     assert(argv[0]);
 
-    printf("Usage: %s [options] \"some text\"\n", argv[0]);
-    printf("Speech Dispatcher Say -- a simple client for speech synthesis (GNU 
GPL)\n\n");
-    printf(
-          "-r, --rate             -     Set the rate of the speech\n"
-           "                               (between -100 and +100, default: 
0)\n"
-          "-p, --pitch            -     Set the pitch of the speech\n"
-          "                               (between -100 and +100, default: 
0)\n"
-          "-i, --volume           -     Set the volume (intensity) of the 
speech\n"
-           "                               (between -100 and +100, default: 0) 
\n"
-          "-o, --output-module    -     Set the output module\n"
-           "-O, --list-output-modules    Get the list of output modules\n"
-          "-l, --language         -     Set the language (iso code)\n"
-          "-t, --voice-type       -     Set the prefered voice type\n"
+    printf(_("Usage: %s [options] \"some text\"\n"), argv[0]);
+    printf(_("Speech Dispatcher Say -- a simple client for speech synthesis 
(GNU GPL)\n\n"));
+    printf("-r, --rate\t\t\t");
+    printf(_("Set the rate of the speech\n"
+           "\t\t\t\t(between -100 and +100, default: 0)\n"));
+    printf("-p, --pitch\t\t\t");
+    printf(_("Set the pitch of the speech\n"
+          "\t\t\t\t(between -100 and +100, default: 0)\n"));
+    printf("-i, --volume\t\t\t");
+    printf(_("Set the volume (intensity) of the speech\n"
+           "\t\t\t\t(between -100 and +100, default: 0) \n"));
+    printf("-o, --output-module\t\t");
+    printf(_("Set the output module\n"));
+    printf("-O, --list-output-modules\t");
+    printf(_("Get the list of output modules\n"));
+    printf("-l, --language\t\t\t");
+    printf(_("Set the language (iso code)\n"));
+    printf("-t, --voice-type\t\t");
+    printf(_("Set the prefered voice type\n"
            "                               (male1, male2, male3, female1, 
female2\n"
-          "                                female3, child_male, 
child_female)\n"
-           "-L, --list-synthesis-voices  Get the list of synthesis voices\n"
-           "-y, --synthesis-voice  -     Set the synthesis voice\n"
-          "-m, --punctuation-mode -     Set the punctuation mode (none, some, 
all) \n"
-          "-s, --spelling         -     Spell the message\n"
-           "-x, --ssml             -     Set SSML mode on (default: off)\n"
-           "\n"
-           "-e, --pipe-mode        -     Pipe from stdin to stdout plus Speech 
Dispatcher\n"
-           "-P, --priority         -     Set priority of the message 
(important, message,\n"
-           "                                text, notification, progress; 
default: text)\n"
-           "-N, --application-name -     Set the application name used to 
estabilish\n"
+           "\t\t\t\tfemale3, child_male, child_female)\n"));
+    printf("-L, --list-synthesis-voices\t");
+    printf(_("Get the list of synthesis voices\n"));
+    printf("-y, --synthesis-voice\t\t");
+    printf(_("Set the synthesis voice\n"));
+    printf("-m, --punctuation-mode\t\t");
+    printf(_("Set the punctuation mode (none, some, all) \n"));
+    printf("-s, --spelling\t\t\t");
+    printf(_("Spell the message\n"));
+    printf("-x, --ssml\t\t\t");
+    printf(_("Set SSML mode on (default: off)\n"));
+    printf("\n");
+    printf("-e, --pipe-mode\t\t\t");
+    printf(_("Pipe from stdin to stdout plus Speech Dispatcher\n"));
+    printf("-P, --priority\t\t\t");
+    printf(_("Set priority of the message (important, message,\n"
+           "                                text, notification, progress; 
default: text)\n"));
+    printf("-N, --application-name\t\t");
+    printf(_("Set the application name used to estabilish\n"
            "                                the connection to specified string 
value\n"
-           "                                (default: spd-say)\n"
-           "-n, --connection-name  -     Set the connection name used to 
estabilish\n"
+           "                                (default: spd-say)\n"));
+    printf("-n, --connection-name\t\t");
+    printf(_("Set the connection name used to estabilish\n"
            "                                the connection to specified string 
value\n"
-          "                                (default: main)\n"
-           "\n"
-          "-w, --wait             -     Wait till the message is spoken or 
discarded\n"
-           "-S, --stop             -     Stop speaking the message being 
spoken\n"
-           "                                in Speech Dispatcher\n"
-           "-C, --cancel           -     Cancel all messages in Speech 
Dispatcher\n"
-           "\n"
-          "-v, --version          -     Print version and copyright info\n"
-          "-h, --help             -     Print this info\n"
-           "\n"
-          "Copyright (C) 2003 Brailcom, o.p.s.\n"
+           "                                (default: main)\n"));
+    printf("\n");
+    printf("-w, --wait\t\t\t");
+    printf(_("Wait till the message is spoken or discarded\n"));
+    printf("-S, --stop\t\t\t");
+    printf(_("Stop speaking the message being spoken\n"
+           "\t\t\t\tin Speech Dispatcher\n"));
+    printf("-C, --cancel\t\t\t");
+    printf(_("Cancel all messages in Speech Dispatcher\n"));
+    printf("\n");
+    printf("-v, --version\t\t\t");
+    printf(_("Print version and copyright info\n"));
+    printf("-h, --help\t\t\t");
+    printf(_("Print this info\n"));
+    printf("\n");
+    printf(_("Copyright (C) 2003 Brailcom, o.p.s.\n"
           "This is free software; you can redistribute it and/or modify it\n"
           "under the terms of the GNU General Public License as published by\n"
           "the Free Software Foundation; either version 2, or (at your 
option)\n"
           "any later version. Please see COPYING for more details.\n\n"
-          "Please report bugs to <speechd at bugs.freebsoft.org>\n\n"
+           "Please report bugs to <speechd at bugs.freebsoft.org>\n\n")
           );
-    
 }
 
 void
 options_print_version()
 {
     printf("spd-say: "PACKAGE" "VERSION"\n");
-    printf("Copyright (C) 2002-2006 Brailcom, o.p.s.\n"
+    printf(_("Copyright (C) 2002-2006 Brailcom, o.p.s.\n"
            "spd-say comes with ABSOLUTELY NO WARRANTY.\n"
            "You may redistribute copies of spd-say\n"
            "under the terms of the GNU General Public License.\n"
-           "For more information about these matters, see the file named 
COPYING.\n"
+           "For more information about these matters, see the file named 
COPYING.\n")
            );
 }
 
-- 
1.6.0.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]