Fixes missing plural locs

dev
Laurent 7 years ago
parent 0358618a28
commit 71be336c4a
  1. 2
      app/src/main/java/net/pokeranalytics/android/model/LiveData.kt
  2. 2
      app/src/main/java/net/pokeranalytics/android/ui/view/rowrepresentable/SettingRow.kt
  3. 3
      app/src/main/res/values/strings.xml

@ -72,7 +72,7 @@ enum class LiveData : Localizable {
TOURNAMENT_NAME -> R.string.tournament_name TOURNAMENT_NAME -> R.string.tournament_name
TOURNAMENT_FEATURE -> R.string.tournament_feature TOURNAMENT_FEATURE -> R.string.tournament_feature
TRANSACTION -> R.string.operation TRANSACTION -> R.string.operation
TRANSACTION_TYPE -> R.string.operation_types TRANSACTION_TYPE -> R.string.operation_type
FILTER -> R.string.filter FILTER -> R.string.filter
CUSTOM_FIELD -> R.string.custom_field CUSTOM_FIELD -> R.string.custom_field
REPORT_SETUP -> R.string.custom REPORT_SETUP -> R.string.custom

@ -73,7 +73,7 @@ enum class SettingRow : RowRepresentable {
override val resId: Int? override val resId: Int?
get() { get() {
this.relatedResultsRepresentable?.let { this.relatedResultsRepresentable?.let {
return it.resId return it.pluralResId
} ?: run { } ?: run {
return when (this) { return when (this) {
SUBSCRIPTION -> R.string.subscription SUBSCRIPTION -> R.string.subscription

@ -54,6 +54,7 @@
<string name="tournament_name_empty_field_error">A tournament name can not be empty.</string> <string name="tournament_name_empty_field_error">A tournament name can not be empty.</string>
<string name="duplicate_tournament_name_error">This name already exists.</string> <string name="duplicate_tournament_name_error">This name already exists.</string>
<string name="bankroll_relationship_error_transactions">One or more transactions are associated with this bankroll, please delete the linked transaction(s) first.</string> <string name="bankroll_relationship_error_transactions">One or more transactions are associated with this bankroll, please delete the linked transaction(s) first.</string>
<string name="operation_type">Transaction type</string>
<!-- Translated --> <!-- Translated -->
@ -713,7 +714,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 type</string> <string name="operation_types">Transaction types</string>
<string name="operations">Transactions</string> <string name="operations">Transactions</string>
<string name="operation">Transaction</string> <string name="operation">Transaction</string>
<string name="add_an_operation">Add a transaction</string> <string name="add_an_operation">Add a transaction</string>

Loading…
Cancel
Save