Skip to content

Commit

Permalink
ui/gtk: fix gettext message's charset.
Browse files Browse the repository at this point in the history
Signed-off-by: yanminhui <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
  • Loading branch information
yanminhui authored and kraxel committed Nov 21, 2019
1 parent 0f6ed88 commit c55c974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion po/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ msgid "Detach Tab"
msgstr "分离标签页"

msgid "Show Menubar"
msgstr ""
msgstr "显示菜单栏"

msgid "_Machine"
msgstr "虚拟机(_M)"
Expand Down
1 change: 1 addition & 0 deletions ui/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c55c974

Please sign in to comment.