調整中英文

This commit is contained in:
zlzw 2023-09-06 15:27:03 +08:00
parent a4895df622
commit 37605f46b7
2 changed files with 8 additions and 4 deletions

View File

@ -249,6 +249,13 @@ public class SocketRyClient {
if (map.getString("ct").contains("堅決維護青少年群體精神文明健康") || map.getString("ct").contains("click to register if you like. pdlive conducts")) {
systemChatMessage(map.getString("ct"));
} else {
if (!WordUtil.isNewZh() && map.getString("ct").contains("退出比賽") && map.getString("ct").contains("獲得勝利")) {
String ctTmp = map.getString("ct");
ctTmp = ctTmp.replace("由於", "Due to")
.replace("退出比賽", "withdrawing from the competition")
.replace("獲得勝利", "won");
map.put("ct", ctTmp);
}
systemChatMessage2(map.getString("ct"));
}

View File

@ -988,10 +988,7 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
if (!isPk) {
return;
}
String ct = "由於" + uname + "退出比賽," + pkname + "獲得勝利";
if(!WordUtil.isNewZh()){
ct= "because" + uname + "To leave a race," + pkname + "win";
}
String ct = "由於 " + uname + " 退出比賽," + pkname + " 獲得勝利";
SocketSendBean seed_msg = new SocketSendBean()
.param("_method_", Constants.SOCKET_SYSTEM)