update 中英文
fix 播放器监测
This commit is contained in:
@@ -21,6 +21,7 @@ import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.utils.Bus;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.HintCustomPopup;
|
||||
import com.yunbao.common.views.LiveNewWishGiftPopup;
|
||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||
@@ -149,7 +150,7 @@ public class LiveNewWishListFragment extends BaseFragment {
|
||||
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
ToastUtil.show("修改成功");
|
||||
ToastUtil.show(WordUtil.isNewZh()?"修改成功":"Success");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -181,7 +182,7 @@ public class LiveNewWishListFragment extends BaseFragment {
|
||||
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
ToastUtil.show("修改成功");
|
||||
ToastUtil.show(WordUtil.isNewZh()?"修改成功":"Success");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -200,7 +201,7 @@ public class LiveNewWishListFragment extends BaseFragment {
|
||||
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
ToastUtil.show("修改成功");
|
||||
ToastUtil.show(WordUtil.isNewZh()?"修改成功":"Success");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -6,6 +6,7 @@ import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -100,7 +101,11 @@ public class IMRTCManager {
|
||||
public void onSuccess() {
|
||||
callback.onSuccess();
|
||||
if (!RandomPkManager.getInstance().isRandomModel()) {
|
||||
ToastUtil.show("发起邀请成功");
|
||||
if(WordUtil.isNewZh()) {
|
||||
ToastUtil.show("发起邀请成功");
|
||||
}else{
|
||||
ToastUtil.show("successful");
|
||||
}
|
||||
}
|
||||
requestUid.add(liveUid);
|
||||
startRequestTimeoutTask(liveUid);
|
||||
@@ -109,7 +114,11 @@ public class IMRTCManager {
|
||||
@Override
|
||||
public void onFailed(RTCErrorCode errorCode) {
|
||||
if (!RandomPkManager.getInstance().isRandomModel()) {
|
||||
ToastUtil.show("邀请失败 " + errorCode.getValue());
|
||||
if(WordUtil.isNewZh()) {
|
||||
ToastUtil.show("邀请失败 " + errorCode.getValue());
|
||||
}else{
|
||||
ToastUtil.show("invite failed:" +errorCode.getValue());
|
||||
}
|
||||
}
|
||||
if (RandomPkManager.getInstance().isRequestPk()) {
|
||||
RandomPkManager.getInstance().setPkStatus(RandomPkManager.PK_STATUS_REFUSE);
|
||||
|
||||
@@ -30,7 +30,7 @@ public class NobleUtil {
|
||||
case 1:return "男爵";
|
||||
case 2:return "子爵";
|
||||
case 3:return "侯爵";
|
||||
case 4:return "公爵";
|
||||
case 4:return "公爵";
|
||||
case 5:return "国王";
|
||||
case 6:return "皇帝";
|
||||
case 7:return "超皇";
|
||||
@@ -39,15 +39,15 @@ public class NobleUtil {
|
||||
}
|
||||
public static String nobleIdToStringNameForEn(int id){
|
||||
switch (id){
|
||||
case 1:return "baron";
|
||||
case 2:return "viscount";
|
||||
case 3:return "marquis";
|
||||
case 4:return "duke";
|
||||
case 5:return "king";
|
||||
case 6:return "emperor";
|
||||
case 7:return "SuperEmperor";
|
||||
case 1:return "Baron";
|
||||
case 2:return "Viscount";
|
||||
case 3:return "Marquis";
|
||||
case 4:return "Duke";
|
||||
case 5:return "King";
|
||||
case 6:return "Emperor";
|
||||
case 7:return "SuperKing";
|
||||
}
|
||||
return "Not Opened";
|
||||
return "Not opened";
|
||||
}
|
||||
public static int getNobleBackgroundId(int id){
|
||||
switch (id){
|
||||
|
||||
@@ -43,7 +43,7 @@ public class ToastUtil {
|
||||
|
||||
|
||||
public static void show(int res) {
|
||||
show(WordUtil.getString(res));
|
||||
show(WordUtil.getNewString(res));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,6 +14,7 @@ import com.lxj.xpopup.animator.PopupAnimator;
|
||||
import com.lxj.xpopup.core.CenterPopupView;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||
|
||||
/**
|
||||
@@ -85,7 +86,7 @@ public class InputCustomPopup extends CenterPopupView {
|
||||
public void onViewClicks() {
|
||||
String textContent = content.getText().toString();
|
||||
if (TextUtils.isEmpty(textContent)) {
|
||||
ToastUtil.show("输入内容不可为空");
|
||||
ToastUtil.show(WordUtil.isNewZh()?"输入内容不可为空":"The input cannot be empty");
|
||||
return;
|
||||
}
|
||||
if (listener != null) {
|
||||
|
||||
@@ -32,6 +32,7 @@ import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.utils.Bus;
|
||||
import com.yunbao.common.utils.DpUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
@@ -332,7 +333,7 @@ public class LiveNewWishListPopup extends BottomPopupView {
|
||||
setWishlistV2(type, gson.toJson(wishList2), new HttpCallback<String>() {
|
||||
@Override
|
||||
public void onSuccess(String data) {
|
||||
ToastUtil.show("修改成功");
|
||||
ToastUtil.show(WordUtil.isNewZh()?"修改成功":"Success");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1084,7 +1084,7 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="live_become_fans_medal">One-time gift ≥2000 diamonds), can obtain fan privilege yo</string>
|
||||
<string name="live_go_charge">Top up</string>
|
||||
<string name="live_user_card_level">User level</string>
|
||||
<string name="live_noble_level_anchor">aristocracy</string>
|
||||
<string name="live_noble_level_anchor">Noble\nLevel</string>
|
||||
<string name="live_noble_fens_anchor">Fan club</string>
|
||||
<string name="live_anchor_open_mic">Voice connection is not enabled</string>
|
||||
<string name="live_honor_number_anchor">Wall of honor</string>
|
||||
@@ -1320,4 +1320,6 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="live_send_red_packge_fans_group">Join a fans club</string>
|
||||
<string name="live_pk_link_error">Sorry, your network failed to pull the other party.</string>
|
||||
<string name="live_user_dialog_tips">say something</string>
|
||||
<string name="live_free_pk_empty_tips">No match was found</string>
|
||||
<string name="live_gift_dialog_select_add">Add</string>
|
||||
</resources>
|
||||
|
||||
@@ -1317,4 +1317,6 @@
|
||||
|
||||
<string name="live_pk_link_error">抱歉,您的網絡不佳拉取對方畫面失敗</string>
|
||||
<string name="live_user_dialog_tips">這家夥很懶,什麽都沒留下</string>
|
||||
<string name="live_free_pk_empty_tips">沒有找到匹配結果~</string>
|
||||
<string name="live_gift_dialog_select_add">確定添加</string>
|
||||
</resources>
|
||||
|
||||
@@ -1316,4 +1316,6 @@
|
||||
|
||||
<string name="live_pk_link_error">抱歉,您的網絡不佳拉取對方畫面失敗</string>
|
||||
<string name="live_user_dialog_tips">這家夥很懶,什麽都沒留下</string>
|
||||
<string name="live_free_pk_empty_tips">沒有找到匹配結果~</string>
|
||||
<string name="live_gift_dialog_select_add">確定添加</string>
|
||||
</resources>
|
||||
|
||||
@@ -1316,4 +1316,6 @@
|
||||
<string name="live_send_red_packge_fans_group">加入粉絲團</string>
|
||||
<string name="live_pk_link_error">抱歉,您的網絡不佳拉取對方畫面失敗</string>
|
||||
<string name="live_user_dialog_tips">這家夥很懶,什麽都沒留下</string>
|
||||
<string name="live_free_pk_empty_tips">沒有找到匹配結果~</string>
|
||||
<string name="live_gift_dialog_select_add">確定添加</string>
|
||||
</resources>
|
||||
|
||||
@@ -1084,7 +1084,7 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="live_become_fans_medal">One-time gift ≥2000 diamonds), can obtain fan privilege yo</string>
|
||||
<string name="live_go_charge">Top up</string>
|
||||
<string name="live_user_card_level">User level</string>
|
||||
<string name="live_noble_level_anchor">aristocracy</string>
|
||||
<string name="live_noble_level_anchor">Noble\nLevel</string>
|
||||
<string name="live_noble_fens_anchor">Fan club</string>
|
||||
<string name="live_anchor_open_mic">Voice connection is not enabled</string>
|
||||
<string name="live_honor_number_anchor">Wall of honor</string>
|
||||
@@ -1323,4 +1323,6 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="live_pk_link_error">Sorry, your network failed to pull the other party.</string>
|
||||
|
||||
<string name="live_user_dialog_tips">say something</string>
|
||||
<string name="live_free_pk_empty_tips">No match was found</string>
|
||||
<string name="live_gift_dialog_select_add">Add</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user