Verified Commit 4cb41176 authored by Sarath's avatar Sarath
Browse files

Update strings.xml

parent 0d2601fb
......@@ -195,19 +195,19 @@ class WhirlpoolHome : SamouraiActivity() {
var balance = 0L;
when (position) {
0 -> {
binding.whirlpoolAmountCaption.text = "Total Balance"
binding.whirlpoolAmountCaption.text = getString(R.string.total_balance)
whirlPoolHomeViewModel.totalBalance.value?.let {
balance = it
}
}
1 -> {
binding.whirlpoolAmountCaption.text = "Total in Progress Balance "
binding.whirlpoolAmountCaption.text = getString(R.string.total_in_progress_balance)
whirlPoolHomeViewModel.mixingBalance.value?.let {
balance = it
}
}
2 -> {
binding.whirlpoolAmountCaption.text = "Total Remixable Balance "
binding.whirlpoolAmountCaption.text = getString(R.string.total_remixable_balance)
whirlPoolHomeViewModel.remixBalance.value?.let {
balance = it
}
......@@ -259,7 +259,7 @@ class WhirlpoolHome : SamouraiActivity() {
Toast.makeText(this, ex.message, Toast.LENGTH_LONG).show()
ex.printStackTrace()
val builder = MaterialAlertDialogBuilder(this)
builder.setMessage("Tx0 is not possible with selected utxo.")
builder.setMessage(getString(R.string.tx0_is_not_possible_with))
.setCancelable(true)
builder.setPositiveButton(R.string.ok) { dialogInterface, i -> dialogInterface.dismiss() }
builder.create().show()
......@@ -267,7 +267,7 @@ class WhirlpoolHome : SamouraiActivity() {
}
if (tx0.tx0 == null) {
val builder = MaterialAlertDialogBuilder(this)
builder.setMessage("Tx0 is not possible with selected utxo.")
builder.setMessage(getString(R.string.tx0_is_not_possible_with))
.setCancelable(true)
builder.setPositiveButton(R.string.ok) { dialogInterface, i -> dialogInterface.dismiss() }
builder.create().show()
......
......@@ -895,5 +895,9 @@
<string name="postmix_spend">Postmix spend</string>
<string name="you_cannot_follow_your_own_paynym">You cannot follow your own paynym</string>
<string name="transfer_to_whirlpool">Transfer to whirlpool</string>
<string name="total_balance">Total Balance</string>
<string name="total_in_progress_balance">Total in Progress Balance</string>
<string name="total_remixable_balance">Total Remixable Balance </string>
<string name="tx0_is_not_possible_with">Tx0 is not possible with selected utxo.</string>
</resources>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment