Author: iratqq
Date: Sat Mar 29 14:31:59 2008
New Revision: 5366

Modified:
   trunk/po/POTFILES.in
   trunk/po/fr.po
   trunk/po/ja.po
   trunk/po/ko.po
   trunk/uim/wnnlib.c

Log:
* uim/wnnlib.c (jcOpen2):
  - Check file existence of rcfile.
  - Gettextize.
* po/POTFILES.in
  - Add uim/wnnlib.c.
* po/ja.po
  - Translate message about wnnenvrc.
* po/fr.po, po/ko.po:
  - Regen.


Modified: trunk/po/POTFILES.in
==============================================================================
--- trunk/po/POTFILES.in        (original)
+++ trunk/po/POTFILES.in        Sat Mar 29 14:31:59 2008
@@ -71,3 +71,4 @@
 uim/sj3.c
 uim/skk.c
 uim/uim-error.c
+uim/wnnlib.c

Modified: trunk/po/fr.po
==============================================================================
--- trunk/po/fr.po      (original)
+++ trunk/po/fr.po      Sat Mar 29 14:31:59 2008
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: uim 1.4.0\n"
 "Report-Msgid-Bugs-To: [EMAIL PROTECTED]"
-"POT-Creation-Date: 2008-03-29 20:06+0900\n"
+"POT-Creation-Date: 2008-03-30 06:19+0900\n"
 "PO-Revision-Date: 2006-05-21 11:21+0900\n"
 "Last-Translator: Thierry Vignaud <[EMAIL PROTECTED]>\n"
 "Language-Team: fr <[EMAIL PROTECTED]>\n"
@@ -4728,6 +4728,13 @@

 #: ../uim/uim-error.c:57
 msgid "All functionality has been disabled to save user application data."
+msgstr ""
+
+#: ../uim/wnnlib.c:3739 ../uim/wnnlib.c:3753
+#, c-format
+msgid ""
+"uim-wnn: \"%s\" is not exist. Please run uim-pref and set \"Wnn resource file"
+"\" (maybe file name is \"wnnenvrc\")."
 msgstr ""

 #~ msgid "Spellcheck"

Modified: trunk/po/ja.po
==============================================================================
--- trunk/po/ja.po      (original)
+++ trunk/po/ja.po      Sat Mar 29 14:31:59 2008
@@ -99,8 +99,8 @@
 msgstr ""
 "Project-Id-Version: uim 1.5.0\n"
 "Report-Msgid-Bugs-To: [EMAIL PROTECTED]"
-"POT-Creation-Date: 2008-03-29 20:06+0900\n"
-"PO-Revision-Date: 2008-03-29 20:15+0900\n"
+"POT-Creation-Date: 2008-03-30 06:19+0900\n"
+"PO-Revision-Date: 2008-03-30 06:25+0900\n"
 "Last-Translator: YamaKen <[EMAIL PROTECTED]>\n"
 "Language-Team: Japanese <[EMAIL PROTECTED]>\n"
 "MIME-Version: 1.0\n"
@@ -4782,6 +4782,13 @@
 #: ../uim/uim-error.c:57
 msgid "All functionality has been disabled to save user application data."
 msgstr "ユーザアプリケーションデータを保護するため、全機能を停止しました。"
+
+#: ../uim/wnnlib.c:3739 ../uim/wnnlib.c:3753
+#, c-format
+msgid ""
+"uim-wnn: \"%s\" is not exist. Please run uim-pref and set \"Wnn resource file"
+"\" (maybe file name is \"wnnenvrc\")."
+msgstr "uim-wnn: 
\"%s\"は存在しません。uim-prefを起動して、\"Wnn設定ファイル\"を設定してください(おそらくファイル名は\"wnnenvrc\"です)。"

 #~ msgid "Standard Hangul 2-beol keyboard"
 #~ msgstr "標準のハングル2ボル式"

Modified: trunk/po/ko.po
==============================================================================
--- trunk/po/ko.po      (original)
+++ trunk/po/ko.po      Sat Mar 29 14:31:59 2008
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: uim 1.4.0\n"
 "Report-Msgid-Bugs-To: [EMAIL PROTECTED]"
-"POT-Creation-Date: 2008-03-29 20:06+0900\n"
+"POT-Creation-Date: 2008-03-30 06:19+0900\n"
 "PO-Revision-Date: 2007-03-27 01:28+0900\n"
 "Last-Translator: Jae-hyeon Park <[EMAIL PROTECTED]>\n"
 "Language-Team: Korean <[EMAIL PROTECTED]>\n"
@@ -4739,6 +4739,13 @@

 #: ../uim/uim-error.c:57
 msgid "All functionality has been disabled to save user application data."
+msgstr ""
+
+#: ../uim/wnnlib.c:3739 ../uim/wnnlib.c:3753
+#, c-format
+msgid ""
+"uim-wnn: \"%s\" is not exist. Please run uim-pref and set \"Wnn resource file"
+"\" (maybe file name is \"wnnenvrc\")."
 msgstr ""

 # CHECK: 자판 or 배열

Modified: trunk/uim/wnnlib.c
==============================================================================
--- trunk/uim/wnnlib.c  (original)
+++ trunk/uim/wnnlib.c  Sat Mar 29 14:31:59 2008
@@ -613,6 +613,7 @@
 #include       <string.h>
 #include       <sys/types.h>
 #include       <pwd.h>
+#include       <gettext.h>

 #ifndef WNNENVDIR
 #define WNNENVDIR      WNNLIBDIR "/wnn"
@@ -3734,6 +3735,9 @@
                rcfile = "@DEFAULT";
 #else
                rcfile = "wnnenvrc";
+               if (access(rcfile, R_OK) != 0)
+                       uim_notify_fatal(_("uim-wnn: \"%s\" is not exist. 
Please run uim-pref and set \"Wnn resource file\" (maybe file name is 
\"wnnenvrc\")."),
+                           rcfile);
 #endif
            } else {
 #if defined(WNNENVDIR) && JSERVER_VERSION > 0x4030
@@ -3745,6 +3749,9 @@
 #else
                rcfile = "wnnenvrc";
 #endif
+               if (access(rcfile, R_OK) != 0)
+                       uim_notify_fatal(_("uim-wnn: \"%s\" is not exist. 
Please run uim-pref and set \"Wnn resource file\" (maybe file name is 
\"wnnenvrc\")."),
+                               rcfile);
            }
         }
     }

Reply via email to