[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] add internationalization support to spd-say
From: |
Andrei Kholodnyi |
Subject: |
[PATCH 1/2] add internationalization support to spd-say |
Date: |
Mon, 1 Nov 2010 16:36:26 +0100 |
From: Rui Batista <address@hidden>
To: address@hidden
since spd-say client is a part of the speechd package we use libcommon
to provide an internationalization support for it.
Also initialize internationalization support for the say.c in the main function.
---
src/clients/say/Makefile.am | 4 ++--
src/clients/say/say.c | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/clients/say/Makefile.am b/src/clients/say/Makefile.am
index d8636ad..3fbd8da 100644
--- a/src/clients/say/Makefile.am
+++ b/src/clients/say/Makefile.am
@@ -4,6 +4,6 @@ inc_local = -I$(top_srcdir)/include -I$(top_srcdir)/src/api/c
c_api = $(top_builddir)/src/api/c
bin_PROGRAMS = spd-say
-spd_say_CPPFLAGS = $(inc_local) -DLOCALEDIR=\"$(localedir)\"
+spd_say_CPPFLAGS = $(inc_local) $(GLIB_CFLAGS)
spd_say_SOURCES = say.c options.c options.h
-spd_say_LDADD = $(c_api)/libspeechd.la -lpthread $(EXTRA_SOCKET_LIBS)
+spd_say_LDADD = $(c_api)/libspeechd.la -lpthread $(EXTRA_SOCKET_LIBS)
$(top_builddir)/src/common/libcommon.la
diff --git a/src/clients/say/say.c b/src/clients/say/say.c
index f199c78..72da30f 100644
--- a/src/clients/say/say.c
+++ b/src/clients/say/say.c
@@ -44,7 +44,7 @@
#include <libspeechd.h>
#include "options.h"
-
+#include <i18n.h>
#define MAX_LINELEN 16384
@@ -66,6 +66,9 @@ int main(int argc, char **argv) {
int option_ret;
char *line;
+ /* initialize i18n support */
+ i18n_init();
+
rate = -101;
pitch = -101;
volume = -101;
--
1.6.0.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 1/2] add internationalization support to spd-say,
Andrei Kholodnyi <=