mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2003-02-02 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/gnc-hbci-utils.c, po/de.po: Recognize even more error codes from OpenHBCI. Yes, I know this breaks string freeze -- but these strings *really* *only* apply to German users, so I just fixed the translation myself. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7918 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -25,8 +25,8 @@
|
||||
|
||||
#include <gnome.h>
|
||||
#include <errno.h>
|
||||
#include <openhbci/error.h>
|
||||
#include <openhbci.h>
|
||||
#include <openhbci/error.h>
|
||||
|
||||
#include "gnc-ui.h"
|
||||
#include "gnc-hbci-kvp.h"
|
||||
@@ -260,6 +260,29 @@ gnc_hbci_error_retry (GtkWidget *parent, HBCI_Error *error,
|
||||
TRUE,
|
||||
_("The PIN you entered was wrong.\n"
|
||||
"Do you want to try again?"));
|
||||
#if (OPENHBCI_VERSION_MAJOR>0) || (OPENHBCI_VERSION_MINOR>9) || (OPENHBCI_VERSION_PATCHLEVEL>5)
|
||||
case HBCI_ERROR_CODE_PIN_WRONG_0:
|
||||
GNCInteractor_erasePIN (inter);
|
||||
return gnc_verify_dialog_parented (parent,
|
||||
TRUE,
|
||||
_("The PIN you entered was wrong.\n"
|
||||
"ATTENTION: You have zero further wrong retries left!\n"
|
||||
"Do you want to try again?"));
|
||||
case HBCI_ERROR_CODE_PIN_WRONG_1:
|
||||
GNCInteractor_erasePIN (inter);
|
||||
return gnc_verify_dialog_parented (parent,
|
||||
TRUE,
|
||||
_("The PIN you entered was wrong.\n"
|
||||
"You have one further wrong retry left.\n"
|
||||
"Do you want to try again?"));
|
||||
case HBCI_ERROR_CODE_PIN_WRONG_2:
|
||||
GNCInteractor_erasePIN (inter);
|
||||
return gnc_verify_dialog_parented (parent,
|
||||
TRUE,
|
||||
_("The PIN you entered was wrong.\n"
|
||||
"You have two further wrong retries left.\n"
|
||||
"Do you want to try again?"));
|
||||
#endif
|
||||
case HBCI_ERROR_CODE_PIN_ABORTED:
|
||||
/* printf("gnc_hbci_error_feedback: PIN dialog was aborted.\n"); */
|
||||
return FALSE;
|
||||
@@ -269,9 +292,25 @@ gnc_hbci_error_retry (GtkWidget *parent, HBCI_Error *error,
|
||||
TRUE,
|
||||
_("The PIN you entered was too short.\n"
|
||||
"Do you want to try again?"));
|
||||
#if (OPENHBCI_VERSION_MAJOR>0) || (OPENHBCI_VERSION_MINOR>9) || (OPENHBCI_VERSION_PATCHLEVEL>5)
|
||||
case HBCI_ERROR_CODE_CARD_DESTROYED:
|
||||
GNCInteractor_hide (inter);
|
||||
gnc_error_dialog_parented
|
||||
(GTK_WINDOW (parent),
|
||||
_("Unfortunately you entered a wrong PIN for too many times.\n"
|
||||
"Your chip card is therefore destroyed. Aborting."));
|
||||
return FALSE;
|
||||
#endif
|
||||
case HBCI_ERROR_CODE_FILE_NOT_FOUND:
|
||||
/* printf("gnc_hbci_error_feedback: File not found error.\n"); */
|
||||
return FALSE;
|
||||
#if (OPENHBCI_VERSION_MAJOR>0) || (OPENHBCI_VERSION_MINOR>9) || (OPENHBCI_VERSION_PATCHLEVEL>5)
|
||||
case HBCI_ERROR_CODE_NO_CARD:
|
||||
return gnc_verify_dialog_parented (parent,
|
||||
TRUE,
|
||||
_("No chip card has been found in the chip card reader.\n"
|
||||
"Do you want to try again?"));
|
||||
#endif
|
||||
case HBCI_ERROR_CODE_JOB_NOT_SUPPORTED:
|
||||
GNCInteractor_hide (inter);
|
||||
gnc_error_dialog_parented
|
||||
|
||||
Reference in New Issue
Block a user