多语言适配:赠送礼物失败提示文案
This commit is contained in:
@@ -714,7 +714,12 @@ open class BaseRoomFragment<V : IBaseRoomView?, P : BaseRoomPresenter<V>?> :
|
|||||||
.compose(bindUntilEvent(FragmentEvent.DESTROY))
|
.compose(bindUntilEvent(FragmentEvent.DESTROY))
|
||||||
.doOnError {
|
.doOnError {
|
||||||
if (it is VipLevelNotEnoughException) {
|
if (it is VipLevelNotEnoughException) {
|
||||||
dialogManager.showOkDialog("尚未達到贈送${giftInfo.giftName}所需貴族等級,所需貴族等級:${giftInfo.giftVipInfo?.vipName}")
|
val message = context?.getString(
|
||||||
|
R.string.send_gift_vip_level_tips,
|
||||||
|
giftInfo.giftName ?: "",
|
||||||
|
giftInfo.giftVipInfo?.vipName ?: ""
|
||||||
|
)
|
||||||
|
dialogManager.showOkDialog(message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.subscribe { _, throwable ->
|
.subscribe { _, throwable ->
|
||||||
|
@@ -5260,4 +5260,6 @@
|
|||||||
<string name="gift_message_04">,ظهرت</string>
|
<string name="gift_message_04">,ظهرت</string>
|
||||||
<string name="gift_message_05">هدية من العملات الذهبية</string>
|
<string name="gift_message_05">هدية من العملات الذهبية</string>
|
||||||
<string name="gift_message_06">تقديم إلى </string>
|
<string name="gift_message_06">تقديم إلى </string>
|
||||||
|
|
||||||
|
<string name="send_gift_vip_level_tips">لم تصل إلى المستوى النبيل المطلوب لإرسال %1$s. المستوى النبيل المطلوب: %2$s</string>
|
||||||
</resources>
|
</resources>
|
@@ -5202,4 +5202,6 @@
|
|||||||
<string name="gift_message_04">,爆出了</string>
|
<string name="gift_message_04">,爆出了</string>
|
||||||
<string name="gift_message_05">金幣的禮物</string>
|
<string name="gift_message_05">金幣的禮物</string>
|
||||||
<string name="gift_message_06">送给</string>
|
<string name="gift_message_06">送给</string>
|
||||||
|
|
||||||
|
<string name="send_gift_vip_level_tips">尚未達到贈送%1$s所需貴族等級,所需貴族等級:%2$s</string>
|
||||||
</resources>
|
</resources>
|
@@ -5237,6 +5237,8 @@
|
|||||||
<string name="gift_message_04">, triggering a</string>
|
<string name="gift_message_04">, triggering a</string>
|
||||||
<string name="gift_message_05">gift of gold coins</string>
|
<string name="gift_message_05">gift of gold coins</string>
|
||||||
<string name="gift_message_06">give to</string>
|
<string name="gift_message_06">give to</string>
|
||||||
|
|
||||||
|
<string name="send_gift_vip_level_tips">You have not reached the required noble level to send %1$s. Required noble level: %2$s</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user