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(linux): the Rewrite in <language> button puts spaces around a Latin language name in Chinese

wquguru2ae4563e4263
diff --git a/linux/cicada/app/notes_window.py b/linux/cicada/app/notes_window.py
index f29c08d..daba7bc 100644
--- a/linux/cicada/app/notes_window.py
+++ b/linux/cicada/app/notes_window.py
@@ -643,7 +643,11 @@ class NotesWindow(Gtk.Window):
listen.notes_for[sid] = choice
notes.generate(sid)
GLib.timeout_add(150, lambda: self.refresh() or False)
- b = ui.button(LF("改用%@重新整理", name(other[1])), again, "outline")
+ # A Latin name gets spaces in Chinese ("改用 English 重新整理"), unlike the Mac's one key;
+ # a Chinese one doesn't ("改用简体中文重新整理"). Both translate alike.
+ label = name(other[1])
+ spaced = label[:1].isascii()
+ b = ui.button(LF("改用 %@ 重新整理" if spaced else "改用%@重新整理", label), again, "outline")
b.set_can_focus(False)
b.set_halign(Gtk.Align.START)
self.lang_box.pack_start(b, False, False, 0)
diff --git a/linux/strings/en.lproj/Linux.strings b/linux/strings/en.lproj/Linux.strings
index 94da2c5..4bbd96c 100644
--- a/linux/strings/en.lproj/Linux.strings
+++ b/linux/strings/en.lproj/Linux.strings
@@ -195,3 +195,5 @@
"系统代理设成了“自动”,知了用不了。在 设置 › 网络 › 网络代理 里改成“手动”。" = "The system proxy is set to Automatic, which Cicada can’t use. Set it to Manual in Settings › Network › Network Proxy.";
/* An update that failed and couldn't open the browser either (updater.py): the address to open. */
"没能自动更新:%@。请在浏览器里打开 %@ 下载" = "Couldn’t update automatically: %@. Open %@ in a browser to download it";
+/* The Mac's 改用%@重新整理 with spaces around the language (notes_window.py); same translations. */
+"改用 %@ 重新整理" = "Rewrite in %@";
diff --git a/linux/strings/ja.lproj/Linux.strings b/linux/strings/ja.lproj/Linux.strings
index d790506..af2f16a 100644
--- a/linux/strings/ja.lproj/Linux.strings
+++ b/linux/strings/ja.lproj/Linux.strings
@@ -195,3 +195,5 @@
"系统代理设成了“自动”,知了用不了。在 设置 › 网络 › 网络代理 里改成“手动”。" = "システムプロキシが「自動」になっていて、Cicada では使えません。設定 › ネットワーク › ネットワークプロキシ で「手動」にしてください。";
/* An update that failed and couldn't open the browser either (updater.py): the address to open. */
"没能自动更新:%@。请在浏览器里打开 %@ 下载" = "自動アップデートできませんでした:%@。ブラウザで %@ を開いてダウンロードしてください";
+/* The Mac's 改用%@重新整理 with spaces around the language (notes_window.py); same translations. */
+"改用 %@ 重新整理" = "%@で書き直す";
diff --git a/linux/strings/ko.lproj/Linux.strings b/linux/strings/ko.lproj/Linux.strings
index 179a79d..5780bb8 100644
--- a/linux/strings/ko.lproj/Linux.strings
+++ b/linux/strings/ko.lproj/Linux.strings
@@ -195,3 +195,5 @@
"系统代理设成了“自动”,知了用不了。在 设置 › 网络 › 网络代理 里改成“手动”。" = "시스템 프록시가 ‘자동’으로 되어 있어 Cicada에서 쓸 수 없어요. 설정 › 네트워크 › 네트워크 프록시에서 ‘수동’으로 바꾸세요.";
/* An update that failed and couldn't open the browser either (updater.py): the address to open. */
"没能自动更新:%@。请在浏览器里打开 %@ 下载" = "자동 업데이트 실패: %@. 브라우저에서 %@을(를) 열어 다운로드하세요";
+/* The Mac's 改用%@重新整理 with spaces around the language (notes_window.py); same translations. */
+"改用 %@ 重新整理" = "%@로 다시 작성";