summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:30:45 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:30:45 +0000
commit3babd354fb6d14bf81b5a2abdd4fca56ca2ea1dc (patch)
tree09690341b2997978dde79ada8bc3d794d41522da /pdf-over-gui/src/main/java/at/asit/pdfover
parent76515f10a45a5c4a22694589ce9d733bad2393a2 (diff)
downloadmocca-3babd354fb6d14bf81b5a2abdd4fca56ca2ea1dc.tar.gz
mocca-3babd354fb6d14bf81b5a2abdd4fca56ca2ea1dc.tar.bz2
mocca-3babd354fb6d14bf81b5a2abdd4fca56ca2ea1dc.zip
Show alternative text for 1 try left
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@357 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java4
1 files changed, 3 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$
}
/**