Simplify intltool support.

This commit is contained in:
Daiki Ueno
2010-06-18 18:51:26 +09:00
parent d00eadf3b3
commit 542e9037ed
2 changed files with 13 additions and 15 deletions

View File

@ -1,15 +1,15 @@
# SOME DESCRIPTIVE TITLE. # Japanese translations for eekboard package
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # eekboard パッケージに対する英訳.
# This file is distributed under the same license as the PACKAGE package. # Copyright (C) 2010 Daiki Ueno <ueno@unixuser.org>
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # This file is distributed under the same license as the eekboard package.
# Daiki Ueno <ueno@unixuser.org>, 2010.
# #
#, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: eekboard 0.0.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-06-18 18:10+0900\n" "POT-Creation-Date: 2010-06-18 18:10+0900\n"
"PO-Revision-Date: 2010-06-18 18:20+0900\n" "PO-Revision-Date: 2010-06-18 18:46+0900\n"
"Last-Translator: Daiki Ueno <ueno@unixuser.org>\n" "Last-Translator: Daiki Ueno <ueno@unixuser.org>\n"
"Language-Team: Japanese\n" "Language-Team: Japanese\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"

View File

@ -24,11 +24,11 @@
#include <clutter-gtk/clutter-gtk.h> #include <clutter-gtk/clutter-gtk.h>
#endif #endif
#include <fakekey/fakekey.h>
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include <gdk/gdkx.h> #include <gdk/gdkx.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <libxklavier/xklavier.h> #include <libxklavier/xklavier.h>
#include <fakekey/fakekey.h>
#if 0 #if 0
#include <atk/atk.h> #include <atk/atk.h>
#endif #endif
@ -519,6 +519,11 @@ main (int argc, char *argv[])
GtkWidget *widget, *vbox, *menubar, *window; GtkWidget *widget, *vbox, *menubar, *window;
GtkUIManager *ui_manager; GtkUIManager *ui_manager;
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, EEKBOARD_LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif
env = g_getenv ("EEKBOARD_DISABLE_CLUTTER"); env = g_getenv ("EEKBOARD_DISABLE_CLUTTER");
if (env && g_strcmp0 (env, "1") == 0) if (env && g_strcmp0 (env, "1") == 0)
use_clutter = FALSE; use_clutter = FALSE;
@ -536,13 +541,6 @@ main (int argc, char *argv[])
exit (1); exit (1);
} }
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, EEKBOARD_LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
gtk_set_locale ();
#endif
window = gtk_window_new (GTK_WINDOW_TOPLEVEL); window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_set_can_focus (window, FALSE); gtk_widget_set_can_focus (window, FALSE);
g_object_set (G_OBJECT(window), "accept_focus", FALSE, NULL); g_object_set (G_OBJECT(window), "accept_focus", FALSE, NULL);