patches/gthumb-04-zh-ja-locale.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 14632 8a432c931203
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.

--- gthumb-2.10.9/src/gth-viewer.c.orig	2008-11-20 14:29:52.706574000 +0800
+++ gthumb-2.10.9/src/gth-viewer.c	2008-11-20 14:31:08.395439000 +0800
@@ -568,6 +568,7 @@
 	GthViewerPrivateData *priv = viewer->priv;
 	char                 *text;
 	char                  time_txt[50], *utf8_time_txt;
+	char		     *format_locale;
 	char                 *size_txt;
 	char                 *file_size_txt;
 	int                   width, height;
@@ -596,7 +597,9 @@
 	if (timer == 0)
 		timer = priv->image->mtime;
 	tm = localtime (&timer);
-	strftime (time_txt, 50, _("%d %B %Y, %H:%M"), tm);
+	format_locale = g_locale_from_utf8(_("%d %B %Y, %H:%M"),-1,NULL,NULL,NULL);
+	strftime(time_txt,50,format_locale,tm); 
+	g_free(format_locale);
 	utf8_time_txt = g_locale_to_utf8 (time_txt, -1, 0, 0, 0);
 
 	size_txt = g_strdup_printf (_("%d x %d pixels"), width, height);
--- gthumb-2.10.9/po/zh_CN.po.orig	2008-11-20 14:08:36.282451000 +0800
+++ gthumb-2.10.9/po/zh_CN.po	2008-11-20 14:07:37.574653000 +0800
@@ -172,7 +172,7 @@
 
 #: ../components/image-viewer/viewer-stream.c:90 ../src/dlg-file-utils.c:555
 msgid "%d %b %Y, %H:%M"
-msgstr "%Y年%-m月%-d日 %H:%M"
+msgstr "%Y年%m月%d日 %H:%M"
 
 #: ../components/image-viewer/viewer-stream.c:99
 #: ../src/catalog-png-exporter.c:815 ../src/dlg-image-prop.c:425
@@ -2091,14 +2091,14 @@
 
 #: ../libgthumb/comments.c:1249
 msgid "%d %B %Y"
-msgstr "%Y年%-m月%-d日"
+msgstr "%Y年%m月%d日"
 
 #: ../libgthumb/comments.c:1251 ../src/catalog-web-exporter.c:52
 #: ../src/dlg-duplicates.c:553 ../src/dlg-image-prop.c:445
 #: ../src/gth-browser.c:498 ../src/gth-exif-data-viewer.c:485
 #: ../src/gth-fullscreen.c:857 ../src/gth-viewer.c:583
 msgid "%d %B %Y, %H:%M"
-msgstr "%Y年%-m月%-d日 %H:%M"
+msgstr "%Y年%m月%d日 %H:%M"
 
 #: ../libgthumb/comments.c:1261 ../libgthumb/comments.c:1263
 msgid "(No Comment)"