From c9cee89d7e7b48232da91d7d9b84eeb1542d2d1b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 25 Feb 2011 13:14:17 +0900 Subject: [PATCH] Fix translation. --- po/ja.po | 38 +++++++++++++++++++++++++++----------- src/client-main.c | 10 +++++----- src/server-context.c | 7 ++++--- 3 files changed, 36 insertions(+), 19 deletions(-) diff --git a/po/ja.po b/po/ja.po index b4bc69eb..d671bdfd 100644 --- a/po/ja.po +++ b/po/ja.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: eekboard 0.90.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-24 17:36+0900\n" -"PO-Revision-Date: 2011-02-24 17:36+0900\n" +"POT-Creation-Date: 2011-02-25 13:13+0900\n" +"PO-Revision-Date: 2011-02-25 13:14+0900\n" "Last-Translator: Daiki Ueno \n" "Language-Team: Japanese\n" "Language: \n" @@ -18,39 +18,55 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../src/client-main.c:36 +#: ../src/server-context.c:216 +msgid "Keyboard" +msgstr "キーボード" + +#: ../src/client-main.c:41 ../src/desktop-client-main.c:41 +msgid "Connect to the system bus" +msgstr "システムバスに接続" + +#: ../src/client-main.c:43 ../src/desktop-client-main.c:43 +msgid "Connect to the session bus" +msgstr "セッションバスに接続" + +#: ../src/client-main.c:45 ../src/desktop-client-main.c:45 +msgid "Connect to the given D-Bus address" +msgstr "与えられた D-Bus アドレスに接続" + +#: ../src/client-main.c:47 msgid "Upload keyboard description from an XML file" msgstr "XML ファイルから読み込んだキーボード記述をアップロード" -#: ../src/client-main.c:38 +#: ../src/client-main.c:49 msgid "Set group of the keyboard" msgstr "キーボードのグループを設定" -#: ../src/client-main.c:40 +#: ../src/client-main.c:51 msgid "Show keyboard" msgstr "キーボードを表示" -#: ../src/client-main.c:42 +#: ../src/client-main.c:53 msgid "Hide keyboard" msgstr "キーボードを隠す" -#: ../src/client-main.c:44 +#: ../src/client-main.c:55 msgid "Press key" msgstr "キーを押す" -#: ../src/client-main.c:46 +#: ../src/client-main.c:57 msgid "Release key" msgstr "キーを離す" -#: ../src/client-main.c:48 +#: ../src/client-main.c:59 msgid "Listen events" msgstr "イベントの通知を受ける" -#: ../src/desktop-client-main.c:38 +#: ../src/desktop-client-main.c:48 msgid "Listen focus change events with AT-SPI" msgstr "AT-SPI によるフォーカス変更イベントの通知を受ける" -#: ../src/desktop-client-main.c:40 +#: ../src/desktop-client-main.c:50 msgid "Listen keystroke events with AT-SPI" msgstr "AT-SPI による打鍵イベントの通知を受ける" diff --git a/src/client-main.c b/src/client-main.c index bdf39bb5..3a4fbfe0 100644 --- a/src/client-main.c +++ b/src/client-main.c @@ -105,7 +105,7 @@ main (int argc, char **argv) error = NULL; connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error); if (connection == NULL) { - g_printerr (_("Can't connect to the bus: %s\n"), error->message); + g_printerr ("Can't connect to the bus: %s\n", error->message); exit (1); } break; @@ -117,7 +117,7 @@ main (int argc, char **argv) NULL, &error); if (connection == NULL) { - g_printerr (_("Can't connect to the bus at %s: %s\n"), + g_printerr ("Can't connect to the bus at %s: %s\n", opt_address, error->message); exit (1); @@ -130,7 +130,7 @@ main (int argc, char **argv) eekboard = eekboard_eekboard_new (connection, NULL); if (eekboard == NULL) { - g_printerr (_("Can't create eekboard proxy\n")); + g_printerr ("Can't create eekboard proxy\n"); retval = 1; goto out; } @@ -139,7 +139,7 @@ main (int argc, char **argv) "eekboard-client", NULL); if (context == NULL) { - g_printerr (_("Can't create context\n")); + g_printerr ("Can't create context\n"); retval = 1; goto out; } @@ -157,7 +157,7 @@ main (int argc, char **argv) error = NULL; input = g_file_read (file, NULL, &error); if (error) { - g_printerr (_("Can't read file %s: %s\n"), + g_printerr ("Can't read file %s: %s\n", opt_set_keyboard, error->message); retval = 1; goto out; diff --git a/src/server-context.c b/src/server-context.c index b629c7f2..c12b2952 100644 --- a/src/server-context.c +++ b/src/server-context.c @@ -15,12 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include - #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ +#include +#include + #include "eek/eek.h" #if HAVE_CLUTTER_GTK @@ -212,7 +213,7 @@ update_widget (ServerContext *context) gtk_widget_set_can_focus (context->window, FALSE); g_object_set (G_OBJECT(context->window), "accept_focus", FALSE, NULL); - gtk_window_set_title (GTK_WINDOW(context->window), "Keyboard"); + gtk_window_set_title (GTK_WINDOW(context->window), _("Keyboard")); gtk_window_set_icon_name (GTK_WINDOW(context->window), "eekboard"); gtk_window_set_keep_above (GTK_WINDOW(context->window), TRUE);