修改中英文
This commit is contained in:
@@ -88,6 +88,7 @@ import com.yunbao.common.utils.RouteUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.http.LiveHttpUtil;
|
||||
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.main.R;
|
||||
import com.yunbao.main.dialog.LoginTipsDialog;
|
||||
import com.yunbao.main.http.MainHttpUtil;
|
||||
@@ -275,7 +276,7 @@ public class EntryActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(R.string.net_error);
|
||||
ToastUtil.show(WordUtil.isNewZh()?"抱歉!出錯了!":"i \\'m sorry! An error occurred");
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -616,7 +616,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(com.yunbao.live.R.string.net_error);
|
||||
ToastUtil.show(mContext.getString(R.string.net_error));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ public class MainListActivity extends AbsActivity implements OnItemClickListener
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show( R.string.net_error);
|
||||
ToastUtil.show( mContext.getString(R.string.net_error));
|
||||
}
|
||||
});
|
||||
initView();
|
||||
|
||||
@@ -240,7 +240,7 @@ public class MsgSettActivity extends AbsActivity {
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(com.yunbao.live.R.string.net_error);
|
||||
ToastUtil.show(mContext.getString(R.string.net_error));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -444,7 +444,7 @@ public class PDLiveConversationListActivity extends AbsActivity implements View.
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show( R.string.net_error);
|
||||
ToastUtil.show( mContext.getString(R.string.net_error));
|
||||
}
|
||||
});
|
||||
MessageIMManager.get(mContext).setSystemNumber(0);
|
||||
|
||||
@@ -395,7 +395,7 @@ public class SettingActivity extends AbsActivity implements OnItemClickListener<
|
||||
mAdapter.setCacheString(getCacheSize());
|
||||
mAdapter.notifyItemChanged(position);
|
||||
}
|
||||
ToastUtil.show(R.string.setting_clear_cache);
|
||||
ToastUtil.show(mContext.getString(R.string.setting_clear_cache));
|
||||
}
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ public class MsgFollowAdapter extends RecyclerView.Adapter<MsgFollowAdapter.Vh>
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show( R.string.net_error);
|
||||
ToastUtil.show( mContext.getString(R.string.net_error));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class SearchResultsAdapter extends RecyclerView.Adapter {
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(com.yunbao.live.R.string.net_error);
|
||||
ToastUtil.show(R.string.net_error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -123,11 +123,11 @@ public class OneLoginDialog extends AbsDialogFragment {
|
||||
});
|
||||
} else {
|
||||
if (msg.contains("暱稱重複,請重新輸入")) {
|
||||
ToastUtil.show(R.string.edit_one_5);
|
||||
ToastUtil.show(mContext.getString(R.string.edit_one_5));
|
||||
} else if (msg.contains("該邀請碼不存在,請重新輸入")) {
|
||||
ToastUtil.show(R.string.edit_one_6);
|
||||
ToastUtil.show(mContext.getString(R.string.edit_one_6));
|
||||
} else if (msg.contains("暱稱不合法")) {
|
||||
ToastUtil.show(R.string.edit_one_7);
|
||||
ToastUtil.show(mContext.getString(R.string.edit_one_7));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public class SearchRecommendFragment extends BaseFragment {
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show( R.string.net_error);
|
||||
ToastUtil.show(R.string.net_error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ public class SearchResultsItemFragment extends BaseFragment {
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show( R.string.net_error);
|
||||
ToastUtil.show( R.string.net_error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -318,7 +318,7 @@ public class ConversationIMListManager {
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
ToastUtil.show(com.yunbao.live.R.string.net_error);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -394,7 +394,7 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
|
||||
});
|
||||
getItem(position, mItem1, mItem2, mItem3).setOnClickListener(v -> {
|
||||
if (bean.isHide()) {
|
||||
ToastUtil.show(R.string.can_not_go);
|
||||
ToastUtil.show(mContext.getString(R.string.can_not_go));
|
||||
} else {
|
||||
|
||||
if (bean.getIslive() == 1) {
|
||||
|
||||
@@ -124,39 +124,39 @@ public class CashAccountViewHolder extends AbsViewHolder implements View.OnClick
|
||||
if (mKey == Constants.CASH_ACCOUNT_ALI) {
|
||||
account = mEditAliAccount.getText().toString().trim();
|
||||
if (TextUtils.isEmpty(account)) {
|
||||
ToastUtil.show(R.string.cash_input_ali_account);
|
||||
ToastUtil.show(mContext.getString(R.string.cash_input_ali_account));
|
||||
return;
|
||||
}
|
||||
mEditAliAccount.setText("");
|
||||
name = mEditAliName.getText().toString().trim();
|
||||
if (TextUtils.isEmpty(name)) {
|
||||
ToastUtil.show(R.string.cash_input_ali_name);
|
||||
ToastUtil.show(mContext.getString(R.string.cash_input_ali_name));
|
||||
return;
|
||||
}
|
||||
mEditAliName.setText("");
|
||||
} else if (mKey == Constants.CASH_ACCOUNT_WX) {
|
||||
account = mEditWxAccount.getText().toString().trim();
|
||||
if (TextUtils.isEmpty(account)) {
|
||||
ToastUtil.show(R.string.cash_input_wx_account);
|
||||
ToastUtil.show(mContext.getString(R.string.cash_input_wx_account));
|
||||
return;
|
||||
}
|
||||
mEditWxAccount.setText("");
|
||||
} else {
|
||||
account = mEditBankAccount.getText().toString().trim();
|
||||
if (TextUtils.isEmpty(account)) {
|
||||
ToastUtil.show(R.string.cash_input_bank_account);
|
||||
ToastUtil.show(mContext.getString(R.string.cash_input_bank_account));
|
||||
return;
|
||||
}
|
||||
mEditBankAccount.setText("");
|
||||
name = mEditBankUserName.getText().toString().trim();
|
||||
if (TextUtils.isEmpty(account)) {
|
||||
ToastUtil.show(R.string.cash_input_bank_user_name);
|
||||
ToastUtil.show(mContext.getString(R.string.cash_input_bank_user_name));
|
||||
return;
|
||||
}
|
||||
mEditBankUserName.setText("");
|
||||
bank = mEditBankName.getText().toString().trim();
|
||||
if (TextUtils.isEmpty(account)) {
|
||||
ToastUtil.show(R.string.cash_input_bank_name);
|
||||
ToastUtil.show(mContext.getString(R.string.cash_input_bank_name));
|
||||
return;
|
||||
}
|
||||
mEditBankName.setText("");
|
||||
|
||||
Reference in New Issue
Block a user