aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-03 09:08:38 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-03 09:08:38 +0000
commit088996e8eca01a4757a4645fde51f249f85a1184 (patch)
treef99189460867b7e30cb3540c790dbb821cfe708a
parentb41a0d98336728e13c55170c8f5c6a2eb2825e9d (diff)
win32: fixed not-working translation on non-ascii directory.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@619 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.ja6
-rw-r--r--src/main.c12
3 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 298c937d..2955d85d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-10-03
+ * src/main.c: app_init(): win32: pass locale encoding directory name
+ for bindtextdomain() (fixed not-working translation on non-ascii
+ directory).
+
+2005-10-03
+
* libsylph/mh.c:
mh_create_tree(): create directory hierarchy for root path.
mh_move_folder_real(): change current directory to prevent rename
diff --git a/ChangeLog.ja b/ChangeLog.ja
index d5edc2ee..926c9a97 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,11 @@
2005-10-03
+ * src/main.c: app_init(): win32: ロケールエンコーディングの
+ ディレクトリ名を bindtextdomain() に渡すようにした(非 ascii
+ ディレクトリで翻訳が機能しないのを修正)。
+
+2005-10-03
+
* libsylph/mh.c:
mh_create_tree(): ルートパスのディレクトリ階層を作成するようにした。
mh_move_folder_real(): Win32 で rename に失敗するのを避けるため
diff --git a/src/main.c b/src/main.c
index d4410300..27f6b460 100644
--- a/src/main.c
+++ b/src/main.c
@@ -379,6 +379,18 @@ static void app_init(void)
locale_dir = g_strconcat(startup_dir, G_DIR_SEPARATOR_S,
LOCALEDIR, NULL);
+#ifdef G_OS_WIN32
+ {
+ gchar *locale_dir_;
+
+ locale_dir_ = g_locale_from_utf8(locale_dir, -1,
+ NULL, NULL, NULL);
+ if (locale_dir_) {
+ g_free(locale_dir);
+ locale_dir = locale_dir_;
+ }
+ }
+#endif
bindtextdomain(PACKAGE, locale_dir);
g_free(locale_dir);
}