修改中英文
This commit is contained in:
parent
a25ce2034f
commit
3e5ba2ba19
@ -99,7 +99,7 @@ public class InvitePopDialog extends AbsDialogPopupWindow {
|
||||
list.setAdapter(adapter);
|
||||
initData();
|
||||
link.setText(url.substring(0, 40));
|
||||
info.setText(R.string.dialog_invite_info);
|
||||
info.setText(mContext.getString(R.string.dialog_invite_info));
|
||||
avatar.setImageResource(R.mipmap.ic_launcher);
|
||||
//title.setTextColor(getContext().getResources().getColorStateList(R.drawable.bg_invite_title));
|
||||
title.setText(R.string.dialog_invite_title);
|
||||
|
@ -16,6 +16,7 @@ import com.yunbao.common.event.CheckRemainingBalanceEvent;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.sud.QuickStartGameViewModel;
|
||||
import com.yunbao.common.sud.model.GameConfigModel;
|
||||
import com.yunbao.common.sud.state.SudMGPMGState;
|
||||
@ -27,6 +28,7 @@ import org.greenrobot.eventbus.Subscribe;
|
||||
import org.greenrobot.eventbus.ThreadMode;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
public class SudGameActivity extends AbsActivity {
|
||||
private FrameLayout gameContainer;
|
||||
@ -124,13 +126,21 @@ public class SudGameActivity extends AbsActivity {
|
||||
if (data.getGoldenBeanRemainingBalance() == 1) {
|
||||
gameViewModel.sudFSTAPPDecorator.notifyAPPCommonSelfIn(true, event.getSeatIndex(), true, 1);
|
||||
} else {
|
||||
ToastUtil.show("钱不够,细狗");
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("金豆不够 ");
|
||||
}else {
|
||||
ToastUtil.show("Insufficient money ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show("钱不够,细狗");
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("金豆不够 ");
|
||||
}else {
|
||||
ToastUtil.show("Insufficient money ");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.lxj.xpopup.core.CenterPopupView;
|
||||
import com.yunbao.common.Constants;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.bean.LiveClassBean;
|
||||
import com.yunbao.common.bean.LiveRoomTypeBean;
|
||||
@ -14,6 +15,7 @@ import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||
|
||||
public class LiveOpenCustomPopup extends CenterPopupView {
|
||||
@ -36,7 +38,12 @@ public class LiveOpenCustomPopup extends CenterPopupView {
|
||||
|
||||
public LiveOpenCustomPopup setLiveRoomTypeBean(LiveRoomTypeBean liveRoomTypeBean) {
|
||||
this.liveRoomTypeBean = liveRoomTypeBean;
|
||||
if (liveRoomTypeBean.getId()== Constants.LIVE_TYPE_PWD){
|
||||
textLiveRoomType.setText(WordUtil.isNewZh() ? "密碼房" : "password room");
|
||||
}else {
|
||||
textLiveRoomType.setText(liveRoomTypeBean.getName());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -73,8 +80,12 @@ public class LiveOpenCustomPopup extends CenterPopupView {
|
||||
textLiveClass.setText(classBean.getName());
|
||||
}
|
||||
if (liveRoomTypeBean != null) {
|
||||
if (liveRoomTypeBean.getId()== Constants.LIVE_TYPE_PWD){
|
||||
textLiveRoomType.setText(WordUtil.isNewZh() ? "密碼房" : "password room");
|
||||
}else {
|
||||
textLiveRoomType.setText(liveRoomTypeBean.getName());
|
||||
}
|
||||
}
|
||||
setSelectClarity(selectClarity);
|
||||
//關閉彈窗
|
||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_open_cancel), () -> dismiss());
|
||||
|
@ -29,6 +29,8 @@ import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
import org.greenrobot.eventbus.ThreadMode;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* sub半屏游戏弹窗
|
||||
*/
|
||||
@ -133,13 +135,22 @@ public class LiveSudGamePopup extends BottomPopupView {
|
||||
if (data.getGoldenBeanRemainingBalance() == 1) {
|
||||
gameViewModel.sudFSTAPPDecorator.notifyAPPCommonSelfIn(true, event.getSeatIndex(), true, 1);
|
||||
} else {
|
||||
ToastUtil.show("钱不够,细狗");
|
||||
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("金豆不够 ");
|
||||
}else {
|
||||
ToastUtil.show("Insufficient money ");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show("钱不够,细狗");
|
||||
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("金豆不够 ");
|
||||
}else {
|
||||
ToastUtil.show("Insufficient money ");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.LiveAnchorMessageCustomPopup;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.activity.LiveRyAnchorActivity;
|
||||
@ -129,10 +130,10 @@ public class LiveNewFunctionDialogFragment extends AbsDialogFragment implements
|
||||
|
||||
if (leave == 0) {
|
||||
((ImageView) mLeaveView.findViewById(R.id.live_tool_leave_img)).setImageResource(R.mipmap.icon_leave);
|
||||
((TextView) mLeaveView.findViewById(R.id.live_tool_leave_text)).setText(R.string.live_zslk);
|
||||
((TextView) mLeaveView.findViewById(R.id.live_tool_leave_text)).setText(mContext.getString(R.string.live_zslk));
|
||||
} else {
|
||||
((ImageView) mLeaveView.findViewById(R.id.live_tool_leave_img)).setImageResource(R.mipmap.icon_leave_p);
|
||||
((TextView) mLeaveView.findViewById(R.id.live_tool_leave_text)).setText(R.string.live_zslk1);
|
||||
((TextView) mLeaveView.findViewById(R.id.live_tool_leave_text)).setText(mContext.getString(R.string.live_zslk1));
|
||||
}
|
||||
mLiveRoomHandler = new LiveRoomHandler();
|
||||
mLiveTimeTextView.setText(StringUtil.getDurationText(mAnchorLiveTime));
|
||||
@ -169,7 +170,7 @@ public class LiveNewFunctionDialogFragment extends AbsDialogFragment implements
|
||||
mFunctionClickListener.onClick(LIVE_FUNC_CAMERA);
|
||||
} else if (id == R.id.live_tool_leave) {
|
||||
if (isPk) {
|
||||
ToastUtil.show("PK中禁止离开");
|
||||
ToastUtil.show(WordUtil.isNewZh()?"PK中禁止离开":"Do not leave in PK");
|
||||
return;
|
||||
}
|
||||
mFunctionClickListener.onClick(LIVE_FUNC_ZSLK);
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
@ -55,7 +56,7 @@
|
||||
android:id="@+id/btn_guard"
|
||||
android:layout_width="88dp"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginStart="25dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:background="@drawable/bg_user_card_guard"
|
||||
android:gravity="center"
|
||||
@ -89,8 +90,8 @@
|
||||
android:layout_marginEnd="14dp"
|
||||
android:src="@mipmap/icon_live_usercard_setting"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toStartOf="@+id/btn_report"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
||||
android:paddingTop="4.33dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingBottom="4.33dp"
|
||||
android:text="我方"
|
||||
android:text="@string/live_link_mic_pk_1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
@ -110,7 +110,7 @@
|
||||
android:paddingTop="4.33dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingBottom="4.33dp"
|
||||
android:text="我方"
|
||||
android:text="@string/live_link_mic_pk_1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
@ -136,7 +136,7 @@
|
||||
android:paddingTop="4.33dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingBottom="4.33dp"
|
||||
android:text="我方"
|
||||
android:text="@string/live_link_mic_pk_1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
|
||||
@ -193,7 +193,7 @@
|
||||
android:paddingTop="4.33dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingBottom="4.33dp"
|
||||
android:text="我方"
|
||||
android:text="@string/live_link_mic_pk_1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
@ -59,11 +59,11 @@ public class RedPacketInfoActivity extends AbsActivity implements View.OnClickLi
|
||||
if (bean.getCurrentStatus() == RedPacketListBean.RED_PACKET_CURRENT_STATUS_SUCCESS) {
|
||||
status.setText(R.string.red_packet_info_status_success);
|
||||
} else {
|
||||
status.setText(R.string.red_packet_info_status_timeout);
|
||||
status.setText(mContext.getString(R.string.red_packet_info_status_timeout));
|
||||
}
|
||||
if (bean.getRedPacketStatus() == 1 && bean.getAmountRefund() == 0) {
|
||||
gold.setVisibility(View.GONE);
|
||||
backAccountText.setText(R.string.red_packet_info_residue_none);
|
||||
backAccountText.setText(mContext.getString(R.string.red_packet_info_residue_none));
|
||||
} else {
|
||||
gold.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ public class UserAvatarSelectActivity extends AbsActivity {
|
||||
super.main();
|
||||
titleView = findViewById(R.id.titleView);
|
||||
submit = findViewById(R.id.send);
|
||||
titleView.setText(R.string.me_edit_avatar_title);
|
||||
titleView.setText(mContext.getString(R.string.me_edit_avatar_title));
|
||||
recyclerView = findViewById(R.id.recyclerView);
|
||||
adapter = new UserAvatarSelectAdapter(mContext);
|
||||
recyclerView.setLayoutManager(new GridLayoutManager(mContext, 3));
|
||||
|
@ -208,14 +208,14 @@ public class MainHomeRemFollLiveAdapter extends RefreshAdapter<LiveBean> {
|
||||
mLiveIco.setImageResource(R.mipmap.icon_main_rest_work);
|
||||
mNum.setVisibility(View.VISIBLE);
|
||||
live_type.setVisibility(View.VISIBLE);
|
||||
mLiveState.setText(R.string.lives_state);
|
||||
mLiveState.setText(mContext.getString(R.string.lives_state));
|
||||
} else {
|
||||
views.setVisibility(View.VISIBLE);
|
||||
//休息中
|
||||
mType.setImageResource(MainIconUtil.getLiveTypeIcon(Constants.LIVE_TYPE_RESTING));
|
||||
mType.setVisibility(View.GONE);
|
||||
mLiveIco.setImageResource(R.mipmap.icon_main_rest_spot);
|
||||
mLiveState.setText(R.string.rest_state);
|
||||
mLiveState.setText(mContext.getString(R.string.rest_state));
|
||||
live_type.setVisibility(View.GONE);
|
||||
mNum.setVisibility(View.GONE);
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ public class MainListAdapter extends RefreshAdapter<ListBean> {
|
||||
itemView.setTag(bean);
|
||||
mOrder.setText("" + (position + 4));
|
||||
if (bean.isHide()) {
|
||||
mName.setText(R.string.mystery_man);
|
||||
mName.setText(mContext.getString(R.string.mystery_man));
|
||||
ImgLoader.display(mContext, R.mipmap.hide, mAvatar);
|
||||
mSex.setVisibility(View.GONE);
|
||||
} else {
|
||||
|
@ -368,7 +368,7 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
|
||||
getItem(position, mVotes1, mVotes2, mVotes3).setText(bean.getTotalCoinFormat());
|
||||
getItem(position, diamond1, diamond2, diamond3).setVisibility(View.VISIBLE);
|
||||
if (bean.isHide()) {
|
||||
getItem(position, mName1, mName2, mName3).setText(R.string.mystery_man);
|
||||
getItem(position, mName1, mName2, mName3).setText(mContext.getString(R.string.mystery_man));
|
||||
ImgLoader.display(mContext, R.mipmap.hide, getItem(position, mAvatar1, mAvatar2, mAvatar3));
|
||||
getItem(position, mSex1, mSex2, mSex3).setVisibility(View.GONE);
|
||||
|
||||
|
@ -112,14 +112,14 @@ public class MainHomeLiveItemViewHolder extends RecyclerView.ViewHolder {
|
||||
mLiveIco.setImageResource(R.mipmap.icon_main_rest_work);
|
||||
mNum.setVisibility(View.VISIBLE);
|
||||
liveType.setVisibility(View.VISIBLE);
|
||||
mLiveState.setText(R.string.lives_state);
|
||||
mLiveState.setText(mContext.getString(R.string.lives_state));
|
||||
} else {
|
||||
views.setVisibility(View.VISIBLE);
|
||||
//休息中
|
||||
mType.setImageResource(MainIconUtil.getLiveTypeIcon(Constants.LIVE_TYPE_RESTING));
|
||||
mType.setVisibility(View.GONE);
|
||||
mLiveIco.setImageResource(R.mipmap.icon_main_rest_spot);
|
||||
mLiveState.setText(R.string.rest_state);
|
||||
mLiveState.setText(mContext.getString(R.string.rest_state));
|
||||
liveType.setVisibility(View.GONE);
|
||||
mNum.setVisibility(View.GONE);
|
||||
}
|
||||
|
@ -102,14 +102,14 @@ public class SearchRecommendBodyItemViewHolder extends RecyclerView.ViewHolder {
|
||||
mLiveIco.setImageResource(R.mipmap.icon_main_rest_work);
|
||||
mNum.setVisibility(View.VISIBLE);
|
||||
liveType.setVisibility(View.VISIBLE);
|
||||
mLiveState.setText(R.string.lives_state);
|
||||
mLiveState.setText(mContext.getString(R.string.lives_state));
|
||||
} else {
|
||||
views.setVisibility(View.VISIBLE);
|
||||
//休息中
|
||||
mType.setImageResource(MainIconUtil.getLiveTypeIcon(Constants.LIVE_TYPE_RESTING));
|
||||
mType.setVisibility(View.GONE);
|
||||
mLiveIco.setImageResource(R.mipmap.icon_main_rest_spot);
|
||||
mLiveState.setText(R.string.rest_state);
|
||||
mLiveState.setText(mContext.getString(R.string.rest_state));
|
||||
liveType.setVisibility(View.GONE);
|
||||
mNum.setVisibility(View.GONE);
|
||||
}//防抖
|
||||
|
@ -550,7 +550,7 @@ public class UserHomeViewHolder extends AbsLivePageViewHolder implements AppBarL
|
||||
}
|
||||
if (mBtnBlack != null) {
|
||||
if (isAttention == 1) {
|
||||
mBtnBlack.setText(R.string.black);
|
||||
mBtnBlack.setText(mContext.getString(R.string.black));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user