Skip to content

Commit 9b42d3e

Browse files
author
AENERV7
committed
fix: escape curly quotes in Chinese message box text
The Chinese curly quotes (U+201C, U+201D) were parsed as Rust string delimiters, causing a compile error. Replace with corner brackets (U+300C, U+300D) and use concat! macro for cleaner multi-line strings. Also fix bare \uXXXX escapes to \u{XXXX} (Rust syntax).
1 parent d18d5e9 commit 9b42d3e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src-tauri/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ fn show_webview2_missing_dialog() {
5050
}
5151

5252
let title = wide("YAUZ");
53-
let text = wide(
54-
"YAUZ requires the Microsoft Edge WebView2 Runtime, which is not installed on this system.\n\n\
55-
Click OK to open the download page, then install the runtime and relaunch YAUZ.\n\n\
56-
YAUZ 需要 Microsoft Edge WebView2 Runtime,但当前系统未安装。\n\n\
57-
点击"确定"打开下载页面,安装后重新启动 YAUZ。"
58-
);
53+
let text = wide(concat!(
54+
"YAUZ requires the Microsoft Edge WebView2 Runtime, which is not installed on this system.\n\n",
55+
"Click OK to open the download page, then install the runtime and relaunch YAUZ.\n\n",
56+
"YAUZ \u{9700}\u{8981} Microsoft Edge WebView2 Runtime\u{FF0C}\u{4F46}\u{5F53}\u{524D}\u{7CFB}\u{7EDF}\u{672A}\u{5B89}\u{88C5}\u{3002}\n\n",
57+
"\u{70B9}\u{51FB}\u{300C}\u{786E}\u{5B9A}\u{300D}\u{6253}\u{5F00}\u{4E0B}\u{8F7D}\u{9875}\u{9762}\u{FF0C}\u{5B89}\u{88C5}\u{540E}\u{91CD}\u{65B0}\u{542F}\u{52A8} YAUZ\u{3002}",
58+
));
5959

6060
// MB_OK | MB_ICONERROR
6161
unsafe {

0 commit comments

Comments
 (0)