diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2012-11-12 18:16:33 +0100 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2012-11-12 18:16:33 +0100 |
commit | b4e411cf2527adb3e5c6a7e21ca01e37f40199b0 (patch) | |
tree | 1634a61b699bdc2f09b77805278cdde6b66bf7a9 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites | |
parent | c4b5cb898be565c10d64c572cb3da117351acfa0 (diff) | |
download | pdf-over-b4e411cf2527adb3e5c6a7e21ca01e37f40199b0.tar.gz pdf-over-b4e411cf2527adb3e5c6a7e21ca01e37f40199b0.tar.bz2 pdf-over-b4e411cf2527adb3e5c6a7e21ca01e37f40199b0.zip |
Display correct text on lang change
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java index 49313c78..15cec1f7 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java @@ -422,7 +422,10 @@ public class PositioningComposite extends StateComposite { */ @Override public void reloadResources() { - this.btnNewPage.setText(Messages.getString("positioning.newPage")); //$NON-NLS-1$ + if (this.currentPage <= this.numPages) + this.btnNewPage.setText(Messages.getString("positioning.newPage")); //$NON-NLS-1$ + else + this.btnNewPage.setText(Messages.getString("positioning.removeNewPage")); //$NON-NLS-1$ this.btnSign.setText(Messages.getString("positioning.sign")); //$NON-NLS-1$ this.lblPage.setText(String.format(Messages.getString("positioning.page"), //$NON-NLS-1$ this.currentPage, this.numPages)); |