From f56b5b34e2a14327021168ff3ad6ce49cdd27bed Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 29 Jan 2015 01:57:33 +0100 Subject: adding es translation --- mate-applet/mdock-mate-panel-applet.c | 2 +- po/LINGUAS | 1 + po/es.po | 27 ++++++++++++++------------- test/Makefile.am | 6 +++++- test/mdock-standalone.c | 6 ++++++ 5 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 po/LINGUAS diff --git a/mate-applet/mdock-mate-panel-applet.c b/mate-applet/mdock-mate-panel-applet.c index 7b304b2..404c7f7 100644 --- a/mate-applet/mdock-mate-panel-applet.c +++ b/mate-applet/mdock-mate-panel-applet.c @@ -19,7 +19,7 @@ #include "../config.h" -#include +#include #include #include "mdock-mate-panel-applet.h" diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 0000000..8357fca --- /dev/null +++ b/po/LINGUAS @@ -0,0 +1 @@ +es diff --git a/po/es.po b/po/es.po index 9f6b3fe..05505a0 100644 --- a/po/es.po +++ b/po/es.po @@ -1,21 +1,22 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR Free Software Foundation, Inc. -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. +# Spanish translations for mdock package +# Traducciones al espaƱol para el paquete mdock. +# Copyright (C) 2015 Javier S. Pedro +# This file is distributed under the same license as the mdock package. +# Javier , 2015. # msgid "" msgstr "" -"Project-Id-Version: libtopmenu-gtk 1.0\n" -"Report-Msgid-Bugs-To: javier@javispedro.com\n" -"POT-Creation-Date: 2015-01-29 01:14+0100\n" -"PO-Revision-Date: 2015-01-29 01:18+0100\n" +"Project-Id-Version: mdock 1.0\n" +"Report-Msgid-Bugs-To: dev.git@javispedro.com\n" +"POT-Creation-Date: 2015-01-29 01:43+0100\n" +"PO-Revision-Date: 2015-01-29 01:45+0100\n" "Last-Translator: Javier \n" -"Language-Team: Javier \n" +"Language-Team: Spanish\n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.5.5\n" -"Language: es_ES\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #: libmdock/mdock-item-menu.c:224 msgid "Un_pin" @@ -29,10 +30,10 @@ msgstr "_Anclar" msgid "_New instance" msgstr "_Nueva instancia" -#: mate-applet/mdock-mate-panel-applet.c:47 +#: mate-applet/mdock-mate-panel-applet.c:48 msgid "_Preferences" msgstr "_Preferencias" -#: mate-applet/mdock-mate-panel-applet.c:50 +#: mate-applet/mdock-mate-panel-applet.c:51 msgid "_About" msgstr "_Acerca de" 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 . */ +#include "../config.h" #include +#include #include #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(); -- cgit v1.2.3