修正多语言当中的硬编码,更新七国语言

(cherry picked from commit e72e682f526651453dc44b2db78a5df8ba70a733)
This commit is contained in:
2025-11-01 03:34:43 -07:00
committed by speakeloudest
parent 8b982d1ba8
commit 18ec3e36fc
21 changed files with 273 additions and 2627 deletions
@@ -916,17 +916,17 @@ class KRUserInfoView extends GetView<KRUserInfoController> {
}
if (!launched) {
KRCommonUtil.kr_showToast("尝试使用浏览器打开");
KRCommonUtil.kr_showToast("common.tryBrowser".tr);
// 降级使用浏览器打开
try {
final Uri webUrl = Uri.parse(tgUrl);
if (await canLaunchUrl(webUrl)) {
await launchUrl(webUrl, mode: LaunchMode.externalApplication);
} else {
KRCommonUtil.kr_showToast("无法打开浏览器");
KRCommonUtil.kr_showToast("common.cannotOpenBrowser".tr);
}
} catch (e) {
KRCommonUtil.kr_showToast("打开链接失败,请稍后重试");
KRCommonUtil.kr_showToast("common.openLinkFailed".tr);
}
}
} else {
@@ -936,10 +936,10 @@ class KRUserInfoView extends GetView<KRUserInfoController> {
if (await canLaunchUrl(webUrl)) {
await launchUrl(webUrl);
} else {
KRCommonUtil.kr_showToast("无法打开Telegram链接");
KRCommonUtil.kr_showToast("common.cannotOpenTelegram".tr);
}
} catch (e) {
KRCommonUtil.kr_showToast("打开链接失败,请稍后重试");
KRCommonUtil.kr_showToast("common.openLinkFailed".tr);
}
}
break;