多语言适配:赠送礼物失败提示文案

This commit is contained in:
max
2024-04-19 18:24:16 +08:00
parent 87052c52c1
commit 191990426a
4 changed files with 12 additions and 1 deletions

View File

@@ -714,7 +714,12 @@ open class BaseRoomFragment<V : IBaseRoomView?, P : BaseRoomPresenter<V>?> :
.compose(bindUntilEvent(FragmentEvent.DESTROY))
.doOnError {
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 ->

View File

@@ -5260,4 +5260,6 @@
<string name="gift_message_04">,ظهرت</string>
<string name="gift_message_05">هدية من العملات الذهبية</string>
<string name="gift_message_06">تقديم إلى </string>
<string name="send_gift_vip_level_tips">لم تصل إلى المستوى النبيل المطلوب لإرسال %1$s. المستوى النبيل المطلوب: %2$s</string>
</resources>

View File

@@ -5202,4 +5202,6 @@
<string name="gift_message_04">,爆出了</string>
<string name="gift_message_05">金幣的禮物</string>
<string name="gift_message_06">送给</string>
<string name="send_gift_vip_level_tips">尚未達到贈送%1$s所需貴族等級,所需貴族等級:%2$s</string>
</resources>

View File

@@ -5237,6 +5237,8 @@
<string name="gift_message_04">, triggering a</string>
<string name="gift_message_05">gift of gold coins</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>