Fixes strings

dev
Laurent 7 years ago
parent 3a261cc240
commit df1ac95ccf
  1. 3
      app/src/main/java/net/pokeranalytics/android/model/utils/Seed.kt
  2. 6
      app/src/main/res/values/strings.xml

@ -59,11 +59,12 @@ class Seed(var context:Context) : Realm.Transaction {
private fun createDefaultTransactionTypes(realm: Realm) { private fun createDefaultTransactionTypes(realm: Realm) {
TransactionType.Value.values().forEachIndexed { index, value -> TransactionType.Value.values().forEachIndexed { index, value ->
val type = TransactionType() val type = TransactionType()
type.name = when(value) { val name = when(value) {
TransactionType.Value.WITHDRAWAL -> context.getString(R.string.withdrawal) TransactionType.Value.WITHDRAWAL -> context.getString(R.string.withdrawal)
TransactionType.Value.DEPOSIT -> context.getString(R.string.deposit) TransactionType.Value.DEPOSIT -> context.getString(R.string.deposit)
TransactionType.Value.BONUS -> context.getString(R.string.bonus) TransactionType.Value.BONUS -> context.getString(R.string.bonus)
} }
type.name = name
type.additive = value.additive type.additive = value.additive
type.kind = index type.kind = index
type.lock = true type.lock = true

@ -20,8 +20,8 @@
<string name="data_deleted" formatted="false">%s deleted</string> <string name="data_deleted" formatted="false">%s deleted</string>
<string name="end_date_not_possible">The end date should be after the start date</string> <string name="end_date_not_possible">The end date should be after the start date</string>
<string name="save">Save</string> <string name="save">Save</string>
<string name="tournament_name">Tournament Name</string> <string name="tournament_name">Tournament name</string>
<string name="tournament_feature">Tournament Feature</string> <string name="tournament_feature">Tournament feature</string>
<string name="pending">Pending</string> <string name="pending">Pending</string>
<string name="disclaimer">Poker Analytics is a poker tracking app. We’re currently on our way to reproduce the iOS app and you’re currently using a lighter version. The app will work with a US$29.99 yearly subscription for an unlimited usage, but will be free until reaching the appropriate feature coverage.</string> <string name="disclaimer">Poker Analytics is a poker tracking app. We’re currently on our way to reproduce the iOS app and you’re currently using a lighter version. The app will work with a US$29.99 yearly subscription for an unlimited usage, but will be free until reaching the appropriate feature coverage.</string>
<string name="iunderstand">I understand</string> <string name="iunderstand">I understand</string>
@ -688,7 +688,7 @@
<string name="feed">Feed</string> <string name="feed">Feed</string>
<string name="operation_empty_field_error">Check that your transaction has a type and an amount</string> <string name="operation_empty_field_error">Check that your transaction has a type and an amount</string>
<string name="operation_type_empty_field_error">You need to name the transaction type</string> <string name="operation_type_empty_field_error">You need to name the transaction type</string>
<string name="operation_types">Transaction types</string> <string name="operation_types">Transaction type</string>
<string name="operations">Transactions</string> <string name="operations">Transactions</string>
<string name="add_an_operation">Add a transaction</string> <string name="add_an_operation">Add a transaction</string>
<string name="duplicate_operation_error">An identical transaction already exists</string> <string name="duplicate_operation_error">An identical transaction already exists</string>

Loading…
Cancel
Save