Browse Source

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>
stable-4.2
yanminhui 2 years ago
committed by Gerd Hoffmann
parent
commit
c55c974486
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      po/zh_CN.po
  2. +1
    -0
      ui/gtk.c

+ 1
- 1
po/zh_CN.po View File

@ -66,7 +66,7 @@ msgid "Detach Tab"
msgstr "分离标签页"
msgid "Show Menubar"
msgstr ""
msgstr "显示菜单栏"
msgid "_Machine"
msgstr "虚拟机(_M)"


+ 1
- 0
ui/gtk.c View File

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


Loading…
Cancel
Save