aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryanminhui <yanminhui163@163.com>2019-11-16 11:10:37 +0800
committerGerd Hoffmann <kraxel@redhat.com>2019-11-21 09:42:30 +0100
commitc55c974486b0dadf97fe47e2e789d5dba9b77138 (patch)
tree31af688922aa51c865cd32a1691a4eebb6dc4b97
parent0f6ed883e74f3fd9eb3eedfe0e61be66e4834fc9 (diff)
ui/gtk: fix gettext message's charset.
Signed-off-by: yanminhui <yanminhui163@163.com> Message-Id: <20191116031037.1207-1-yanminhui163@163.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--po/zh_CN.po2
-rw-r--r--ui/gtk.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/po/zh_CN.po b/po/zh_CN.po
index b25e8e3c02..38de6a4f2a 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -66,7 +66,7 @@ msgid "Detach Tab"
msgstr "分离标签页"
msgid "Show Menubar"
-msgstr ""
+msgstr "显示菜单栏"
msgid "_Machine"
msgstr "虚拟机(_M)"
diff --git a/ui/gtk.c b/ui/gtk.c
index 2f23922afc..692ccc7bbb 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -2215,6 +2215,7 @@ static void gtk_display_init(DisplayState *ds, DisplayOptions *opts)
setlocale(LC_MESSAGES, "");
setlocale(LC_CTYPE, "C.UTF-8");
bindtextdomain("qemu", CONFIG_QEMU_LOCALEDIR);
+ bind_textdomain_codeset("qemu", "UTF-8");
textdomain("qemu");
window_display = gtk_widget_get_display(s->window);