From 84f6f0fd1f27568133848838f3073189f492710f Mon Sep 17 00:00:00 2001 From: jiahao <283739569@qq.com> Date: Thu, 16 Apr 2020 15:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=20=E4=BA=BA=E5=B7=A5=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/chat/ChatPageItem.dart | 7 ++----- lib/chat/group_chat_item.dart | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/chat/ChatPageItem.dart b/lib/chat/ChatPageItem.dart index b72b982..4493220 100644 --- a/lib/chat/ChatPageItem.dart +++ b/lib/chat/ChatPageItem.dart @@ -1098,11 +1098,8 @@ class _ChatPageItemState extends State }); } else if (transTag == 5 ) { //人工翻译失败 - String str =''; - if(transTag == 5){ - str= '翻译失败'; - } - userTranslateWidget = _translateItemWidget(0xe670, str, null); + + userTranslateWidget = _translateItemWidget(0xe670, I18n.of(context).translate_fail, null); machineTranslateWidget = _translateItemWidget(0xe671, I18n.of(context).robot_retranslate, () { setState(() { diff --git a/lib/chat/group_chat_item.dart b/lib/chat/group_chat_item.dart index f3a6eb2..3b82f1f 100644 --- a/lib/chat/group_chat_item.dart +++ b/lib/chat/group_chat_item.dart @@ -1081,7 +1081,7 @@ class _GroupChatPageItemState extends State }); } else if (transTag == 5 ) { //人工翻译失败 - userTranslateWidget = _translateItemWidget(0xe670, '人工翻译失败', null); + userTranslateWidget = _translateItemWidget(0xe670, I18n.of(context).translate_fail, null); machineTranslateWidget = _translateItemWidget(0xe671, I18n.of(context).robot_retranslate, () { setState(() {