[PATCH 1/1] replace some hardcoded values in printfs of options.c
Andrei Kholodnyi
andrei.kholodnyi at gmail.com
Sat Dec 18 20:17:20 CET 2010
replace log level hardcoded values
replace rate, volume, pitch hardcoded values
replace inet_socket and unix_socket
---
po/hu.po | 33 +++++++++++++--------------------
src/clients/say/options.c | 6 +++---
src/server/options.c | 8 ++++----
3 files changed, 20 insertions(+), 27 deletions(-)
diff --git a/po/hu.po b/po/hu.po
index db8ba43..6690c19 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -43,14 +43,12 @@ msgstr "Futtatás önálló alkalmazásként\n"
#: ../src/server/options.c:72
#, c-format
msgid "Start only if autospawn is not disabled\n"
-msgstr ""
-"IndÃtás csak akkor, ha az autospawn beállÃtás nincs \n"
-" letiltva\n"
+msgstr "IndÃtás csak akkor, ha az autospawn beállÃtás nincs letiltva\n"
#: ../src/server/options.c:74
#, c-format
-msgid "Set log level (1..5)\n"
-msgstr "A naplózás szintjének beállÃtása (1..5)\n"
+msgid "Set log level (%d...%d)\n"
+msgstr "A naplózás szintjének beállÃtása (%d...%d)\n"
#: ../src/server/options.c:76
#, c-format
@@ -59,21 +57,21 @@ msgstr "A naplófájlok elérési útjának megadása\n"
#: ../src/server/options.c:78
#, c-format
-msgid "Communication method to use %s\n"
-msgstr "A kommunikációs mód megadása %s\n"
+msgid "Communication method to use ('%s' or '%s')\n"
+msgstr "A kommunikációs mód megadása ('%s' vagy '%s')\n"
#: ../src/server/options.c:80
#, c-format
msgid ""
-"Socket path to use for 'unix_socket' method (filesystem path or 'default')\n"
+"Socket path to use for '%s' method (filesystem path or '%s')\n"
msgstr ""
-"Használt socket elérési út az unix socket módhoz \n"
-"(fájlrendszer elérési útja, vagy az alapbeállÃtás használata)\n"
+"Használt socket elérési út az '%s' módhoz \n"
+"(fájlrendszer elérési útja, vagy '%s')\n"
#: ../src/server/options.c:82
#, c-format
-msgid "Specify a port number for 'inet_socket' method\n"
-msgstr "Egy portszám megadása az inet socket módhoz\n"
+msgid "Specify a port number for '%s' method\n"
+msgstr "Egy portszám megadása az '%s' módhoz\n"
#: ../src/server/options.c:84
#, c-format
@@ -164,10 +162,10 @@ msgstr ""
msgid "Set the rate of the speech\n"
msgstr "A beszédsebesség beállÃtása\n"
-#: ../src/clients/say/options.c:51 ../src/clients/say/options.c:56
+#: ../src/clients/say/options.c:51 ../src/clients/say/options.c:56 ../src/clients/say/options.c:61
#, c-format
-msgid "(between -100 and +100, default: 0)\n"
-msgstr "(-100 és +100 között, az alapértelmezett érték 0)\n"
+msgid "(between %+d and %+d, default: %d)\n"
+msgstr "(%+d és %+d között, az alapértelmezett érték %d)\n"
#: ../src/clients/say/options.c:54
#, c-format
@@ -179,11 +177,6 @@ msgstr "A hangmagasság beállÃtása\n"
msgid "Set the volume (intensity) of the speech\n"
msgstr "A hangerÅ beállÃtása\n"
-#: ../src/clients/say/options.c:61
-#, c-format
-msgid "(between -100 and +100, default: 0) \n"
-msgstr "(-100 és +100 között, az alapértelmezett érték 0)\n"
-
#: ../src/clients/say/options.c:64
#, c-format
msgid "Set the output module\n"
diff --git a/src/clients/say/options.c b/src/clients/say/options.c
index 8d6fef3..a22a33c 100644
--- a/src/clients/say/options.c
+++ b/src/clients/say/options.c
@@ -48,17 +48,17 @@ options_print_help(char *argv[])
printf("-r, --rate\t\t\t");
printf(_("Set the rate of the speech\n"));
printf("\t\t\t\t");
- printf(_("(between -100 and +100, default: 0)\n"));
+ printf(_("(between %+d and %+d, default: %d)\n"), -100, 100, 0);
printf("-p, --pitch\t\t\t");
printf(_("Set the pitch of the speech\n"));
printf("\t\t\t\t");
- printf(_("(between -100 and +100, default: 0)\n"));
+ printf(_("(between %+d and %+d, default: %d)\n"), -100, 100, 0);
printf("-i, --volume\t\t\t");
printf(_("Set the volume (intensity) of the speech\n"));
printf("\t\t\t\t");
- printf(_("(between -100 and +100, default: 0) \n"));
+ printf(_("(between %+d and %+d, default: %d)\n"), -100, 100, 0);
printf("-o, --output-module\t\t");
printf(_("Set the output module\n"));
diff --git a/src/server/options.c b/src/server/options.c
index d90721b..3770cc7 100644
--- a/src/server/options.c
+++ b/src/server/options.c
@@ -71,15 +71,15 @@ options_print_help(char *argv[])
printf("-a, --spawn\t\t");
printf(_("Start only if autospawn is not disabled\n"));
printf("-l, --log-level\t\t");
- printf(_("Set log level (1..5)\n"));
+ printf(_("Set log level (%d...%d)\n"), 1, 5);
printf("-L, --log-dir\t\t");
printf(_("Set path to logging\n"));
printf("-c, --communication-method\t");
- printf(_("Communication method to use %s\n"), "(unix_socket or inet_socket)");
+ printf(_("Communication method to use ('%s' or '%s')\n"), "unix_socket", "inet_socket");
printf("-S, --socket-path\t");
- printf(_("Socket path to use for 'unix_socket' method (filesystem path or 'default')\n"));
+ printf(_("Socket path to use for '%s' method (filesystem path or '%s')\n"), "unix_socket", "default");
printf("-p, --port\t\t");
- printf(_("Specify a port number for 'inet_socket' method\n"));
+ printf(_("Specify a port number for '%s' method\n"), "inet_socket");
printf("-P, --pid-file\t\t");
printf(_("Set path to pid file\n"));
printf(_("-C, --config-dir\t"));
--
1.7.0.4
More information about the Speechd
mailing list