Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Localize Auth import scanner copy

Neeraj Gupta93fad0989f4b
diff --git a/mobile/apps/auth/lib/l10n/arb/app_en.arb b/mobile/apps/auth/lib/l10n/arb/app_en.arb
index 5bdc22f057..7d6dd54d21 100644
--- a/mobile/apps/auth/lib/l10n/arb/app_en.arb
+++ b/mobile/apps/auth/lib/l10n/arb/app_en.arb
@@ -112,7 +112,9 @@
"passwordEmptyError": "Password can not be empty",
"passwordTooShort": "Password must be at least 8 characters",
"importFromApp": "Import codes from {appName}",
- "importGoogleAuthGuide": "Export your accounts from Google Authenticator to a QR code using the \"Transfer Accounts\" option. Then using another device, scan the QR code.\n\nTip: You can use your laptop's webcam to take a picture of the QR code.",
+ "importGoogleAuthGuide": "Export your accounts from Google Authenticator to a QR code using the \"Transfer Accounts\" option. Then scan the QR code or import it from an image.",
+ "scannerTorchOn": "Turn on torch",
+ "scannerTorchOff": "Turn off torch",
"importSelectJsonFile": "Select JSON file",
"importSelectAppExport": "Select {appName} export file",
"importEnteEncGuide": "Select the encrypted JSON file exported from Ente",
@@ -332,6 +334,16 @@
}
}
},
+ "importGoogleAuthConfirmation": "{codeCount, plural, one{Import 1 code from Google Authenticator?} other{Import {codeCount} codes from Google Authenticator?}}",
+ "@importGoogleAuthConfirmation": {
+ "placeholders": {
+ "codeCount": {
+ "description": "The number of Google Authenticator codes to import",
+ "type": "int",
+ "example": "2"
+ }
+ }
+ },
"sorry": "Sorry",
"pendingSyncs": "Warning",
"pendingSyncsWarningBody": "Some of your codes have not been backed up.\n\nPlease ensure that you have a backup for these codes before you logout.",
diff --git a/mobile/apps/auth/lib/ui/scanner_page.dart b/mobile/apps/auth/lib/ui/scanner_page.dart
index 9d8dade9e6..69b72c836e 100644
--- a/mobile/apps/auth/lib/ui/scanner_page.dart
+++ b/mobile/apps/auth/lib/ui/scanner_page.dart
@@ -127,8 +127,8 @@ class ScannerPageState extends State<ScannerPage> {
if (showTorch)
_scannerActionButton(
label: isFlashOn
- ? 'Turn off torch'
- : 'Turn on torch',
+ ? l10n.scannerTorchOff
+ : l10n.scannerTorchOn,
icon: isFlashOn
? Icons.flashlight_on_outlined
: Icons.flashlight_off_outlined,
diff --git a/mobile/apps/auth/lib/ui/settings/data/import/google_auth_import.dart b/mobile/apps/auth/lib/ui/settings/data/import/google_auth_import.dart
index ca54225dc7..86112449d8 100644
--- a/mobile/apps/auth/lib/ui/settings/data/import/google_auth_import.dart
+++ b/mobile/apps/auth/lib/ui/settings/data/import/google_auth_import.dart
@@ -106,8 +106,7 @@ Future<bool> confirmGoogleAuthImport(
final result = await showDialogWidget(
context: context,
title: l10n.importFromApp("Google Authenticator"),
- body:
- "Import $codeCount ${codeCount == 1 ? "code" : "codes"} from Google Authenticator?",
+ body: l10n.importGoogleAuthConfirmation(codeCount),
buttons: [
ButtonWidget(
buttonType: ButtonType.primary,