Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

fix: the Rewrite in English button after a meeting has spaces around English in Chinese

wquguru52236102430c
diff --git a/Resources/en.lproj/Localizable.strings b/Resources/en.lproj/Localizable.strings
index 7d275b2..6950b2f 100644
--- a/Resources/en.lproj/Localizable.strings
+++ b/Resources/en.lproj/Localizable.strings
@@ -521,6 +521,7 @@
"会议已结束,完整版纪要已整理好 · " = "Meeting ended; full notes ready · ";
"现在没有在记录" = "Not recording";
"改用%@重新整理" = "Rewrite in %@";
+"改用 %@ 重新整理" = "Rewrite in %@";
"在会议记录中查看" = "View in Meetings";
"开始新会议" = "New Meeting";
"识别语音和生成纪要需要 Ling key" = "A Ling key is required for transcription and notes";
diff --git a/Resources/ja.lproj/Localizable.strings b/Resources/ja.lproj/Localizable.strings
index 2b50859..bd1b92e 100644
--- a/Resources/ja.lproj/Localizable.strings
+++ b/Resources/ja.lproj/Localizable.strings
@@ -521,6 +521,7 @@
"会议已结束,完整版纪要已整理好 · " = "会議が終了しました。完全版の議事メモができました · ";
"现在没有在记录" = "現在は記録していません";
"改用%@重新整理" = "%@で書き直す";
+"改用 %@ 重新整理" = "%@で書き直す";
"在会议记录中查看" = "会議の記録で見る";
"开始新会议" = "新しい会議を開始";
"识别语音和生成纪要需要 Ling key" = "音声認識とメモの生成には Ling key が必要です";
diff --git a/Resources/ko.lproj/Localizable.strings b/Resources/ko.lproj/Localizable.strings
index d015ba9..10db1ee 100644
--- a/Resources/ko.lproj/Localizable.strings
+++ b/Resources/ko.lproj/Localizable.strings
@@ -521,6 +521,7 @@
"会议已结束,完整版纪要已整理好 · " = "회의가 종료되었습니다. 전체본 회의록이 준비되었습니다 · ";
"现在没有在记录" = "지금은 기록 중이 아닙니다";
"改用%@重新整理" = "%@로 다시 작성";
+"改用 %@ 重新整理" = "%@로 다시 작성";
"在会议记录中查看" = "회의 기록에서 보기";
"开始新会议" = "새 회의 시작";
"识别语音和生成纪要需要 Ling key" = "음성 인식과 회의록 생성에는 Ling key가 필요합니다";
diff --git a/Resources/zh-Hans.lproj/Localizable.strings b/Resources/zh-Hans.lproj/Localizable.strings
index 076c760..2d26165 100644
--- a/Resources/zh-Hans.lproj/Localizable.strings
+++ b/Resources/zh-Hans.lproj/Localizable.strings
@@ -521,6 +521,7 @@
"会议已结束,完整版纪要已整理好 · " = "会议已结束,完整版纪要已整理好 · ";
"现在没有在记录" = "现在没有在记录";
"改用%@重新整理" = "改用%@重新整理";
+"改用 %@ 重新整理" = "改用 %@ 重新整理";
"在会议记录中查看" = "在会议记录中查看";
"开始新会议" = "开始新会议";
"识别语音和生成纪要需要 Ling key" = "识别语音和生成纪要需要 Ling key";
diff --git a/Sources/Cicada/NotesWindow.swift b/Sources/Cicada/NotesWindow.swift
index 025b75a..29906cd 100644
--- a/Sources/Cicada/NotesWindow.swift
+++ b/Sources/Cicada/NotesWindow.swift
@@ -629,7 +629,12 @@ struct NotesWindowView: View {
}
HStack(spacing: 8) {
if let id = session?.id, let other = otherNotesLanguage(id) {
- SoftButton(L("改用\(targetName(other.code))重新整理")) { model.regenerateNotes(id, choice: other.choice) }
+ // A Latin name gets spaces in Chinese ("改用 English 重新整理"), a Chinese one
+ // doesn't ("改用简体中文重新整理"). Both keys translate alike.
+ let name = targetName(other.code)
+ SoftButton(name.first?.isASCII == true ? L("改用 \(name) 重新整理") : L("改用\(name)重新整理")) {
+ model.regenerateNotes(id, choice: other.choice)
+ }
.disabled(engine.state == .updating)
}
if let id = session?.id {