summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:57 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:57 +0000
commit0efb5bffe713f706523f58faadb06226fdf60afe (patch)
tree3f1ee799b13602b3b610b02942c76b362b3d8410 /trunk/pdf-over-gui
parent1acc2e114d73658c12c9f82ed7fa9bd8ecf16f37 (diff)
downloadpdf-over-0efb5bffe713f706523f58faadb06226fdf60afe.tar.gz
pdf-over-0efb5bffe713f706523f58faadb06226fdf60afe.tar.bz2
pdf-over-0efb5bffe713f706523f58faadb06226fdf60afe.zip
Externalize remaining strings
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12749 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java3
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java5
-rw-r--r--trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties4
3 files changed, 7 insertions, 5 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 e2379926..233687c4 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
@@ -118,8 +118,7 @@ public class PositioningComposite extends StateComposite {
private void requestFocus()
{
this.frame.requestFocus();
- boolean b = setFocus();
- log.debug("Requesting focus: " + b);
+ setFocus();
}
/**
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java
index 3e0d772b..0f8f92c6 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java
@@ -35,6 +35,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import at.asit.pdfover.gui.Constants;
+import at.asit.pdfover.gui.Messages;
import com.sun.pdfview.PDFFile;
import com.sun.pdfview.PDFPage;
@@ -238,7 +239,7 @@ public class SignaturePanel extends JPanel {
g.fillRect(0, 0, getWidth(), getHeight());
if (this.currentImage == null) {
g.setColor(Color.black);
- g.drawString("No page selected", getWidth() / 2 - 30,
+ g.drawString(Messages.getString("error.SignaturePanel.NoPage"), getWidth() / 2 - 30, //$NON-NLS-1$
getHeight() / 2);
if (this.currentPage != null) {
showPage(this.currentPage);
@@ -301,7 +302,7 @@ public class SignaturePanel extends JPanel {
showPage(this.currentPage);
}
g.setColor(Color.black);
- g.drawString("Could not render page", getWidth() / 2 - 30,
+ g.drawString(Messages.getString("error.SignaturePanel.NoRender"), getWidth() / 2 - 30, //$NON-NLS-1$
getHeight() / 2);
}
}
diff --git a/trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties b/trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
index 6a1559b8..51a5ae9a 100644
--- a/trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
+++ b/trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
@@ -35,7 +35,7 @@ argument.invalid.number=Phone Number Argument invalid! Use:
argument.invalid.output=Output folder argument invalid! Use:
argument.invalid.password=Mobile BKU password invalid! Use:
argument.invalid.proxyhost=Proxy host argument invalid! Use:
-argument.invalid.proxyport=Proxy port argument invalid! Use:
+argument.invalid.proxyport=Proxy port argument invalid! Use:
bku_selection.card=CARD
bku_selection.mobile=MOBILE
common.AllExtension_Description=All files
@@ -69,6 +69,8 @@ error.PrepareDocument=Failed to prepare document for signature.
error.Retry=Retry
error.SaveOutputFolder=Failed to save signed document to configured output folder.
error.Signatur=Signature error
+error.SignaturePanel.NoPage="No page selected"
+error.SignaturePanel.NoRender="Could not render page"
error.TanTooLong=Entered TAN too long
error.Unexpected=Unexpected Error
error.title=Error