projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f6ed88
)
ui/gtk: fix gettext message's charset.
author
yanminhui
<yanminhui163@163.com>
Sat, 16 Nov 2019 03:10:37 +0000
(11:10 +0800)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 21 Nov 2019 08:42:30 +0000
(09:42 +0100)
Signed-off-by: yanminhui <yanminhui163@163.com>
Message-Id: <
20191116031037
.1207-1-yanminhui163@163.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
po/zh_CN.po
patch
|
blob
|
history
ui/gtk.c
patch
|
blob
|
history
diff --git
a/po/zh_CN.po
b/po/zh_CN.po
index b25e8e3c0207f2b7b8535aac1fae51581d7311a1..38de6a4f2a7fb353469a06318a9fcf3f68f13e8f 100644
(file)
--- 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 2f23922afc6a75a03f195def61c74b9a4d34e002..692ccc7bbb9089b425b1a0ea71a86a55670a80fc 100644
(file)
--- 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);