summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-01-29 01:57:33 +0100
committerJavier <dev.git@javispedro.com>2015-01-29 01:57:33 +0100
commitf56b5b34e2a14327021168ff3ad6ce49cdd27bed (patch)
treedd66dfb6c35b51a2c950f903c2bd89077975b652
parent8a1bbb620a5fa5c9197f1de7bf6b258b54e5136f (diff)
downloadmdock-f56b5b34e2a14327021168ff3ad6ce49cdd27bed.tar.gz
mdock-f56b5b34e2a14327021168ff3ad6ce49cdd27bed.zip
adding es translation
-rw-r--r--mate-applet/mdock-mate-panel-applet.c2
-rw-r--r--po/LINGUAS1
-rw-r--r--po/es.po27
-rw-r--r--test/Makefile.am6
-rw-r--r--test/mdock-standalone.c6
5 files changed, 27 insertions, 15 deletions
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 <glib/gi18n.h>
+#include <glib/gi18n-lib.h>
#include <mate-panel-applet-gsettings.h>
#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 <EMAIL@ADDRESS>, 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 <javier@javispedro.com>, 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 <javier@javispedro.com>\n"
-"Language-Team: Javier <javier@javispedro.com>\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 <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();