Create new strings for change translations

This commit is contained in:
Benoit Marty 2020-07-10 15:06:34 +02:00
parent 0c2516ccf8
commit 51898a8109
3 changed files with 11 additions and 8 deletions

View File

@ -17,7 +17,6 @@
package im.vector.riotx.core.ui.views package im.vector.riotx.core.ui.views
import android.content.Context import android.content.Context
import androidx.preference.PreferenceManager
import android.util.AttributeSet import android.util.AttributeSet
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
@ -25,6 +24,7 @@ import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.content.edit import androidx.core.content.edit
import androidx.core.view.isVisible import androidx.core.view.isVisible
import androidx.preference.PreferenceManager
import androidx.transition.TransitionManager import androidx.transition.TransitionManager
import butterknife.BindView import butterknife.BindView
import butterknife.ButterKnife import butterknife.ButterKnife
@ -160,9 +160,9 @@ class KeysBackupBanner @JvmOverloads constructor(
} else { } else {
isVisible = true isVisible = true
textView1.setText(R.string.keys_backup_banner_setup_line1) textView1.setText(R.string.secure_backup_banner_setup_line1)
textView2.isVisible = true textView2.isVisible = true
textView2.setText(R.string.keys_backup_banner_setup_line2) textView2.setText(R.string.secure_backup_banner_setup_line2)
close.isVisible = true close.isVisible = true
} }
} }
@ -195,7 +195,7 @@ class KeysBackupBanner @JvmOverloads constructor(
private fun renderBackingUp() { private fun renderBackingUp() {
isVisible = true isVisible = true
textView1.setText(R.string.keys_backup_banner_setup_line1) textView1.setText(R.string.secure_backup_banner_setup_line1)
textView2.isVisible = true textView2.isVisible = true
textView2.setText(R.string.keys_backup_banner_in_progress) textView2.setText(R.string.keys_backup_banner_in_progress)
loading.isVisible = true loading.isVisible = true

View File

@ -34,7 +34,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="27dp" android:layout_marginStart="27dp"
android:layout_marginLeft="27dp" android:layout_marginLeft="27dp"
android:text="@string/keys_backup_banner_setup_line1" android:text="@string/secure_backup_banner_setup_line1"
android:textColor="?riotx_text_primary" android:textColor="?riotx_text_primary"
android:textSize="18sp" android:textSize="18sp"
app:layout_constraintBottom_toTopOf="@id/view_keys_backup_banner_text_2" app:layout_constraintBottom_toTopOf="@id/view_keys_backup_banner_text_2"
@ -48,7 +48,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="27dp" android:layout_marginStart="27dp"
android:layout_marginLeft="27dp" android:layout_marginLeft="27dp"
android:text="@string/keys_backup_banner_setup_line2" android:text="@string/secure_backup_banner_setup_line2"
android:textColor="?riotx_text_secondary" android:textColor="?riotx_text_secondary"
android:textSize="14sp" android:textSize="14sp"
android:visibility="gone" android:visibility="gone"

View File

@ -1496,8 +1496,11 @@ Why choose Riot.im?
<string name="new_recovery_method_popup_was_me">It was me</string> <string name="new_recovery_method_popup_was_me">It was me</string>
<!-- Keys backup banner --> <!-- Keys backup banner -->
<string name="keys_backup_banner_setup_line1">Secure Backup</string> <string name="keys_backup_banner_setup_line1">Never lose encrypted messages</string>
<string name="keys_backup_banner_setup_line2">Safeguard against losing access to encrypted messages &amp; data </string> <string name="keys_backup_banner_setup_line2">Start using Key Backup</string>
<string name="secure_backup_banner_setup_line1">Secure Backup</string>
<string name="secure_backup_banner_setup_line2">Safeguard against losing access to encrypted messages &amp; data</string>
<string name="keys_backup_banner_recover_line1">Never lose encrypted messages</string> <string name="keys_backup_banner_recover_line1">Never lose encrypted messages</string>
<string name="keys_backup_banner_recover_line2">Use Key Backup</string> <string name="keys_backup_banner_recover_line2">Use Key Backup</string>