Skip to content

Commit c55c974

Browse files
yanminhuikraxel
authored andcommittedNov 21, 2019
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>
1 parent 0f6ed88 commit c55c974

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎po/zh_CN.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ msgid "Detach Tab"
6666
msgstr "分离标签页"
6767

6868
msgid "Show Menubar"
69-
msgstr ""
69+
msgstr "显示菜单栏"
7070

7171
msgid "_Machine"
7272
msgstr "虚拟机(_M)"

‎ui/gtk.c

+1
Original file line numberDiff line numberDiff line change
@@ -2215,6 +2215,7 @@ static void gtk_display_init(DisplayState *ds, DisplayOptions *opts)
22152215
setlocale(LC_MESSAGES, "");
22162216
setlocale(LC_CTYPE, "C.UTF-8");
22172217
bindtextdomain("qemu", CONFIG_QEMU_LOCALEDIR);
2218+
bind_textdomain_codeset("qemu", "UTF-8");
22182219
textdomain("qemu");
22192220

22202221
window_display = gtk_widget_get_display(s->window);

0 commit comments

Comments
 (0)
Please sign in to comment.