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(android): right after a meeting, AI Service says the service was used in a meeting just now instead of now

wquguru6f4f85d1bad1
diff --git a/android/app/src/main/kotlin/com/wquguru/cicada/AiCheckViews.kt b/android/app/src/main/kotlin/com/wquguru/cicada/AiCheckViews.kt
index 99b2823..5648aad 100644
--- a/android/app/src/main/kotlin/com/wquguru/cicada/AiCheckViews.kt
+++ b/android/app/src/main/kotlin/com/wquguru/cicada/AiCheckViews.kt
@@ -133,7 +133,9 @@ object AiCheckViews {
fun summary(c: AICheck): String? {
if (!c.passed || c.busy) return null
val at = c.at
- if (c.passive && at != null) return L("正常") + " · " + LF("%@ 开会时用过", relative(at))
+ if (c.passive && at != null) return L("正常") + " · " +
+ // Under a minute ICU says "now", which reads as in use right now: "just now", as on Linux.
+ (if (System.currentTimeMillis() - at < 60_000) L("刚刚开会时用过") else LF("%@ 开会时用过", relative(at)))
val text = (c[StepID.Text] as? State.Ok)?.seconds
val hear = (c[StepID.Hear] as? State.Ok)?.seconds
val parts = listOfNotNull(text?.let { LF("文字 %@ 秒", "%.1f".format(Strings.locale, it)) }, hear?.let { LF("听 %@ 秒", "%.1f".format(Strings.locale, it)) })
diff --git a/android/app/src/main/strings/en.lproj/Android.strings b/android/app/src/main/strings/en.lproj/Android.strings
index 721f974..1ad380e 100644
--- a/android/app/src/main/strings/en.lproj/Android.strings
+++ b/android/app/src/main/strings/en.lproj/Android.strings
@@ -223,3 +223,4 @@
"地址要用 https;这台手机和局域网里的服务可以用 http。" = "The address must use https; services on this phone or your local network can use http.";
"没填,用手机的声音" = "Not set: the phone's voice";
"本机和局域网服务可不填" = "Optional on this phone or your local network";
+"刚刚开会时用过" = "used in a meeting just now";
diff --git a/android/app/src/main/strings/ja.lproj/Android.strings b/android/app/src/main/strings/ja.lproj/Android.strings
index f00e782..b19f3e3 100644
--- a/android/app/src/main/strings/ja.lproj/Android.strings
+++ b/android/app/src/main/strings/ja.lproj/Android.strings
@@ -223,3 +223,4 @@
"地址要用 https;这台手机和局域网里的服务可以用 http。" = "アドレスは https にしてください。このスマホやローカルネットワークのサービスは http も使えます。";
"没填,用手机的声音" = "未設定:スマホの声";
"本机和局域网服务可不填" = "このスマホやローカルネットワークでは省略可";
+"刚刚开会时用过" = "さっき会議で使用";
diff --git a/android/app/src/main/strings/ko.lproj/Android.strings b/android/app/src/main/strings/ko.lproj/Android.strings
index f87503a..330bcf1 100644
--- a/android/app/src/main/strings/ko.lproj/Android.strings
+++ b/android/app/src/main/strings/ko.lproj/Android.strings
@@ -223,3 +223,4 @@
"地址要用 https;这台手机和局域网里的服务可以用 http。" = "주소는 https여야 합니다. 이 휴대폰이나 로컬 네트워크의 서비스는 http도 쓸 수 있습니다.";
"没填,用手机的声音" = "설정 안 함: 휴대폰 음성";
"本机和局域网服务可不填" = "이 휴대폰이나 로컬 네트워크에서는 생략 가능";
+"刚刚开会时用过" = "방금 회의에서 사용함";