Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AND-6475 Updated error texts. #372

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ fun TangemSdkError.localizedDescriptionRes(): TangemSdkErrorDescription {
is TangemSdkError.EmptyBackupCards,
is TangemSdkError.MissingPrimaryAttestSignature,
is TangemSdkError.MissingPrimaryCard,
is TangemSdkError.NoActiveBackup,
is TangemSdkError.NoBackupCardForIndex,
is TangemSdkError.NoBackupDataForCard,
is TangemSdkError.ResetBackupFailedHasBackedUpWallets,
Expand Down Expand Up @@ -111,12 +110,20 @@ fun TangemSdkError.localizedDescriptionRes(): TangemSdkErrorDescription {
is TangemSdkError.BackupFailedIncompatibleBatch,
is TangemSdkError.BackupFailedIncompatibleFirmware,
is TangemSdkError.BackupFailedKeysImportSettings,
is TangemSdkError.BackupFailedAlreadyCreated,

-> TangemSdkErrorDescription(
resId = R.string.error_backup_wrong_card,
args = listOf(TangemSdkErrorDescription.Type.StringType(code.toString())),
)

is TangemSdkError.BackupFailedAlreadyCreated -> {
TangemSdkErrorDescription(resId = R.string.error_backup_failed_already_created)
}

is TangemSdkError.NoActiveBackup -> {
TangemSdkErrorDescription(resId = R.string.error_no_active_backup)
}

is TangemSdkError.ExtendedLengthNotSupported ->
TangemSdkErrorDescription(resId = R.string.error_extended_apdu_not_supported)

Expand Down
22 changes: 12 additions & 10 deletions tangem-sdk-android/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="attestation_failed_card">This card may be production sample or counterfeit. You can continue at your own risk</string>
<string name="attestation_failed_card">This card may be production sample or counterfeit. You can continue at your own risk.</string>
<string name="attestation_failed_dev_card">This is a development card. Its authenticity cannot be verified. Do not accept this card as a means of payment.</string>
<string name="attestation_online_failed_body">We cannot finish card\'s online attestation at this time. You can continue at your own risk and try again later, retry now or cancel the operation</string>
<string name="attestation_online_failed_body">At the moment, online attestation of the card cannot be performed. You can continue at your own risk or try again later.</string>
<string name="attestation_online_failed_title">Online attestation failed</string>
<string name="attestation_warning_attest_wallets">Too many runs of Attest Wallet or Sign looks suspicious.</string>
<string name="attestation_warning_attest_wallets">Suspicious use of the wallet on the card has been detected.</string>
<string name="backup_add_backup_card_message">Connect your phone and the card you want to use as a backup exactly as it shown above.</string>
<string name="backup_finalize_backup_card_message_format">Connect your phone and the backup card with number %s exactly as it shown above.</string>
<string name="backup_finalize_backup_card_message_format">Tap the card with number %s to your phone exactly as shown above.</string>
<string name="backup_finalize_primary_card_message_format">Connect your phone and the primary card with number %s exactly as it shown above.</string>
<string name="backup_prepare_primary_card_message">Connect your phone and the primary card exactly as it shown above.</string>
<string name="backup_prepare_primary_card_message_format">Connect your phone and the primary card with number %s exactly as it shown above.</string>
Expand All @@ -23,25 +23,27 @@
<string name="dialog_nfc_enable_title">Soll NFC aktiviert werden?</string>
<string name="error_already_created">Ein Wallet ist bereits erstellt worden</string>
<string name="error_backup_card_already_added">This card has already been added to the list</string>
<string name="error_backup_failed_already_created">This card cannot be used as a backup because it already contains a wallet. Ensure that no funds are stored on the card by scanning it in the app. Then, reset it to factory settings.</string>
<string name="error_backup_not_empty_wallets">This card already has a wallet. If you want to proceed you have to reset it to factory settings first.</string>
<string name="error_backup_wrong_card">This card can\'t be used as a backup card. Error code: %s.</string>
<string name="error_card_verification_failed">Die Kartenverifizierung ist fehlgeschlagen</string>
<string name="error_extended_apdu_not_supported">It looks like your phone doesn\'t fully support NFC protocol. Please try to use another phone for this operation.</string>
<string name="error_file_not_found">File not found</string>
<string name="error_no_active_backup">The selected card cannot be used to reset the card access code, because there is no backup on it. Please contact support team.</string>
<string name="error_no_remaining_signatures">Sie können die Daten mit diesem Wallet nicht signieren, weil die Karte die Unterschriftsbeschränkung erreicht hat</string>
<string name="error_not_activated">Diese Karte ist nicht aktiviert worden</string>
<string name="error_old_firmware">The command requires a card with a different firmware version</string>
<string name="error_pin_cannot_be_changed_format">%s cannot be changed</string>
<string name="error_pin_cannot_be_default_format">%s cannot be changed to this value. Please, enter another one.</string>
<string name="error_pin_required_format">%s is required</string>
<string name="error_pin_too_short_format">%1$s must be at least %2$d characters long</string>
<string name="error_purge_prohibited">Die Konfiguration der Karte erlaubt nicht, das Wallet zu löschen</string>
<string name="error_purge_prohibited">The wallet cannot be erased</string>
<string name="error_reset_wrong_card">This card can\'t be used for code recovery. Error code: %s.</string>
<string name="error_user_cancelled">Der Benutzer hat den Vorgang unterbrochen</string>
<string name="error_user_code_recovery_disabled">Unable to reset the access code using this card</string>
<string name="error_wrong_card_number_with_card_id">You tapped a different card. Please tap card %s.</string>
<string name="error_wrong_card_number_without_card_id">You tapped a different card</string>
<string name="error_wrong_card_type">Diese Karte ist für eine andere App konfiguriert. Sehen Sie sich die Informationen auf Ihrer Karte an und laden Sie die entsprechende App herunter.</string>
<string name="error_wrong_card_type">This application is not designed to work with this card or needs to be updated</string>
<string name="error_wrong_pin_format">Wrong %s</string>
<string name="generic_error_code">Während des Vorgangs ist ein Fehler aufgetreten. Code: %s.</string>
<string name="how_to_button">Anleitungen</string>
Expand All @@ -55,8 +57,8 @@
<string name="how_to_unknown_move_card">Um festzustellen, wo die Ihre NFC-Antenne ist, bewegen Sie die Karte nach oben und nach unten, bis eine Bestätigung erscheint.</string>
<string name="how_to_unknown_nothing_happened">Nichts passiert? Versuchen Sie die Karte vom Handy wegzunehmen und wieder darauf zu legen.</string>
<string name="how_to_unknown_tap_card">Halten Sie die Karte hinter dem Handy und scannen Sie sie</string>
<string name="issuer_signature_loading_failed">Couldn\'t load the card\'s certificate from the server. Please try again later.</string>
<string name="nfc_session_timeout">Die Sitzung ist abgelaufen. Bitte versuchen Sie es erneut.</string>
<string name="issuer_signature_loading_failed">Couldn\'t load the card\'s certificate. Please try again later.</string>
<string name="nfc_session_timeout">Incomplete process. To finalize the operation, kindly tap the card again</string>
<string name="pin1">Zugangscode</string>
<string name="pin2">Passcode</string>
<string name="pin_change_new_code_format">Neu %s</string>
Expand All @@ -70,7 +72,7 @@
<string name="reset_codes_linked_card">Linked card</string>
<string name="reset_codes_message_body_backup">Tap the linked card</string>
<string name="reset_codes_message_body_restore">First, prepare the card for restore process</string>
<string name="reset_codes_message_body_restore_final">Tap the restore card again</string>
<string name="reset_codes_message_body_restore_final">Tap again the card on which you want to restore the access code</string>
<string name="reset_codes_message_title_backup">Tap a backup card</string>
<string name="reset_codes_message_title_restore">Tap the card you want to restore</string>
<string name="reset_codes_scan_confirmation_card">Scan another linked card</string>
Expand All @@ -84,5 +86,5 @@
<string name="view_delegate_scan_description">Tap the card as shown above and hold until the end of the operation</string>
<string name="view_delegate_security_delay">Langes Drücken</string>
<string name="view_delegate_security_delay_description">To ensure security please hold the card until the operation complete</string>
<string name="wallet_not_found">This card does not contain the current wallet</string>
<string name="wallet_not_found">Looks like you got the wrong card. The operation cannot be performed with this card.</string>
</resources>
24 changes: 13 additions & 11 deletions tangem-sdk-android/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="attestation_failed_card">This card may be production sample or counterfeit. You can continue at your own risk</string>
<string name="attestation_failed_card">This card may be production sample or counterfeit. You can continue at your own risk.</string>
<string name="attestation_failed_dev_card">This is a development card. Its authenticity cannot be verified. Do not accept this card as a means of payment.</string>
<string name="attestation_online_failed_body">We cannot finish card\'s online attestation at this time. You can continue at your own risk and try again later, retry now or cancel the operation</string>
<string name="attestation_online_failed_body">At the moment, online attestation of the card cannot be performed. You can continue at your own risk or try again later.</string>
<string name="attestation_online_failed_title">Online attestation failed</string>
<string name="attestation_warning_attest_wallets">Too many runs of Attest Wallet or Sign looks suspicious.</string>
<string name="attestation_warning_attest_wallets">Suspicious use of the wallet on the card has been detected.</string>
<string name="backup_add_backup_card_message">Connect your phone and the card you want to use as a backup exactly as it shown above.</string>
<string name="backup_finalize_backup_card_message_format">Connect your phone and the backup card with number %s exactly as it shown above.</string>
<string name="backup_finalize_backup_card_message_format">Tap the card with number %s to your phone exactly as shown above.</string>
<string name="backup_finalize_primary_card_message_format">Connect your phone and the primary card with number %s exactly as it shown above.</string>
<string name="backup_prepare_primary_card_message">Connect your phone and the primary card exactly as it shown above.</string>
<string name="backup_prepare_primary_card_message_format">Connect your phone and the primary card with number %s exactly as it shown above.</string>
Expand All @@ -23,25 +23,27 @@
<string name="dialog_nfc_enable_title">Activer NFC?</string>
<string name="error_already_created">Le portefeuille a déjà été créé</string>
<string name="error_backup_card_already_added">This card has already been added to the list</string>
<string name="error_backup_failed_already_created">This card cannot be used as a backup because it already contains a wallet. Ensure that no funds are stored on the card by scanning it in the app. Then, reset it to factory settings.</string>
<string name="error_backup_not_empty_wallets">This card already has a wallet. If you want to proceed you have to reset it to factory settings first.</string>
<string name="error_backup_wrong_card">This card can\'t be used as a backup card. Error code: %s.</string>
<string name="error_card_verification_failed">Erreur de validation de la carte</string>
<string name="error_extended_apdu_not_supported">It looks like your phone doesn\'t fully support NFC protocol. Please try to use another phone for this operation.</string>
<string name="error_file_not_found">File not found</string>
<string name="error_no_active_backup">The selected card cannot be used to reset the card access code, because there is no backup on it. Please contact support team.</string>
<string name="error_no_remaining_signatures">Vous ne pouvez pas signer les données avec ce portefeuille car la carte a atteint sa limite de signatures </string>
<string name="error_not_activated">Cette carte n\'a pas été activée</string>
<string name="error_old_firmware">The command requires a card with a different firmware version</string>
<string name="error_pin_cannot_be_changed_format">%s cannot be changed</string>
<string name="error_pin_cannot_be_default_format">%s cannot be changed to this value. Please, enter another one.</string>
<string name="error_pin_required_format">%s is required</string>
<string name="error_pin_too_short_format">%1$s must be at least %2$d characters long</string>
<string name="error_purge_prohibited">La configuration de cette carte ne permet pas d\'effacer le portefeuille</string>
<string name="error_purge_prohibited">The wallet cannot be erased</string>
<string name="error_reset_wrong_card">This card can\'t be used for code recovery. Error code: %s.</string>
<string name="error_user_cancelled">L\'utilisateur a annulé l\'opération</string>
<string name="error_user_code_recovery_disabled">Unable to reset the access code using this card</string>
<string name="error_wrong_card_number_with_card_id">You tapped a different card. Please tap card %s.</string>
<string name="error_wrong_card_number_without_card_id">You tapped a different card</string>
<string name="error_wrong_card_type">Cette carte est personnalisée pour une autre application. Veuillez lire les informations sur votre carte et télécharger l\'application correspondante.</string>
<string name="error_wrong_card_type">This application is not designed to work with this card or needs to be updated</string>
<string name="error_wrong_pin_format">Wrong %s</string>
<string name="generic_error_code">Une erreur s\'est produite lors de l\'opération. Code : %s.</string>
<string name="how_to_button">Consigne</string>
Expand All @@ -53,10 +55,10 @@
<string name="how_to_show_again_button">Montrer encore une fois</string>
<string name="how_to_try_other_way_button">Ceci ne fonctionne toujours pas</string>
<string name="how_to_unknown_move_card">Pour déterminer où se trouve votre antenne NFC, déplacez la carte de haut en bas jusqu\'à ce que la confirmation soit reçue </string>
<string name="how_to_unknown_nothing_happened">Aucun résultat? Essayez de retirer la carte de votre téléphone, puis de la reappuyer </string>
<string name="how_to_unknown_nothing_happened">Aucun résultat? Essayez de retirer la carte de votre téléphone, puis de la reappuyer</string>
<string name="how_to_unknown_tap_card">Appuyez votre carte au dos de votre téléphone </string>
<string name="issuer_signature_loading_failed">Couldn\'t load the card\'s certificate from the server. Please try again later.</string>
<string name="nfc_session_timeout">Dépassement de temps imparti de la séance. Essayez encore une fois</string>
<string name="issuer_signature_loading_failed">Couldn\'t load the card\'s certificate. Please try again later.</string>
<string name="nfc_session_timeout">Incomplete process. To finalize the operation, kindly tap the card again</string>
<string name="pin1">Code d\'accès</string>
<string name="pin2">Mot de passe</string>
<string name="pin_change_new_code_format">Nouveau %s</string>
Expand All @@ -70,7 +72,7 @@
<string name="reset_codes_linked_card">Linked card</string>
<string name="reset_codes_message_body_backup">Tap the linked card</string>
<string name="reset_codes_message_body_restore">First, prepare the card for restore process</string>
<string name="reset_codes_message_body_restore_final">Tap the restore card again</string>
<string name="reset_codes_message_body_restore_final">Tap again the card on which you want to restore the access code</string>
<string name="reset_codes_message_title_backup">Tap a backup card</string>
<string name="reset_codes_message_title_restore">Tap the card you want to restore</string>
<string name="reset_codes_scan_confirmation_card">Scan another linked card</string>
Expand All @@ -84,5 +86,5 @@
<string name="view_delegate_scan_description">Tap the card as shown above and hold until the end of the operation</string>
<string name="view_delegate_security_delay">Tenez la carte fermement </string>
<string name="view_delegate_security_delay_description">To ensure security please hold the card until the operation complete</string>
<string name="wallet_not_found">This card does not contain the current wallet</string>
<string name="wallet_not_found">Looks like you got the wrong card. The operation cannot be performed with this card.</string>
</resources>
Loading
Loading