Skip to content

Commit c91bc8e

Browse files
committed
say ZH voices
1 parent d550609 commit c91bc8e

5 files changed

Lines changed: 24 additions & 6 deletions

File tree

en.lproj/Localizable.strings

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
"deploy_start" = "Deploying Rime input method engine…";
55
"deploy_success" = "Squirrel is ready.";
66
"deploy_failure" = "Error occurred. See log file $TMPDIR/rime.squirrel.INFO.";
7+
8+
"problematic_launch" = "Problematic launch detected! \
9+
Squirrel may be suffering a crash due to imporper configuration. \
10+
Revert previous modifications to see if the problem recurs.";
11+
"say_voice" = "Alex";

main.m

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,10 @@ int main(int argc, char *argv[]) {
7878

7979
if (NSApp.squirrelAppDelegate.problematicLaunchDetected) {
8080
NSLog(@"Problematic launch detected!");
81-
NSArray *args = @[
82-
@"Problematic launch detected! \
83-
Squirrel may be suffering a crash due to imporper configuration. \
84-
Revert previous modifications to see if the problem recurs."
85-
];
86-
[NSTask launchedTaskWithLaunchPath:@"/usr/bin/say" arguments:args];
81+
NSArray *args = @[@"-v", NSLocalizedString(@"say_voice", nil),
82+
NSLocalizedString(@"problematic_launch", nil)];
83+
[NSTask launchedTaskWithExecutableURL:[[NSURL alloc] initFileURLWithPath:@"/usr/bin/say"]
84+
arguments:args error:nil terminationHandler:nil];
8785
} else {
8886
[NSApp.squirrelAppDelegate setupRime];
8987
[NSApp.squirrelAppDelegate startRimeWithFullCheck:NO];

zh-HK.lproj/Localizable.strings

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@
1111
"deploy_start" = "部署輸入法引擎⋯";
1212
"deploy_success" = "部署完成。";
1313
"deploy_failure" = "有錯誤!請查看日誌 $TMPDIR/rime.squirrel.INFO";
14+
15+
"problematic_launch" = "啟動時偵測到錯誤!\
16+
「鼠鬚筆」可能由於設定不當而崩潰。\
17+
請嘗試回退先前的改動,然後查看問題是否仍然存在。";
18+
"say_voice" = "Sinji";

zh-Hans.lproj/Localizable.strings

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@
1111
"deploy_start" = "部署输入法引擎…";
1212
"deploy_success" = "部署完成。";
1313
"deploy_failure" = "有错误!请查看日志 $TMPDIR/rime.squirrel.INFO";
14+
15+
"problematic_launch" = "检测到启动有问题!\
16+
“鼠须管”可能因错误设置而崩溃。\
17+
请尝试撤销之前的修改,然后查看问题是否仍旧存在。";
18+
"say_voice" = "TingTing";

zh-Hant.lproj/Localizable.strings

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@
1111
"deploy_start" = "部署輸入法引擎⋯";
1212
"deploy_success" = "部署完成。";
1313
"deploy_failure" = "有錯誤!請查看日誌 $TMPDIR/rime.squirrel.INFO";
14+
15+
"problematic_launch" = "啟動時偵測到問題!\
16+
「鼠鬚管」可能因設定不當而崩潰。\
17+
請嘗試回退先前的修改,然後查看問題是否依然存在。";
18+
"say_voice" = "MeiJia";

0 commit comments

Comments
 (0)