gnome-docker r3 - in trunk: . data po src



Author: hmacht
Date: Fri May  9 08:54:01 2008
New Revision: 3
URL: http://svn.gnome.org/viewvc/gnome-docker?rev=3&view=rev

Log:
add i18n support


Added:
   trunk/data/gnome-docker.desktop.in
   trunk/po/
   trunk/po/ChangeLog
   trunk/po/POTFILES.in
   trunk/po/gnome-docker.pot
Removed:
   trunk/data/gnome-docker.desktop
Modified:
   trunk/ChangeLog
   trunk/Makefile.am
   trunk/configure.in
   trunk/data/Makefile.am
   trunk/src/gnome-docker.h

Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am	(original)
+++ trunk/Makefile.am	Fri May  9 08:54:01 2008
@@ -1,5 +1,10 @@
-SUBDIRS = src data
+SUBDIRS = src data po
+
+EXTRA_DIST = intltool-extract.in intltool-merge.in intltool-update.in
 
 clean-local :
-	rm -f *~
+	rm -f *~ \
+	./intltool-extract \
+	./intltool-merge \
+	./intltool-update
 

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Fri May  9 08:54:01 2008
@@ -38,6 +38,22 @@
 AC_SUBST(LIBPANEL_REQUIRED)
 
 dnl ---------------------------------------------------------------------------
+dnl - i18n
+dnl ---------------------------------------------------------------------------
+AC_PROG_INTLTOOL([0.23])
+
+GETTEXT_PACKAGE=gnome-docker
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
+
+ALL_LINGUAS=""
+AM_GLIB_GNU_GETTEXT
+
+gnomedockerlocaledir='${prefix}/${DATADIRNAME}/locale'
+AC_SUBST(gnomedockerlocaledir)
+
+
+dnl ---------------------------------------------------------------------------
 dnl - Check library dependencies
 dnl ---------------------------------------------------------------------------
 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0)
@@ -92,6 +108,7 @@
 Makefile
 src/Makefile
 data/Makefile
+po/Makefile.in
 ])
 
 dnl ==========================================================================

Modified: trunk/data/Makefile.am
==============================================================================
--- trunk/data/Makefile.am	(original)
+++ trunk/data/Makefile.am	Fri May  9 08:54:01 2008
@@ -1,3 +1,8 @@
+desktopdir = $(datadir)/applications
+desktop_in_files = gnome-docker.desktop.in
+desktop_DATA = gnome-docker.desktop
+ INTLTOOL_DESKTOP_RULE@
+
 autostartdir = $(datadir)/gnome/autostart
 autostart_DATA = gnome-docker.desktop
 

Added: trunk/data/gnome-docker.desktop.in
==============================================================================
--- (empty file)
+++ trunk/data/gnome-docker.desktop.in	Fri May  9 08:54:01 2008
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Encoding=UTF-8
+_Name=GNOME Docker
+_Comment=GNOME dock station applet
+Icon=gnome-power-manager
+Exec=gnome-docker
+Terminal=false
+Type=Application
+Categories=GNOME;Application;
+OnlyShowIn=GNOME;XFCE;KDE;
+X-GNOME-Bugzilla-Bugzilla=GNOME
+X-GNOME-Bugzilla-Product=gnome-docker
+X-GNOME-Bugzilla-Component=gnome-docker
+X-GNOME-Bugzilla-Version=0.1
+X-GNOME-Autostart-enabled=true

Added: trunk/po/POTFILES.in
==============================================================================
--- (empty file)
+++ trunk/po/POTFILES.in	Fri May  9 08:54:01 2008
@@ -0,0 +1,3 @@
+src/gd-dbus.c
+src/gd-input.c
+src/gd-tray.c

Added: trunk/po/gnome-docker.pot
==============================================================================
--- (empty file)
+++ trunk/po/gnome-docker.pot	Fri May  9 08:54:01 2008
@@ -0,0 +1,78 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-05-09 10:52+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL ADDRESS>\n"
+"Language-Team: LANGUAGE <LL li org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../src/gd-dbus.c:155
+msgid "Docked"
+msgstr ""
+
+#: ../src/gd-dbus.c:156
+msgid "Your computer has been docked"
+msgstr ""
+
+#: ../src/gd-dbus.c:159
+msgid "Undocked"
+msgstr ""
+
+#: ../src/gd-dbus.c:160
+msgid "Your computer has been undocked"
+msgstr ""
+
+#: ../src/gd-input.c:30 ../src/gd-tray.c:79
+msgid "Undock"
+msgstr ""
+
+#: ../src/gd-input.c:30 ../src/gd-tray.c:79
+msgid "Failed to undock device"
+msgstr ""
+
+#: ../src/gd-tray.c:36
+msgid "Licensed under the GNU General Public License Version 2"
+msgstr ""
+
+#: ../src/gd-tray.c:37
+msgid ""
+"GNOME Docker is free software; you can redistribute it and/or\n"
+"modify it under the terms of the GNU General Public License\n"
+"as published by the Free Software Foundation; either version 2\n"
+"of the License, or (at your option) any later version."
+msgstr ""
+
+#: ../src/gd-tray.c:41
+msgid ""
+"GNOME Docker is distributed in the hope that it will be useful,\n"
+"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
+"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
+"GNU General Public License for more details."
+msgstr ""
+
+#: ../src/gd-tray.c:45
+msgid ""
+"You should have received a copy of the GNU General Public License\n"
+"along with this program; if not, write to the Free Software\n"
+"Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\n"
+"02110-1301, USA."
+msgstr ""
+
+#: ../src/gd-tray.c:50
+msgid "translator-credits"
+msgstr ""
+
+#. About
+#: ../src/gd-tray.c:97
+msgid "_About"
+msgstr ""

Modified: trunk/src/gnome-docker.h
==============================================================================
--- trunk/src/gnome-docker.h	(original)
+++ trunk/src/gnome-docker.h	Fri May  9 08:54:01 2008
@@ -10,15 +10,10 @@
 #ifndef GDOCKER_H
 #define GDOCKER_H
 
-/* #include <libgnome/gnome-i18n.h> */
 /* no intltool needed at this point, so use plain gettext for now */
 #include <libintl.h>
 
-#define  _(String) gettext(String)
-#define Q_(String) g_dpgettext (NULL, String, 0)
-#define N_(String) (String)
-#define C_(Context,String) g_dpgettext (NULL, Context "\004" String, strlen (Context) + 1)
-
+#include "gd-i18n.h"
 
 #define gd_info(string, args...) \
 do{\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]