Skip to content

Instantly share code, notes, and snippets.

@kuno kuno/name.xml
Last active Sep 21, 2017

Embed
What would you like to do?
<string name="purchase">Purchase</string>
<string name="reload">RELOAD</string>
<string name="confirm_reload">Confirm Reload</string>
<string name="extension_fee">Extension Fee</string>
<string name="transferred_cancel_reload">Cancel Reloading</string>
<string name="transferred_out">Transferred Out</string>
<string name="transferred_in">Transferred In</string>
<string name="transaction_in_store">Store Purchase</string>
<string name="transaction_reload">Reload</string>
<string name="transaction_refund">Refund</string>
<string name="transaction_transferred_out">Transferred Out</string>
<string name="transaction_transferred_in">Transferred In</string>
<string name="transaction_reload_cancelled">Reload Cancelled</string>
<string name="purchase">购买</string>
<string name="reload">充值</string>
<string name="confirm_reload">确认充值</string>
<string name="extension_fee">延期管理费</string>
<string name="transferred_cancel_reload">取消充值</string>
<string name="transferred_out">转出金额</string>
<string name="transferred_in">转入金额</string>
<string name="transaction_in_store">门店消费</string>
<string name="transaction_reload">充值</string>
<string name="transaction_refund">退款</string>
<string name="transaction_transferred_out">转出金额</string>
<string name="transaction_transferred_in">转入金额</string>
<string name="transaction_reload_cancelled">取消充值</string>
// Source: https://github.com/starbucks-china/app-backend/issues/393
val typeStr = if (item.store.toString().trim() in Constants.SPECIAL_LEGAL_ENTITIES || item.type == "延期管理费") {
mContext.getString(R.string.extension_fee)
} else if (item.type == "门店消费") {
mContext.getString(R.string.transaction_in_store)
} else if (item.type == "转入金额") {
mContext.getString(R.string.transferred_in)
} else if (item.type == "转出金额") {
mContext.getString(R.string.transferred_out)
} else if (item.type == "购买") {
mContext.getString(R.string.purchase)
} else if (item.type == "取消充值") {
mContext.getString(R.string.transferred_cancel_reload)
} else if (item.type == "退款") {
mContext.getString(R.string.transaction_refund)
} else {
mContext.getString(R.string.transaction_reload)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.