修改中英文

This commit is contained in:
18401019693 2023-10-13 14:09:34 +08:00
parent c5d537fb4d
commit 52e199b901
22 changed files with 54 additions and 55 deletions

View File

@ -61,6 +61,7 @@
android:background="@drawable/bg_live_sud_list_input_home" android:background="@drawable/bg_live_sud_list_input_home"
android:hint="@string/interactive_game_create_room_name_input" android:hint="@string/interactive_game_create_room_name_input"
android:paddingStart="12dp" android:paddingStart="12dp"
android:singleLine="true"
android:paddingTop="9dp" android:paddingTop="9dp"
android:paddingBottom="9dp" android:paddingBottom="9dp"
android:textColor="#E6000000" android:textColor="#E6000000"

View File

@ -9,9 +9,9 @@ ext {
] ]
manifestPlaceholders = [ manifestPlaceholders = [
// //
// serverHost : "https://napi.yaoulive.com", serverHost : "https://napi.yaoulive.com",
// //
serverHost : " https://ceshi.yaoulive.com", // serverHost : " https://ceshi.yaoulive.com",

View File

@ -1124,8 +1124,7 @@ public class LiveAudienceActivity extends LiveActivity {
break; break;
case GUARD: case GUARD:
if (event.getObject() == null) { if (event.getObject() == null) {
openNewGuardListWindow(mContext instanceof LiveRyAnchorActivity); openNewGuardListWindow(mContext instanceof LiveRyAnchorActivity); } else {
} else {
openNewBuyGuardWindow(true); openNewBuyGuardWindow(true);
} }
break; break;

View File

@ -28,7 +28,6 @@ import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.view.animation.Animation; import android.view.animation.Animation;
import android.view.animation.AnimationUtils; import android.view.animation.AnimationUtils;
import android.widget.FrameLayout;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
@ -40,7 +39,6 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.makeramen.roundedimageview.RoundedImageView; import com.makeramen.roundedimageview.RoundedImageView;
import com.umeng.analytics.MobclickAgent;
import com.yunbao.common.CommonAppConfig; import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.Constants; import com.yunbao.common.Constants;
import com.yunbao.common.bean.IMLoginModel; import com.yunbao.common.bean.IMLoginModel;
@ -304,8 +302,8 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
} }
SpannableStringBuilder builder = new SpannableStringBuilder(); SpannableStringBuilder builder = new SpannableStringBuilder();
if (bean.getType() == -3) { if (bean.getType() == -3) {
String str1 = "整蠱來了! "; String str1 = WordUtil.isNewZh() ? "整蠱來了! " : "Pranks are coming";
String str2 = ""; String str2 = WordUtil.isNewZh() ? "" : "too";
builder.append(str1); builder.append(str1);
int length = builder.length(); int length = builder.length();
builder.append(bean.getUserNiceName()); builder.append(bean.getUserNiceName());
@ -314,11 +312,11 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
int length2 = builder.length(); int length2 = builder.length();
builder.append(bean.getAnchorName()); builder.append(bean.getAnchorName());
builder.setSpan(new ForegroundColorSpan(0xFF73FFFF), length2, length2 + bean.getAnchorName().length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); builder.setSpan(new ForegroundColorSpan(0xFF73FFFF), length2, length2 + bean.getAnchorName().length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
builder.append("發出了 " + bean.getContent()); builder.append(WordUtil.isNewZh() ? "發出了 " : "Sent out " + bean.getContent());
mTextView.setText(builder); mTextView.setText(builder);
} else if (bean.getType() == -4) { } else if (bean.getType() == -4) {
String str1 = "成功拯救了 "; String str1 = WordUtil.isNewZh() ? "成功拯救了 " : "Succeeded in saving";
String str2 = "免除了 "; String str2 = WordUtil.isNewZh() ? "免除了 " : "Exempt from";
int length = builder.length(); int length = builder.length();
builder.append(bean.getMedal()); builder.append(bean.getMedal());
builder.setSpan(new ForegroundColorSpan(0xFF73FFFF), length, length + bean.getMedal().length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); builder.setSpan(new ForegroundColorSpan(0xFF73FFFF), length, length + bean.getMedal().length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
@ -326,7 +324,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
int length2 = builder.length(); int length2 = builder.length();
builder.append(bean.getAnchorName()); builder.append(bean.getAnchorName());
builder.setSpan(new ForegroundColorSpan(0xFF73FFFF), length2, length2 + bean.getAnchorName().length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); builder.setSpan(new ForegroundColorSpan(0xFF73FFFF), length2, length2 + bean.getAnchorName().length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
builder.append(str2 + bean.getUserNiceName() + "發起的" + bean.getContent()); builder.append(str2 + bean.getUserNiceName() + (WordUtil.isNewZh() ? "發出了 " : "Sent out ") + bean.getContent());
mTextView.setText(builder); mTextView.setText(builder);
} else if (bean.getType() == -5) { } else if (bean.getType() == -5) {
mBg.setBackground(null); mBg.setBackground(null);
@ -343,8 +341,8 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
// mBg.setBackgroundResource(R.drawable.bg_live_chat_item); // mBg.setBackgroundResource(R.drawable.bg_live_chat_item);
new LoadDian9TuUtil().loadDian9TuAssets(mContext, mBg, 1); new LoadDian9TuUtil().loadDian9TuAssets(mContext, mBg, 1);
} }
String str1 = "火力四射,魅力無限!感謝"; String str1 = WordUtil.isNewZh() ? "火力四射,魅力無限!感謝" : "Full of firepowerUnlimited charm!";
String str2 = "為本直播間加成熱度"; String str2 = WordUtil.isNewZh() ? "為本直播間加成熱度":"Thank you for adding popularity to this live room";
SpannableStringBuilder builder = new SpannableStringBuilder(); SpannableStringBuilder builder = new SpannableStringBuilder();
builder.append(str1); builder.append(str1);
int length = builder.length(); int length = builder.length();
@ -363,8 +361,8 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
// mBg.setBackgroundResource(R.drawable.bg_live_chat_item); // mBg.setBackgroundResource(R.drawable.bg_live_chat_item);
new LoadDian9TuUtil().loadDian9TuAssets(mContext, mBg, 1); new LoadDian9TuUtil().loadDian9TuAssets(mContext, mBg, 1);
} }
String str1 = "甜蜜不停,愛意不斷!恭喜"; String str1 = WordUtil.isNewZh() ? "甜蜜不停,愛意不斷!恭喜" : "Sweetness never stops, love never stops!";
String str2 = "在甜蜜約會中搶購到了"; String str2 = WordUtil.isNewZh() ? "在甜蜜約會中搶購到了" : "who is on a sweet date for grabbing ";
String str3 = "!"; String str3 = "!";
SpannableStringBuilder builder = new SpannableStringBuilder(); SpannableStringBuilder builder = new SpannableStringBuilder();
builder.append(str1); builder.append(str1);

View File

@ -145,7 +145,6 @@ public class LiveNewGuardBuyDialogFragment extends AbsDialogFragment implements
mBack = mRootView.findViewById(R.id.guard_back); mBack = mRootView.findViewById(R.id.guard_back);
relativeLayout = mRootView.findViewById(R.id.guard_relativeLayout); relativeLayout = mRootView.findViewById(R.id.guard_relativeLayout);
//iconCover.setImageResource(R.drawable.guardian_img_wings);
mBtnBuy.setOnClickListener(this); mBtnBuy.setOnClickListener(this);
submit.setOnClickListener(this); submit.setOnClickListener(this);
@ -226,7 +225,7 @@ public class LiveNewGuardBuyDialogFragment extends AbsDialogFragment implements
int guardType = mLiveGuardInfo.getMyGuardType(); int guardType = mLiveGuardInfo.getMyGuardType();
if (guardType == Constants.GUARD_TYPE_NONE) { if (guardType == Constants.GUARD_TYPE_NONE) {
if (isEmpty) { if (isEmpty) {
iconCover.setImageResource(R.drawable.guardian_img_wings); iconCover.setImageResource(R.mipmap.guardian_img_wings);
userIconOne.setVisibility(View.GONE); userIconOne.setVisibility(View.GONE);
userIconTwo.setVisibility(View.GONE); userIconTwo.setVisibility(View.GONE);
} else { } else {
@ -237,9 +236,6 @@ public class LiveNewGuardBuyDialogFragment extends AbsDialogFragment implements
userIconTwo.setVisibility(View.VISIBLE); userIconTwo.setVisibility(View.VISIBLE);
} }
// iconCover.setBackgroundResource(R.drawable.guardian_img_wings);
buy1.setVisibility(View.VISIBLE); buy1.setVisibility(View.VISIBLE);
buy2.setVisibility(View.GONE); buy2.setVisibility(View.GONE);
} else { } else {

View File

@ -189,7 +189,7 @@ public class LiveNewGuardListDialogFragment extends AbsDialogFragment implements
userLayout.setVisibility(View.INVISIBLE); userLayout.setVisibility(View.INVISIBLE);
}else { }else {
GuardUserBean bean = list.get(0); GuardUserBean bean = list.get(0);
giftSvga.setImageResource(R.drawable.guardian_img_wings_p); giftSvga.setImageResource(R.mipmap.guardian_img_wings_p);
ImgLoader.display(mContext, bean.getAvatar(), guardIcon); ImgLoader.display(mContext, bean.getAvatar(), guardIcon);
guardIcon.setVisibility(View.VISIBLE); guardIcon.setVisibility(View.VISIBLE);
userName.setText(bean.getUserNiceName()); userName.setText(bean.getUserNiceName());

View File

@ -11,8 +11,8 @@ import com.yunbao.common.CommonAppContext;
import com.yunbao.common.Constants; import com.yunbao.common.Constants;
import com.yunbao.common.bean.UserBean; import com.yunbao.common.bean.UserBean;
import com.yunbao.common.http.HttpCallback; import com.yunbao.common.http.HttpCallback;
import com.yunbao.live.R;
import com.yunbao.common.http.LiveHttpUtil; import com.yunbao.common.http.LiveHttpUtil;
import com.yunbao.live.R;
/** /**
* Created by cxf on 2018/10/9. * Created by cxf on 2018/10/9.
@ -364,7 +364,7 @@ public class SocketChatUtil {
.param("uid", u.getId()) .param("uid", u.getId())
.param("touid", toUid) .param("touid", toUid)
.param("toname", toName) .param("toname", toName)
.param("ct", toName +CommonAppContext.sInstance.getBaseContext().getString(type == 0 ? R.string.live_shut : R.string.live_shut_2)); .param("ct", toName + (type == 0 ? "被永久禁言(Forbidden forever)" : "被本場禁言(Forbidden by this scene)"));
msg.create(); msg.create();
V2TIMManager.getInstance().sendGroupTextMessage(msg.mResult.toString(), "g" + mLiveUid, V2TIMMessage.V2TIM_PRIORITY_NORMAL, new V2TIMSendCallback<V2TIMMessage>() { V2TIMManager.getInstance().sendGroupTextMessage(msg.mResult.toString(), "g" + mLiveUid, V2TIMMessage.V2TIM_PRIORITY_NORMAL, new V2TIMSendCallback<V2TIMMessage>() {
@Override @Override

View File

@ -9,11 +9,11 @@ import com.yunbao.common.Constants;
import com.yunbao.common.bean.IMLoginModel; import com.yunbao.common.bean.IMLoginModel;
import com.yunbao.common.bean.UserBean; import com.yunbao.common.bean.UserBean;
import com.yunbao.common.http.HttpCallback; import com.yunbao.common.http.HttpCallback;
import com.yunbao.common.http.LiveHttpUtil;
import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.manager.IMLoginManager;
import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.utils.ToastUtil;
import com.yunbao.common.utils.WordUtil; import com.yunbao.common.utils.WordUtil;
import com.yunbao.live.R; import com.yunbao.live.R;
import com.yunbao.common.http.LiveHttpUtil;
import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.EventBus;
@ -218,6 +218,7 @@ public class SocketRyChatUtil {
public static void sendDanmuMessage(String mLiveUid, String danmuToken) { public static void sendDanmuMessage(String mLiveUid, String danmuToken) {
sendDanmuMessage(mLiveUid, danmuToken, 0); sendDanmuMessage(mLiveUid, danmuToken, 0);
} }
public static void sendDanmuMessage(String mLiveUid, String danmuToken, int fansLevel) { public static void sendDanmuMessage(String mLiveUid, String danmuToken, int fansLevel) {
UserBean u = CommonAppConfig.getInstance().getUserBean(); UserBean u = CommonAppConfig.getInstance().getUserBean();
if (u == null) { if (u == null) {
@ -369,7 +370,7 @@ public class SocketRyChatUtil {
.param("uid", u.getId()) .param("uid", u.getId())
.param("touid", toUid) .param("touid", toUid)
.param("toname", toName) .param("toname", toName)
.param("ct", toName + CommonAppContext.sInstance.getBaseContext().getString(R.string.live_kicked)); .param("ct", toName + "被踢出房間(Kicked out of the room)");
msg.create(); msg.create();
String targetId = "g" + mLiveUid; String targetId = "g" + mLiveUid;
Conversation.ConversationType conversationType = Conversation.ConversationType.CHATROOM; Conversation.ConversationType conversationType = Conversation.ConversationType.CHATROOM;
@ -419,13 +420,13 @@ public class SocketRyChatUtil {
String ct = ""; String ct = "";
switch (type) { switch (type) {
case 0: case 0:
ct = CommonAppContext.sInstance.getBaseContext().getString(R.string.live_shut); ct = "被永久禁言(Forbidden forever)";
break; break;
case 1: case 1:
ct = CommonAppContext.sInstance.getBaseContext().getString(R.string.live_shut_2); ct = "被本場禁言(Forbidden by this scene)";
break; break;
case 2: case 2:
ct = String.format(CommonAppContext.sInstance.getBaseContext().getString(R.string.live_shut_3), time + ""); ct = String.format("被禁言%s分鐘", time + "") + "(" + String.format("Forbidden by %s min", time + "") + ")";
break; break;
} }

View File

@ -399,7 +399,7 @@ public class SocketRyClient {
.setBoxTypeName(map.getString("box_type_name")) .setBoxTypeName(map.getString("box_type_name"))
.setDressName(map.getString("dress_name")) .setDressName(map.getString("dress_name"))
.setGiftNotification(map.getString("gift_notification")) .setGiftNotification(map.getString("gift_notification"))
.setGiftName(map.getString("giftname")) .setGiftName(WordUtil.isNewZh()?map.getString("giftname"):map.getString("giftname_en"))
.setUserNiceName(map.getString("uname")) .setUserNiceName(map.getString("uname"))
.setGiftIcon(map.getString("gifticon")) .setGiftIcon(map.getString("gifticon"))
.setAnchorName(map.getString("ancherName")) .setAnchorName(map.getString("ancherName"))
@ -413,7 +413,7 @@ public class SocketRyClient {
AllServerNotifyEvent allServerNotifyEvent AllServerNotifyEvent allServerNotifyEvent
= new AllServerNotifyEvent() = new AllServerNotifyEvent()
.setUserNiceName(mCt.getString("user_nicename")) .setUserNiceName(mCt.getString("user_nicename"))
.setGiftName(mCt.getString("giftname")) .setGiftName(WordUtil.isNewZh()?map.getString("giftname"):map.getString("giftname_en"))
.setGiftIcon(mCt.getString("gifticon")) .setGiftIcon(mCt.getString("gifticon"))
.setRedPacket(true); .setRedPacket(true);
Bus.get().post(new LiveAudienceEvent() Bus.get().post(new LiveAudienceEvent()

View File

@ -1,5 +1,7 @@
package com.yunbao.live.views; package com.yunbao.live.views;
import static com.yunbao.live.views.LiveRoomViewHolder.bean1;
import android.os.Bundle; import android.os.Bundle;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log; import android.util.Log;
@ -17,13 +19,9 @@ import com.alibaba.fastjson.JSON;
import com.umeng.analytics.MobclickAgent; import com.umeng.analytics.MobclickAgent;
import com.yunbao.common.bean.LiveGiftBean; import com.yunbao.common.bean.LiveGiftBean;
import com.yunbao.common.fragment.BaseFragment; import com.yunbao.common.fragment.BaseFragment;
import com.yunbao.common.manager.IMLoginManager;
import com.yunbao.live.R; import com.yunbao.live.R;
import com.yunbao.live.adapter.LiveGiftFragmentPagerAdapter; import com.yunbao.live.adapter.LiveGiftFragmentPagerAdapter;
import com.yunbao.live.event.LiveGiftItemRefreshEvent;
import com.yunbao.live.event.LiveParcelItemRefreshEvent;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -56,6 +54,12 @@ public class LiveGiftFragment extends BaseFragment {
wishGiftId = bundle.getString("wishGiftId"); wishGiftId = bundle.getString("wishGiftId");
mLiveUid = bundle.getString("mLiveUid"); mLiveUid = bundle.getString("mLiveUid");
type = bundle.getString("type"); type = bundle.getString("type");
// if (bean1 != null && IMLoginManager.get(getContext()).isNewUserGif() && (TextUtils.equals(type, "熱門") || TextUtils.equals(type, "Hot"))) {
// giftJson.add(0, bean1);
// if (wishGiftId == null) {
// wishGiftId = "" + bean1.getId();
// }
// }
pageCount = giftJson.size() / GIFT_COUNT; pageCount = giftJson.size() / GIFT_COUNT;
if (giftJson.size() % GIFT_COUNT > 0) { if (giftJson.size() % GIFT_COUNT > 0) {
pageCount++; pageCount++;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View File

@ -271,7 +271,7 @@
android:layout_marginStart="136dp" android:layout_marginStart="136dp"
android:layout_marginTop="30dp" android:layout_marginTop="30dp"
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:src="@drawable/guardian_img_wings" android:src="@mipmap/guardian_img_wings"
android:visibility="invisible" android:visibility="invisible"
app:riv_oval="true" /> app:riv_oval="true" />
@ -284,7 +284,7 @@
android:layout_marginTop="25dp" android:layout_marginTop="25dp"
android:layout_toEndOf="@+id/guard_imageView" android:layout_toEndOf="@+id/guard_imageView"
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:src="@drawable/guardian_img_wings" android:src="@mipmap/guardian_img_wings"
android:visibility="invisible" android:visibility="invisible"
app:riv_oval="true" /> app:riv_oval="true" />
@ -296,7 +296,7 @@
android:layout_toStartOf="@id/guard_imageView_two" android:layout_toStartOf="@id/guard_imageView_two"
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:src="@drawable/guardian_img_wings" android:src="@mipmap/guardian_img_wings"
android:visibility="invisible" android:visibility="invisible"
app:riv_oval="true" /> app:riv_oval="true" />

View File

@ -195,7 +195,7 @@
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:src="@drawable/guardian_img_wings" android:src="@mipmap/guardian_img_wings"
android:visibility="visible" android:visibility="visible"
app:riv_oval="true" /> app:riv_oval="true" />
@ -204,7 +204,7 @@
android:id="@+id/gift_svga" android:id="@+id/gift_svga"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:src="@drawable/guardian_img_wings" android:src="@mipmap/guardian_img_wings"
android:visibility="visible" android:visibility="visible"
app:autoPlay="true" /> app:autoPlay="true" />

View File

@ -137,7 +137,7 @@
android:id="@+id/gift_svga" android:id="@+id/gift_svga"
android:layout_width="34dp" android:layout_width="34dp"
android:layout_height="34dp" android:layout_height="34dp"
android:src="@drawable/img_guardian_online" android:src="@mipmap/img_guardian_online"
android:visibility="gone" android:visibility="gone"
app:autoPlay="true" /> app:autoPlay="true" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB