Extract string resources from FilterOptionsDialog and add their Spanish translation.
This commit is contained in:
parent
76fea6cfc1
commit
abfbed91f5
4 changed files with 13 additions and 3 deletions
|
@ -84,6 +84,7 @@ class FilterOptionsDialog : DialogFragment() {
|
|||
private lateinit var llEquivalentValue: LinearLayout
|
||||
lateinit var etFromEquivalentValue: EditText
|
||||
lateinit var etToEquivalentValue: EditText
|
||||
lateinit var tvEquivalentValueSymbol: TextView
|
||||
private lateinit var switchAgoriseFees: Switch
|
||||
|
||||
private var mCallback: OnFilterOptionsSelectedListener? = null
|
||||
|
@ -250,6 +251,11 @@ class FilterOptionsDialog : DialogFragment() {
|
|||
val toEquivalentValue = arguments!!.getLong(KEY_FILTER_TO_EQUIVALENT_VALUE, 0)
|
||||
etToEquivalentValue.setText("$toEquivalentValue", TextView.BufferType.EDITABLE)
|
||||
|
||||
// TODO obtain user selected currency
|
||||
val currencySymbol = "usd"
|
||||
tvEquivalentValueSymbol = view.findViewById(R.id.tvEquivalentValueSymbol)
|
||||
tvEquivalentValueSymbol.text = currencySymbol.toUpperCase()
|
||||
|
||||
// Initialize transaction network fees
|
||||
switchAgoriseFees = view.findViewById(R.id.switchAgoriseFees)
|
||||
switchAgoriseFees.isChecked = arguments!!.getBoolean(KEY_FILTER_AGORISE_FEES, true)
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Between"/>
|
||||
android:text="@string/text__between"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etFromEquivalentValue"
|
||||
|
@ -187,7 +187,7 @@
|
|||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="and"/>
|
||||
android:text="@string/text__and"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etToEquivalentValue"
|
||||
|
@ -204,7 +204,7 @@
|
|||
android:id="@+id/tvEquivalentValueSymbol"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="USD"/>
|
||||
tools:text="USD"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -56,6 +56,8 @@
|
|||
<string name="text__date_range">Rango de fechas</string>
|
||||
<string name="text__equivalent_value">Valor Equivalente</string>
|
||||
<string name="text__ignore_network_fees">Ignorar cuotas de red</string>
|
||||
<string name="text__between">Entre</string>
|
||||
<string name="text__and">y</string>
|
||||
<string name="button__filter">Filtrar</string>
|
||||
|
||||
<!-- Transactions export options -->
|
||||
|
|
|
@ -56,6 +56,8 @@
|
|||
<string name="text__date_range">Date Range</string>
|
||||
<string name="text__equivalent_value">Equivalent Value</string>
|
||||
<string name="text__ignore_network_fees">Ignore Network fees</string>
|
||||
<string name="text__between">Between</string>
|
||||
<string name="text__and">and</string>
|
||||
<string name="button__filter">Filter</string>
|
||||
|
||||
<!-- Transactions export options -->
|
||||
|
|
Loading…
Reference in a new issue