diff options
author | Javier <dev.git@javispedro.com> | 2015-01-29 01:57:33 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-01-29 01:57:33 +0100 |
commit | f56b5b34e2a14327021168ff3ad6ce49cdd27bed (patch) | |
tree | dd66dfb6c35b51a2c950f903c2bd89077975b652 /test | |
parent | 8a1bbb620a5fa5c9197f1de7bf6b258b54e5136f (diff) | |
download | mdock-f56b5b34e2a14327021168ff3ad6ce49cdd27bed.tar.gz mdock-f56b5b34e2a14327021168ff3ad6ce49cdd27bed.zip |
adding es translation
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.am | 6 | ||||
-rw-r--r-- | test/mdock-standalone.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 65d5220..e28094c 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,5 +1,9 @@ +datadir = @datadir@ +datarootdir = @datarootdir@ +localedir = @localedir@ + noinst_PROGRAMS = mdock-standalone mdock_standalone_SOURCES = mdock-standalone.c -mdock_standalone_CPPFLAGS = $(GTK_CFLAGS) +mdock_standalone_CPPFLAGS = $(GTK_CFLAGS) -DG_LOG_DOMAIN=\"mdock-standalone\" -DLOCALEDIR=\"$(localedir)\" mdock_standalone_LDADD = $(GTK_LIBS) ../libmdock/libmdock.la diff --git a/test/mdock-standalone.c b/test/mdock-standalone.c index 21ac609..38a1ebd 100644 --- a/test/mdock-standalone.c +++ b/test/mdock-standalone.c @@ -17,7 +17,9 @@ * along with MDock. If not, see <http://www.gnu.org/licenses/>. */ +#include "../config.h" #include <stdlib.h> +#include <glib/gi18n.h> #include <gtk/gtk.h> #include "../libmdock/mdock-widget.h" @@ -35,6 +37,10 @@ static void construct_main_window() int main(int argc, char **argv) { + setlocale(LC_ALL, ""); + bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); + textdomain(GETTEXT_PACKAGE); + gtk_init(&argc, &argv); construct_main_window(); |