Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Localize Android native autofill component (#993)
Leendert de Borst5b6a80a7b15e
diff --git a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/autofill/AutofillService.kt b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/autofill/AutofillService.ktindex 4b8c0e46c..8cf9da826 100644--- a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/autofill/AutofillService.kt+++ b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/autofill/AutofillService.kt@@ -87,7 +87,7 @@ class AutofillService : AutofillService() {try {val responseBuilder = FillResponse.Builder()val presentation = RemoteViews(packageName, R.layout.autofill_dataset_item_logo)- presentation.setTextViewText(R.id.text, "Failed to retrieve, open app")+ presentation.setTextViewText(R.id.text, getString(R.string.autofill_failed_to_retrieve))val dataSetBuilder = Dataset.Builder(presentation)@@ -347,7 +347,7 @@ class AutofillService : AutofillService() {val presentation = RemoteViews(packageName, R.layout.autofill_dataset_item_logo)presentation.setTextViewText(R.id.text,- "No match found, create new?",+ getString(R.string.autofill_no_match_found),)val dataSetBuilder = Dataset.Builder(presentation)@@ -391,7 +391,7 @@ class AutofillService : AutofillService() {val openAppPresentation = RemoteViews(packageName, R.layout.autofill_dataset_item_logo)openAppPresentation.setTextViewText(R.id.text,- "Open app",+ getString(R.string.autofill_open_app),)val dataSetBuilder = Dataset.Builder(openAppPresentation)@@ -436,7 +436,7 @@ class AutofillService : AutofillService() {val presentation = RemoteViews(packageName, R.layout.autofill_dataset_item_logo)presentation.setTextViewText(R.id.text,- "Vault locked",+ getString(R.string.autofill_vault_locked),)val dataSetBuilder = Dataset.Builder(presentation)@@ -474,7 +474,7 @@ class AutofillService : AutofillService() {val presentation = RemoteViews(packageName, R.layout.autofill_dataset_item_logo)presentation.setTextViewText(R.id.text,- "Failed to retrieve, open app",+ getString(R.string.autofill_failed_to_retrieve),)val dataSetBuilder = Dataset.Builder(presentation)diff --git a/apps/mobile-app/android/app/src/main/res/values-nl/strings.xml b/apps/mobile-app/android/app/src/main/res/values-nl/strings.xmlindex c64b252f2..fe11a5abc 100644--- a/apps/mobile-app/android/app/src/main/res/values-nl/strings.xml+++ b/apps/mobile-app/android/app/src/main/res/values-nl/strings.xml@@ -2,4 +2,10 @@<string name="app_name">AliasVault</string><string name="autofill_service_description">AliasVault AutoFill</string><string name="aliasvault_icon">AliasVault pictogram</string>++ <!-- AutofillService strings -->+ <string name="autofill_failed_to_retrieve">Ophalen mislukt, open app</string>+ <string name="autofill_no_match_found">Geen match gevonden, nieuwe maken?</string>+ <string name="autofill_open_app">Open app</string>+ <string name="autofill_vault_locked">Kluis vergrendeld</string></resources>diff --git a/apps/mobile-app/android/app/src/main/res/values/strings.xml b/apps/mobile-app/android/app/src/main/res/values/strings.xmlindex 313005c0a..4d3963f3c 100644--- a/apps/mobile-app/android/app/src/main/res/values/strings.xml+++ b/apps/mobile-app/android/app/src/main/res/values/strings.xml@@ -5,4 +5,10 @@<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string><string name="autofill_service_description" translatable="true">AliasVault AutoFill</string><string name="aliasvault_icon">AliasVault icon</string>++ <!-- AutofillService strings -->+ <string name="autofill_failed_to_retrieve">Failed to retrieve, open app</string>+ <string name="autofill_no_match_found">No match found, create new?</string>+ <string name="autofill_open_app">Open app</string>+ <string name="autofill_vault_locked">Vault locked</string></resources>\ No newline at end of file