[Xfce-i18n] xfce4-xfapplet-plugin 0.0.1
Daichi Kawahata
daichi at xfce.org
Sun Feb 12 11:52:15 CET 2006
Hi Adriano,
Please check this patch out.
Regards,
--
Daichi
Language Codes: http://www.w3.org/WAI/ER/IG/ert/iso639.htm
Country Codes: http://www.ics.uci.edu/pub/ietf/http/related/iso3166.txt
-------------- next part --------------
Index: configure.ac
===================================================================
--- configure.ac (revision 1049)
+++ configure.ac (working copy)
@@ -31,7 +31,7 @@
AC_HEADER_STDC
dnl Check for i18n support
-XDT_I18N([])
+XDT_I18N([ja])
dnl Check for X11 installed
XDT_CHECK_LIBX11_REQUIRE
Index: panel-plugin/chooser.c
===================================================================
--- panel-plugin/chooser.c (revision 1049)
+++ panel-plugin/chooser.c (working copy)
@@ -294,7 +294,7 @@
xfce_panel_plugin_block_menu (plugin);
- dialog = gtk_dialog_new_with_buttons ("Choose an applet",
+ dialog = gtk_dialog_new_with_buttons (_("Choose an applet"),
GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CANCEL,
@@ -307,7 +307,7 @@
g_signal_connect (dialog, "response", G_CALLBACK (xfapplet_chooser_dialog_response), xap);
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
- label = gtk_label_new ("Choose an applet:");
+ label = gtk_label_new (_("Choose an applet:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), label, FALSE, FALSE, 2);
Index: panel-plugin/xfapplet.c
===================================================================
--- panel-plugin/xfapplet.c (revision 1049)
+++ panel-plugin/xfapplet.c (working copy)
@@ -53,18 +53,19 @@
GtkWidget *dialog;
guint i;
static const XfAppletTranslators translators[] = {
+ {"Daichi Kawahata", "daichi at xfce.org", "ja",},
{"Adriano Winter Bess", "awbess at gmail.com", "pt_BR",},
};
info = xfce_about_info_new ("XfApplet", VERSION " (r" REVISION ")",
- "Display Gnome applets on the Xfce4 Panel",
+ _("Display Gnome applets on the Xfce4 Panel"),
XFCE_COPYRIGHT_TEXT ("2006", "Adriano Winter Bess"), XFCE_LICENSE_GPL);
xfce_about_info_set_homepage (info, "http://xfce-goodies.berlios.de");
- xfce_about_info_add_credit (info, "Adriano Winter Bess", "awbess at gmail.com", "Author/Maintainer");
+ xfce_about_info_add_credit (info, "Adriano Winter Bess", "awbess at gmail.com", _("Author/Maintainer"));
for (i = 0; translators[i].name != NULL; i++) {
gchar *s;
- s = g_strdup_printf ("Translator (%s)", translators[i].language);
+ s = g_strdup_printf (_("Translator (%s)"), translators[i].language);
xfce_about_info_add_credit (info, translators[i].name, translators[i].email, s);
g_free (s);
}
@@ -377,6 +378,8 @@
char *argv[] = { "xfce4-xfapplet-plugin", };
XfAppletPlugin *xap;
+ xfce_textdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
+
bonobo_ui_init (argv[0], "0.0.1", &argc, argv);
if (!(xap = xfapplet_new (plugin)))
Index: panel-plugin/XFCE_Panel_Popup.xml
===================================================================
--- panel-plugin/XFCE_Panel_Popup.xml (revision 1049)
+++ panel-plugin/XFCE_Panel_Popup.xml (working copy)
@@ -1,17 +0,0 @@
-<Root>
- <popups>
- <popup name="button3">
- <placeholder delimit="top">
- <menuitem name="xfapplet" label="XfApplet" sensitive="0"/>
- <separator/>
- <menuitem name="about" verb="About" _label="About" pixtype="stock" pixname="gtk-about"/>
- <menuitem name="move" verb="Move" _label="Move" pixtype="stock" pixname="gtk-go-forward"/>
- <separator/>
- <menuitem name="remove" verb="Remove" _label="Remove" pixtype="stock" pixname="gtk-remove"/>
- <separator/>
- <menuitem name="add" verb="Add" _label="Add New Item" pixtype="stock" pixname="gtk-add"/>
- <menuitem name="configure" verb="CustomizePanel" _label="Customize Panel" pixtype="stock" pixname="gtk-preferences"/>
- </placeholder>
- </popup>
- </popups>
-</Root>
Index: panel-plugin/Makefile.am
===================================================================
--- panel-plugin/Makefile.am (revision 1049)
+++ panel-plugin/Makefile.am (working copy)
@@ -12,7 +12,7 @@
@LIBXFCE4UTIL_CFLAGS@ \
@LIBXFCEGUI4_CFLAGS@ \
-DPKGDATADIR=\"$(pkgdatadir)\" \
- -DLOCALEDIR=\"$(localedir)\"
+ -DPACKAGE_LOCALE_DIR=\"$(localedir)\"
xfce4_xfapplet_plugin_LDFLAGS = \
@LIBBONOBOUI_LIBS@ \
@@ -21,10 +21,13 @@
@LIBXFCEGUI4_LIBS@
uidir = $(pkgdatadir)/ui
-ui_DATA = \
- XFCE_Panel_Popup.xml
-EXTRA_DIST = $(ui_DATA)
+ui_in_files = \
+ XFCE_Panel_Popup.xml.in
+ui_DATA = $(xml_in_files:.xml.in=.xml)
+ at INTLTOOL_XML_RULE@
+EXTRA_DIST = $(ui_in_files) $(ui_DATA)
+
# .desktop file
#
# Some automake trickery here. Because we cannot use $(libexecdir) in the
Index: panel-plugin/XFCE_Panel_Popup.xml.in
===================================================================
--- panel-plugin/XFCE_Panel_Popup.xml.in (revision 0)
+++ panel-plugin/XFCE_Panel_Popup.xml.in (revision 0)
@@ -0,0 +1,17 @@
+<Root>
+ <popups>
+ <popup name="button3">
+ <placeholder delimit="top">
+ <menuitem name="xfapplet" label="XfApplet" sensitive="0"/>
+ <separator/>
+ <menuitem name="about" verb="About" _label="About" pixtype="stock" pixname="gtk-about"/>
+ <menuitem name="move" verb="Move" _label="Move" pixtype="stock" pixname="gtk-go-forward"/>
+ <separator/>
+ <menuitem name="remove" verb="Remove" _label="Remove" pixtype="stock" pixname="gtk-remove"/>
+ <separator/>
+ <menuitem name="add" verb="Add" _label="Add New Item" pixtype="stock" pixname="gtk-add"/>
+ <menuitem name="configure" verb="CustomizePanel" _label="Customize Panel" pixtype="stock" pixname="gtk-preferences"/>
+ </placeholder>
+ </popup>
+ </popups>
+</Root>
Index: po/ChangeLog
===================================================================
--- po/ChangeLog (revision 1049)
+++ po/ChangeLog (working copy)
@@ -0,0 +1,8 @@
+2006-02-12 Daichi Kawahata <daichi at xfce.org>
+
+ * ja.po: Added Japanese translations.
+
+2006-01-28 Adriano Winter Bess <awbess at gmail.com>
+
+ * ChangeLog, POTFILES.in: Imported project into repository.
+
Index: po/ja.po
===================================================================
--- po/ja.po (revision 0)
+++ po/ja.po (revision 0)
@@ -0,0 +1,71 @@
+# Japanese translations for xfce4-xfapplet-plugin package.
+# Copyright (C) 2006 Adriano Winter Bess.
+# This file is distributed under the same license as the
+# xfce4-xfapplet-plugin package.
+# Daichi Kawahata <daichi at xfce.org>, 2006.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: xfce4-xfapplet-plugin 0.0.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2006-02-12 19:37+0900\n"
+"PO-Revision-Date: 2006-02-12 19:38+0900\n"
+"Last-Translator: Daichi Kawahata <daichi at xfce.org>\n"
+"Language-Team: Japanese <xfce-users-jp at ml.fdiary.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../panel-plugin/XFCE_Panel_Popup.xml.in.h:1
+msgid "About"
+msgstr "???????????"
+
+#: ../panel-plugin/XFCE_Panel_Popup.xml.in.h:2
+msgid "Add New Item"
+msgstr "???????"
+
+#: ../panel-plugin/XFCE_Panel_Popup.xml.in.h:3
+msgid "Customize Panel"
+msgstr "??????"
+
+#: ../panel-plugin/XFCE_Panel_Popup.xml.in.h:4
+msgid "Move"
+msgstr "??"
+
+#: ../panel-plugin/XFCE_Panel_Popup.xml.in.h:5
+msgid "Remove"
+msgstr "??"
+
+#: ../panel-plugin/chooser.c:130
+#, c-format
+msgid "query returned exception %s\n"
+msgstr "???????? %s ??????\n"
+
+#: ../panel-plugin/chooser.c:297
+msgid "Choose an applet"
+msgstr "?????????????"
+
+#: ../panel-plugin/chooser.c:310
+msgid "Choose an applet:"
+msgstr "?????????????:"
+
+#: ../panel-plugin/xfapplet.c:61
+msgid "Display Gnome applets on the Xfce4 Panel"
+msgstr "Xfce4 ????? GNOME ???????????"
+
+#: ../panel-plugin/xfapplet.c:64
+msgid "Author/Maintainer"
+msgstr "???/??????"
+
+#: ../panel-plugin/xfapplet.c:68
+#, c-format
+msgid "Translator (%s)"
+msgstr "??? (%s)"
+
+#: ../panel-plugin/xfapplet.desktop.in.in.h:1
+msgid "Display Gnome applets"
+msgstr "GNOME ?????????????"
+
+#: ../panel-plugin/xfapplet.desktop.in.in.h:2
+msgid "XfApplet"
+msgstr "Xfce ?????"
Index: po/POTFILES.in
===================================================================
--- po/POTFILES.in (revision 1049)
+++ po/POTFILES.in (working copy)
@@ -1,2 +1,8 @@
+# List of source files containing translatable strings.
+
+panel-plugin/XFCE_Panel_Popup.xml.in
+panel-plugin/chooser.c
panel-plugin/xfapplet.c
+# files added by intltool-prepare.
+panel-plugin/xfapplet.desktop.in.in
More information about the Xfce-i18n
mailing list