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:
yanminhui 2019-11-16 11:10:37 +08:00 committed by Gerd Hoffmann
parent 0f6ed883e7
commit c55c974486
2 changed files with 2 additions and 1 deletions

View File

@ -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)"

View File

@ -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);