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>
This commit is contained in:
parent
0f6ed883e7
commit
c55c974486
@ -66,7 +66,7 @@ msgid "Detach Tab"
|
|||||||
msgstr "分离标签页"
|
msgstr "分离标签页"
|
||||||
|
|
||||||
msgid "Show Menubar"
|
msgid "Show Menubar"
|
||||||
msgstr ""
|
msgstr "显示菜单栏"
|
||||||
|
|
||||||
msgid "_Machine"
|
msgid "_Machine"
|
||||||
msgstr "虚拟机(_M)"
|
msgstr "虚拟机(_M)"
|
||||||
|
1
ui/gtk.c
1
ui/gtk.c
@ -2215,6 +2215,7 @@ static void gtk_display_init(DisplayState *ds, DisplayOptions *opts)
|
|||||||
setlocale(LC_MESSAGES, "");
|
setlocale(LC_MESSAGES, "");
|
||||||
setlocale(LC_CTYPE, "C.UTF-8");
|
setlocale(LC_CTYPE, "C.UTF-8");
|
||||||
bindtextdomain("qemu", CONFIG_QEMU_LOCALEDIR);
|
bindtextdomain("qemu", CONFIG_QEMU_LOCALEDIR);
|
||||||
|
bind_textdomain_codeset("qemu", "UTF-8");
|
||||||
textdomain("qemu");
|
textdomain("qemu");
|
||||||
|
|
||||||
window_display = gtk_widget_get_display(s->window);
|
window_display = gtk_widget_get_display(s->window);
|
||||||
|
Loading…
Reference in New Issue
Block a user