Last active
September 21, 2017 10:17
-
-
Save kuno/285e46c34f22019e60c64844182c3d25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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