修正多语言当中的硬编码,更新七国语言
(cherry picked from commit e72e682f526651453dc44b2db78a5df8ba70a733)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user