summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java4
-rw-r--r--pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties1
-rw-r--r--pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties1
3 files changed, 5 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java
index 980a5860..f0f5cb78 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java
@@ -101,7 +101,9 @@ public class MobileBKUEnterTANComposite extends StateComposite {
* @param tries
*/
public void setTries(int tries) {
- this.lbl_tries.setText(String.format(Messages.getString("tanEnter.tries"), tries)); //$NON-NLS-1$
+ this.lbl_tries.setText(
+ tries == 1 ? Messages.getString("tanEnter.try") : //$NON-NLS-1$
+ String.format(Messages.getString("tanEnter.tries"), tries)); //$NON-NLS-1$
}
/**
diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
index 13798f7e..8ed7b808 100644
--- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
+++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
@@ -134,4 +134,5 @@ simple_config.SigBlockLang_ToolTip=Select the language to be used in the signatu
tanEnter.ReferenceValue=Reference value:
tanEnter.TAN=TAN:
tanEnter.tries=%d tries left!
+tanEnter.try=Only 1 try left!
waiting.message=Signature creation in progress...
diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties
index 6f36a45c..7cd6bc59 100644
--- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties
+++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties
@@ -134,4 +134,5 @@ simple_config.SigBlockLang_ToolTip=Wählen Sie eine Sprache für den Signaturblock
tanEnter.ReferenceValue=Vergleichswert:
tanEnter.TAN=TAN:
tanEnter.tries=%d Versuche übrig!
+tanEnter.try=Nur noch 1 Versuch übrig!
waiting.message=Signaturerstellung läuft...