[uim-commit] r585 - in trunk: helper po
makeinu at freedesktop.org
makeinu at freedesktop.org
Sun Feb 6 19:47:48 PST 2005
Author: makeinu
Date: 2005-02-06 19:47:46 -0800 (Sun, 06 Feb 2005)
New Revision: 585
Modified:
trunk/helper/pref-gtk.c
trunk/po/ja.po
Log:
* helper/pref-gtk.c:
- (check_dot_uim_file):
New function to check ~/.uim and show warning dialog.
- (main): Check ~/.uim.
* po/ja.po: Updated.
Modified: trunk/helper/pref-gtk.c
===================================================================
--- trunk/helper/pref-gtk.c 2005-02-07 03:24:34 UTC (rev 584)
+++ trunk/helper/pref-gtk.c 2005-02-07 03:47:46 UTC (rev 585)
@@ -470,6 +470,43 @@
return window;
}
+static gboolean
+check_dot_uim_file(void)
+{
+ GString *dot_uim = g_string_new(g_get_home_dir());
+ GtkWidget *dialog;
+ const gchar *message =
+ N_("The user customize file \"~/.uim\" is found.\n"
+ "This file will overrid all conflicted settings set by\n"
+ "this tool (stored in ~/.uim.d/customs/*.scm).\n"
+ "Please check this file if you find settings aren't applied.");
+
+ g_string_append(dot_uim, "/.uim");
+
+ if (!g_file_test(dot_uim->str, G_FILE_TEST_EXISTS)) {
+ g_string_free(dot_uim, TRUE);
+ return FALSE;
+ }
+ g_string_free(dot_uim, TRUE);
+
+ dialog = gtk_message_dialog_new(NULL,
+ GTK_DIALOG_MODAL,
+ GTK_MESSAGE_WARNING,
+ GTK_BUTTONS_OK,
+ _(message));
+
+ /*
+ * 2005-02-07 Takuro Ashie <ashie at homa.ne.jp>
+ * FIXME! We shoud add a check box like
+ * "Show this message every time on start up.".
+ */
+
+ gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(GTK_WIDGET(dialog));
+
+ return FALSE;
+}
+
int
main (int argc, char *argv[])
{
@@ -489,6 +526,8 @@
if (uim_custom_enable()) {
GtkWidget *pref;
+
+ gtk_idle_add((GtkFunction) check_dot_uim_file, NULL);
pref = create_pref_window();
Modified: trunk/po/ja.po
===================================================================
--- trunk/po/ja.po 2005-02-07 03:24:34 UTC (rev 584)
+++ trunk/po/ja.po 2005-02-07 03:47:46 UTC (rev 585)
@@ -7,8 +7,8 @@
msgstr ""
"Project-Id-Version: uim 0.4.6-alpha1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-02-07 11:39+0900\n"
-"PO-Revision-Date: 2005-02-07 11:44+0900\n"
+"POT-Creation-Date: 2005-02-07 12:41+0900\n"
+"PO-Revision-Date: 2005-02-07 12:41+0900\n"
"Last-Translator: YamaKen <yamaken at bp.iij4u.or.jp>\n"
"Language-Team: Japanese <LL at li.org>\n"
"MIME-Version: 1.0\n"
@@ -357,6 +357,18 @@
msgid "_Defaults"
msgstr "¥Ç¥Õ¥©¥ë¥È(_D)"
+#: helper/pref-gtk.c:479
+msgid ""
+"The user customize file \"~/.uim\" is found.\n"
+"This file will overrid all conflicted settings set by\n"
+"this tool (stored in ~/.uim.d/customs/*.scm).\n"
+"Please check this file if you find settings aren't applied."
+msgstr ""
+"¥æ¡¼¥¶ÀßÄê¥Õ¥¡¥¤¥ë \"~/.uim\" ¤¬Â¸ºß¤·¤Þ¤¹¡£\n"
+"¤³¤Î¥Õ¥¡¥¤¥ë¤ÎÆâÍƤϡ¢¤³¤Î¥Ä¡¼¥ë¤ÇÀßÄꤷ¤¿ÀßÄêÆâÍÆ\n"
+"(\"~/.uim.d/customs/*.scm\") ¤è¤ê¤âÍ¥À褵¤ì¤Þ¤¹¡£\n"
+"ÀßÄ꤬ȿ±Ç¤µ¤ì¤Ê¤¤¾ì¹ç¤Ï¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤ò¥Á¥§¥Ã¥¯¤·¤Æ²¼¤µ¤¤¡£"
+
#: helper/pref-gtk-custom-widgets.c:382
msgid "Specify file"
msgstr "¥Õ¥¡¥¤¥ë¤Î»ØÄê"
More information about the Uim-commit
mailing list