Skip to content

Commit

Permalink
Update TTS relevant strings in Settings (tisfeng#179)
Browse files Browse the repository at this point in the history
* perf(UI): add localization for TTS services

* perf(UI): add space in between Chinese and English strings
  • Loading branch information
Jerry23011 authored Oct 7, 2023
1 parent 97b199a commit ed9f014
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 6 deletions.
35 changes: 34 additions & 1 deletion Easydict/App/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@
}
}
},
"Apple" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "苹果"
}
}
}
},
"apple_dictionary" : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -347,6 +358,17 @@
}
}
},
"Baidu" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "百度"
}
}
}
},
"baidu_translate" : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -588,7 +610,7 @@
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "默认TTS服务:"
"value" : "默认 TTS 服务:"
}
}
}
Expand Down Expand Up @@ -2027,6 +2049,17 @@
}
}
},
"Youdao" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "有道"
}
}
}
},
"youdao_dict" : {
"localizations" : {
"en" : {
Expand Down
10 changes: 5 additions & 5 deletions Easydict/Feature/PerferenceWindow/EZSettingViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,11 @@ - (void)setupUI {

// Note: Bing API has frequency limit
NSArray *enabledTTSServiceTypes = @[
EZServiceTypeYoudao,
EZServiceTypeBing,
EZServiceTypeGoogle,
EZServiceTypeBaidu,
EZServiceTypeApple,
NSLocalizedString(EZServiceTypeYoudao,nil),
NSLocalizedString(EZServiceTypeBing,nil),
NSLocalizedString(EZServiceTypeGoogle,nil),
NSLocalizedString(EZServiceTypeBaidu,nil),
NSLocalizedString(EZServiceTypeApple,nil),
];
[self.defaultTTSServicePopUpButton addItemsWithTitles:enabledTTSServiceTypes];
self.defaultTTSServicePopUpButton.target = self;
Expand Down

0 comments on commit ed9f014

Please sign in to comment.