File tree Expand file tree Collapse file tree 5 files changed +27
-10
lines changed
Expand file tree Collapse file tree 5 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ MobileProgress::MobileProgress(QWidget *parent)
167167 else if (reply->attribute (QNetworkRequest::HttpStatusCodeAttribute).toInt () == 400 )
168168 break ;
169169 else
170- returnError (tr (" Failed to send request " ) + reply->errorString ());
170+ returnError (tr (" Failed to send request. " ) + reply->errorString ());
171171 return ;
172172 }
173173 static const QStringList contentType{" application/json" , " application/json;charset=UTF-8" };
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ SmartIDProgress::SmartIDProgress(QWidget *parent)
187187 returnError (tr (" %1 service has encountered technical errors. Please try again later." ).arg (" Smart-ID" ));
188188 return ;
189189 default :
190- returnError (tr (" Failed to send request " ) + reply->errorString ());
190+ returnError (tr (" Failed to send request. " ) + reply->errorString ());
191191 return ;
192192 }
193193 }
@@ -215,7 +215,12 @@ SmartIDProgress::SmartIDProgress(QWidget *parent)
215215 if (endResult == QStringLiteral (" USER_REFUSED" ) || endResult == QStringLiteral (" TIMEOUT" ))
216216 d->l .exit (QDialog::Rejected);
217217 else if (endResult != QStringLiteral (" OK" ))
218- returnError (tr (" Service result: " ) + endResult);
218+ {
219+ if (endResult == QStringLiteral (" WRONG_VC" ))
220+ returnError (tr (" Error: an incorrect control code was chosen" ));
221+ else
222+ returnError (tr (" Service result: " ) + endResult);
223+ }
219224 else if (d->documentNumber .isEmpty ())
220225 d->documentNumber = result.value (QStringLiteral (" result" )).toObject ().value (QStringLiteral (" documentNumber" )).toString ();
221226 if (result.contains (QStringLiteral (" signature" )))
Original file line number Diff line number Diff line change @@ -1787,8 +1787,8 @@ Control code: %1</translation>
17871787 <translation >%1 service has encountered technical errors. Please try again later.</translation >
17881788 </message >
17891789 <message >
1790- <source >Failed to send request </source >
1791- <translation >Failed to send request </translation >
1790+ <source >Failed to send request. </source >
1791+ <translation >Failed to send request. </translation >
17921792 </message >
17931793 <message >
17941794 <source >Invalid content type header </source >
@@ -1858,6 +1858,10 @@ Control code: %1</translation>
18581858 <source >Please include correct country code.</source >
18591859 <translation >Please include correct country code.</translation >
18601860 </message >
1861+ <message >
1862+ <source >Error: an incorrect control code was chosen</source >
1863+ <translation >Error: an incorrect control code was chosen</translation >
1864+ </message >
18611865</context >
18621866<context >
18631867 <name >NoCardInfo</name >
Original file line number Diff line number Diff line change @@ -1787,8 +1787,8 @@ Kontrollkood: %1</translation>
17871787 <translation >%1 teenuses esinevad tehnilised tõrked. Palun proovige mõne aja pärast uuesti.</translation >
17881788 </message >
17891789 <message >
1790- <source >Failed to send request </source >
1791- <translation >Päringu saatmine ebaõnnestus </translation >
1790+ <source >Failed to send request. </source >
1791+ <translation >Päringu saatmine ebaõnnestus. </translation >
17921792 </message >
17931793 <message >
17941794 <source >Invalid content type header </source >
@@ -1858,6 +1858,10 @@ Kontrollkood: %1</translation>
18581858 <source >Please include correct country code.</source >
18591859 <translation >Telefoninumber peab sisaldama riigikoodi.</translation >
18601860 </message >
1861+ <message >
1862+ <source >Error: an incorrect control code was chosen</source >
1863+ <translation >Viga: valiti vale kontrollkood</translation >
1864+ </message >
18611865</context >
18621866<context >
18631867 <name >NoCardInfo</name >
Original file line number Diff line number Diff line change @@ -1790,8 +1790,8 @@ Kонтрольный код: %1</translation>
17901790 <translation >Технический сбой услуги %1. Пожалуйста, попробуйте позже.</translation >
17911791 </message >
17921792 <message >
1793- <source >Failed to send request </source >
1794- <translation >Не удалось отправить запрос </translation >
1793+ <source >Failed to send request. </source >
1794+ <translation >Не удалось отправить запрос. </translation >
17951795 </message >
17961796 <message >
17971797 <source >Invalid content type header </source >
@@ -1851,7 +1851,7 @@ Kонтрольный код: %1</translation>
18511851 </message >
18521852 <message >
18531853 <source >Open the Smart-ID application on your smart device and confirm device for signing.</source >
1854- <translation type = " unfinished " > </translation >
1854+ <translation >Откройте приложение Smart-ID на смарт-устройстве и подтвердите это устройство для подписывания. </translation >
18551855 </message >
18561856 <message >
18571857 <source >The limit for digital signatures per month has been reached for this IP address. < a href=" https://www.id.ee/index.php?id=39023"> Additional information< /a> </source >
@@ -1861,6 +1861,10 @@ Kонтрольный код: %1</translation>
18611861 <source >Please include correct country code.</source >
18621862 <translation >Номер телефона должен содержать код страны.</translation >
18631863 </message >
1864+ <message >
1865+ <source >Error: an incorrect control code was chosen</source >
1866+ <translation >Ошибка: выбран неправильный контрольный код</translation >
1867+ </message >
18641868</context >
18651869<context >
18661870 <name >NoCardInfo</name >
You can’t perform that action at this time.
0 commit comments