diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:21:15 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:21:15 +0000 |
commit | d278894566013fa4dabed5b317ad6e1f20fb161f (patch) | |
tree | 091420882909e05d0ec3a63a6c132c9ca58f23e2 /pdf-over-gui | |
parent | 515cea23aaa6c342f78576a5b541b29f765c55c9 (diff) | |
download | pdf-over-d278894566013fa4dabed5b317ad6e1f20fb161f.tar.gz pdf-over-d278894566013fa4dabed5b317ad6e1f20fb161f.tar.bz2 pdf-over-d278894566013fa4dabed5b317ad6e1f20fb161f.zip |
Display correct text on lang change
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@276 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java index 49313c78..15cec1f7 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java +++ b/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)); |