From e2bff701095986a09367924c4eb1bb3772d1c406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Sch=C3=A4ttgen?= Date: Tue, 9 Oct 2018 22:27:59 +0200 Subject: [PATCH] Extracted all layout hardcoded strings --- app/src/main/res/layout/activity_auth.xml | 4 +-- .../main/res/layout/activity_edit_entry.xml | 10 +++---- app/src/main/res/layout/activity_main.xml | 4 +-- app/src/main/res/layout/activity_slots.xml | 4 +-- .../res/layout/bottom_sheet_edit_entry.xml | 6 ++-- app/src/main/res/layout/card_entry.xml | 21 +++++++------- app/src/main/res/layout/dialog_password.xml | 4 +-- .../layout/fragment_authenticated_slide.xml | 2 +- app/src/main/res/values/strings.xml | 29 +++++++++++++++---- 9 files changed, 51 insertions(+), 33 deletions(-) diff --git a/app/src/main/res/layout/activity_auth.xml b/app/src/main/res/layout/activity_auth.xml index be1e052f..a2a8d735 100644 --- a/app/src/main/res/layout/activity_auth.xml +++ b/app/src/main/res/layout/activity_auth.xml @@ -40,7 +40,7 @@ android:id="@+id/button_decrypt" android:layout_width="125dp" android:layout_height="wrap_content" - android:text="Decrypt" /> + android:text="@string/unlock" /> + android:text="@string/invalidated_fingerprint"/> diff --git a/app/src/main/res/layout/activity_edit_entry.xml b/app/src/main/res/layout/activity_edit_entry.xml index 7935fa6c..d36084bd 100644 --- a/app/src/main/res/layout/activity_edit_entry.xml +++ b/app/src/main/res/layout/activity_edit_entry.xml @@ -86,7 +86,7 @@ android:layout_marginBottom="5dp"> @@ -228,7 +228,7 @@ android:layout_alignParentEnd="true" android:backgroundTint="#949494" android:layout_centerVertical="true" - android:text="seconds" + android:text="@string/seconds" android:textSize="18sp" android:layout_marginEnd="10dp" android:textColor="#808080"/> @@ -261,7 +261,7 @@ android:orientation="horizontal"> diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 3302f7e8..e7c659f4 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -32,7 +32,7 @@ android:id="@+id/fab_scan" android:layout_width="wrap_content" android:layout_height="wrap_content" - app:fab_title="Scan QR code" + app:fab_title="@string/scan" app:fab_size="mini" app:fab_colorNormal="@color/background" app:fab_colorPressed="@color/background" @@ -42,7 +42,7 @@ android:id="@+id/fab_enter" android:layout_width="wrap_content" android:layout_height="wrap_content" - app:fab_title="Enter manually" + app:fab_title="@string/enter_manually" app:fab_size="mini" app:fab_colorNormal="@color/background" app:fab_colorPressed="@color/background" diff --git a/app/src/main/res/layout/activity_slots.xml b/app/src/main/res/layout/activity_slots.xml index f82b8f9b..9d8d18d2 100644 --- a/app/src/main/res/layout/activity_slots.xml +++ b/app/src/main/res/layout/activity_slots.xml @@ -48,7 +48,7 @@ @@ -77,7 +77,7 @@ + android:text="@string/slots_warning"/> diff --git a/app/src/main/res/layout/bottom_sheet_edit_entry.xml b/app/src/main/res/layout/bottom_sheet_edit_entry.xml index 3ea82486..db54fb27 100644 --- a/app/src/main/res/layout/bottom_sheet_edit_entry.xml +++ b/app/src/main/res/layout/bottom_sheet_edit_entry.xml @@ -22,7 +22,7 @@ + android:text="@string/copy"/> + android:text="@string/edit"/> + android:text="@string/delete"/> diff --git a/app/src/main/res/layout/card_entry.xml b/app/src/main/res/layout/card_entry.xml index f410a61f..11f173b9 100644 --- a/app/src/main/res/layout/card_entry.xml +++ b/app/src/main/res/layout/card_entry.xml @@ -1,6 +1,7 @@ + android:includeFontPadding="false" + android:maxLines="1" + android:textColor="@color/extra_info_text" + android:textSize="15sp" + tools:text=" - AccountName" /> Restore default icon Discard Save + Issuer IntroActivity Preferences @@ -27,21 +28,23 @@ Encrypt the database and unlock it with a password or fingerprint Touch sensor - Fingerprint not recognized. Try again + Fingerprint not recognized. Try again. Fingerprint recognized - Encryption + Security None - The database will be stored in plain text + You don\'t need a password to unlock the vault and it will not be encrypted. This option is not recommended. Password - The database will be encrypted with a key derived from a password + You need a password to unlock the vault. Fingerprint - In addition to a password, fingerprints registered on this device can be used to decrypt the database + In addition to a password, fingerprints registered on this device can be used to unlock the vault. Password Enter your password - Open the database + Unlock the vault Please enter a password Please confirm the password + A change in your device\'s security settings has been detected. Please go to \"Settings -> Key slots\" and re-add your fingerprint. + None @@ -67,4 +70,18 @@ Hello blank fragment + Unlock + Advanced + seconds + Counter + Secret + Scan QR code + Enter manually + Add fingerprint + The vault is only as secure as your weakest secret. When a new fingerprint is added to your device, you will to reactivate fingerprint authentication within Aegis. + Copy + Edit + Delete + Password + Confirm password