Skip to content

Commit

Permalink
say ZH voices
Browse files Browse the repository at this point in the history
  • Loading branch information
groverlynn committed Oct 6, 2023
1 parent d550609 commit c91bc8e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
5 changes: 5 additions & 0 deletions en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
"deploy_start" = "Deploying Rime input method engine…";
"deploy_success" = "Squirrel is ready.";
"deploy_failure" = "Error occurred. See log file $TMPDIR/rime.squirrel.INFO.";

"problematic_launch" = "Problematic launch detected! \
Squirrel may be suffering a crash due to imporper configuration. \
Revert previous modifications to see if the problem recurs.";
"say_voice" = "Alex";
10 changes: 4 additions & 6 deletions main.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ int main(int argc, char *argv[]) {

if (NSApp.squirrelAppDelegate.problematicLaunchDetected) {
NSLog(@"Problematic launch detected!");
NSArray *args = @[
@"Problematic launch detected! \
Squirrel may be suffering a crash due to imporper configuration. \
Revert previous modifications to see if the problem recurs."
];
[NSTask launchedTaskWithLaunchPath:@"/usr/bin/say" arguments:args];
NSArray *args = @[@"-v", NSLocalizedString(@"say_voice", nil),
NSLocalizedString(@"problematic_launch", nil)];
[NSTask launchedTaskWithExecutableURL:[[NSURL alloc] initFileURLWithPath:@"/usr/bin/say"]
arguments:args error:nil terminationHandler:nil];
} else {
[NSApp.squirrelAppDelegate setupRime];
[NSApp.squirrelAppDelegate startRimeWithFullCheck:NO];
Expand Down
5 changes: 5 additions & 0 deletions zh-HK.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
"deploy_start" = "部署輸入法引擎⋯";
"deploy_success" = "部署完成。";
"deploy_failure" = "有錯誤!請查看日誌 $TMPDIR/rime.squirrel.INFO";

"problematic_launch" = "啟動時偵測到錯誤!\
「鼠鬚筆」可能由於設定不當而崩潰。\
請嘗試回退先前的改動,然後查看問題是否仍然存在。";
"say_voice" = "Sinji";
5 changes: 5 additions & 0 deletions zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
"deploy_start" = "部署输入法引擎…";
"deploy_success" = "部署完成。";
"deploy_failure" = "有错误!请查看日志 $TMPDIR/rime.squirrel.INFO";

"problematic_launch" = "检测到启动有问题!\
“鼠须管”可能因错误设置而崩溃。\
请尝试撤销之前的修改,然后查看问题是否仍旧存在。";
"say_voice" = "TingTing";
5 changes: 5 additions & 0 deletions zh-Hant.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
"deploy_start" = "部署輸入法引擎⋯";
"deploy_success" = "部署完成。";
"deploy_failure" = "有錯誤!請查看日誌 $TMPDIR/rime.squirrel.INFO";

"problematic_launch" = "啟動時偵測到問題!\
「鼠鬚管」可能因設定不當而崩潰。\
請嘗試回退先前的修改,然後查看問題是否依然存在。";
"say_voice" = "MeiJia";

0 comments on commit c91bc8e

Please sign in to comment.