Skip to content
Snippets Groups Projects
Unverified Commit d06b0435 authored by chris-cwa's avatar chris-cwa Committed by GitHub
Browse files

Fixed Message for bad TAN (EXPOSUREAPP-2552) (#1131)


* fixed duplicate use of string

* klint

* + message for translators

* + message for translators

* fixed submission tan error dialog strings

* update string

Co-authored-by: default avatarLuka Harambasic <luka.harambasic@sap.com>
Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
parent 5cc11871
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,7 @@ import de.rki.coronawarnapp.ui.viewmodel.SubmissionViewModel
import de.rki.coronawarnapp.util.DialogHelper
import de.rki.coronawarnapp.util.TanHelper
import de.rki.coronawarnapp.util.observeEvent
import kotlinx.android.synthetic.main.include_submission_tan.submission_tan_error
import kotlinx.android.synthetic.main.include_submission_tan.submission_tan_character_error
import kotlinx.android.synthetic.main.include_submission_tan.*
/**
* Fragment for TAN entry
......@@ -50,8 +49,8 @@ class SubmissionTanFragment : Fragment() {
return when (exception) {
is BadRequestException -> DialogHelper.DialogInstance(
requireActivity(),
R.string.submission_error_dialog_web_test_paired_title,
R.string.submission_error_dialog_web_test_paired_body,
R.string.submission_error_dialog_web_test_paired_title_tan,
R.string.submission_error_dialog_web_test_paired_body_tan,
R.string.submission_error_dialog_web_test_paired_button_positive,
null,
true,
......
......@@ -740,10 +740,14 @@
<!-- XBUT: Positive button for generic web request error -->
<string name="submission_error_dialog_web_generic_error_button_positive">"Zurück"</string>
<!-- XHED: Dialog title for already paired test error -->
<!-- XHED: Dialog title for already paired test error: qr -->
<string name="submission_error_dialog_web_test_paired_title">"QR-Code ist ungültig"</string>
<!-- XMSG: Dialog body for already paired test error -->
<!-- XMSG: Dialog body for already paired test error: qr -->
<string name="submission_error_dialog_web_test_paired_body">"Der QR-Code ist ungültig oder wurde bereits auf einem Smartphone registriert. Ihr Testergebnis bekommen Sie vom Testcenter oder Labor, unabhängig von der Gültigkeit des QR-Codes. Wenn Ihr Test positiv ausfällt, bekommen Sie vom Gesundheitsamt eine Mitteilung."</string>
<!-- XHED: Dialog title for already paired test error: tan -->
<string name="submission_error_dialog_web_test_paired_title_tan">"TAN ist ungültig"</string>
<!-- XMSG: Dialog body for already paired test via tan - error: tan -->
<string name="submission_error_dialog_web_test_paired_body_tan">"Die TAN ist ungültig oder wurde bereits auf einem Smartphone registriert. Ihr Testergebnis bekommen Sie vom Testcenter oder Labor, unabhängig von der Gültigkeit der TAN. Bei einem positiven Testergebnis wird auch das zuständige Gesundheitsamt auf dem gesetzlich vorgeschriebenen Weg informiert und sich an Sie wenden."</string>
<!-- XBUT: Positive button for already paired test error -->
<string name="submission_error_dialog_web_test_paired_button_positive">"Zurück"</string>
......
......@@ -746,6 +746,10 @@
<string name="submission_error_dialog_web_test_paired_title">"QR code is invalid"</string>
<!-- XMSG: Dialog body for already paired test error -->
<string name="submission_error_dialog_web_test_paired_body">"The QR code is invalid or has been registered on another smartphone already. You will receive your test result from the test center or laboratory regardless of the validity of the QR code. If you are diagnosed with COVID-19, you will be notified by the public health authority."</string>
<!-- XHED: Dialog title for already paired test error: tan -->
<string name="submission_error_dialog_web_test_paired_title_tan" />
<!-- XMSG: Dialog body for already paired test via tan - error: tan -->
<string name="submission_error_dialog_web_test_paired_body_tan" />
<!-- XBUT: Positive button for already paired test error -->
<string name="submission_error_dialog_web_test_paired_button_positive">"Back"</string>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment