summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src
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
commit1acc2e114d73658c12c9f82ed7fa9bd8ecf16f37 (patch)
tree95bb330987c16d68dd0eb9b52a77df245434b9d2 /trunk/pdf-over-gui/src
parenta3b64f6987968d343176f596af0e3f2f4653639b (diff)
downloadpdf-over-1acc2e114d73658c12c9f82ed7fa9bd8ecf16f37.tar.gz
pdf-over-1acc2e114d73658c12c9f82ed7fa9bd8ecf16f37.tar.bz2
pdf-over-1acc2e114d73658c12c9f82ed7fa9bd8ecf16f37.zip
Use one format String for error message
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12748 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java3
-rw-r--r--trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties3
2 files changed, 2 insertions, 4 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
index 43b84b24..b2df6296 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
@@ -209,8 +209,7 @@ public class DataSourceSelectComposite extends StateComposite {
// Only taking first file ...
File file = new File(files[0]);
if (!file.exists()) {
- log.error(Messages.getString("common.file") + " " + files[0] + //$NON-NLS-1$ //$NON-NLS-2$
- Messages.getString("common.file_not_exists")); //$NON-NLS-1$
+ log.error(String.format(Messages.getString("error.FileNotExist"), files[0])); //$NON-NLS-1$
return;
}
DataSourceSelectComposite.this.setSelected(file);
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 e2b4246a..6a1559b8 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
@@ -48,8 +48,6 @@ common.PDFExtension_Description=PDF documents
common.PNGExtension_Description=PNG files
common.Save=Save
common.browse=Browse
-common.file=File:
-common.file_not_exists=does not exist!
common.open=Open
config.Advanced=Advanced
config.Simple=Simple
@@ -61,6 +59,7 @@ error.EnteredReferenceValue=You entered the reference value!
error.FailedToGetSignedDocument=Failed to get signed document.
error.FailedToLoadEmblem=Failed to load the signature logo
error.FailedToSaveSettings=Failed to save configuration file!
+error.FileNotExist=File %s does not exist!
error.Initialization=Initialization failed. Please check your configuration.
error.InvalidBKU=Invalid BKU selection. Please check.
error.InvalidPhoneNumber=Given phone number is invalid! Example: +43664123456789