summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:56 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:56 +0000
commita3b64f6987968d343176f596af0e3f2f4653639b (patch)
treeaee999ec26cc41dbb07c6469176194cc9c204dae /trunk/pdf-over-gui/src/main
parent220fd02d05c701ebfd99c72068cd58b9427a15c4 (diff)
downloadpdf-over-a3b64f6987968d343176f596af0e3f2f4653639b.tar.gz
pdf-over-a3b64f6987968d343176f596af0e3f2f4653639b.tar.bz2
pdf-over-a3b64f6987968d343176f596af0e3f2f4653639b.zip
Externalize path exceptions
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12747 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java8
-rw-r--r--trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties74
2 files changed, 41 insertions, 41 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java
index 8e70f502..72e047c4 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java
@@ -455,16 +455,14 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite {
String foldername = this.configurationContainer.getOutputFolder();
- if (foldername != null && !foldername.equals("")) {
+ if (foldername != null && !foldername.equals("")) { //$NON-NLS-1$
File outputFolder = new File(foldername);
if (!outputFolder.exists()) {
- throw new Exception("Path " + outputFolder.getAbsolutePath()
- + " doesnot exists!");
+ throw new Exception(String.format(Messages.getString("exception.PathNotExist"), outputFolder.getAbsolutePath())); //$NON-NLS-1$
}
if (!outputFolder.isDirectory()) {
- throw new Exception("Path " + outputFolder.getAbsolutePath()
- + " is not a directory!");
+ throw new Exception(String.format(Messages.getString("exception.PathNotDirectory"), outputFolder.getAbsolutePath())); //$NON-NLS-1$
}
}
}
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 35d33c01..e2b4246a 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
@@ -8,7 +8,7 @@ TrustedSocketFactory.FailedToCreateSecureConnection=Failed to create secure netw
advanced_config.AutoPosition=Automatic positioning
advanced_config.Signature_Title=Signature
advanced_config.BKUSelection_Title=BKU Selection
-advanced_config.OutputFolder=Default output folder\:
+advanced_config.OutputFolder=Default output folder:
advanced_config.OutputFolder.Dialog=Select a folder
advanced_config.OutputFolder.Dialog_Title=Select Output folder
advanced_config.OutputFolder_Title=Output location
@@ -16,26 +16,26 @@ advanced_config.SigPHTransparency=Signature placeholder transparency
advanced_config.SigPHTransparencyMax=Opaque
advanced_config.SigPHTransparencyMin=Invisible
argument.error.output=is not a directory
-argument.help.bku=Select the BKU to use values are\: LOCAL, MOBILE (example\: -b <option>
-argument.help.config=Defines which configuration file to use. Example\: -c <config file>
-argument.help.emblem=Sets the signature logo file to use for the signature. Example\: -e <emblem file>
+argument.help.bku=Select the BKU to use values are: LOCAL, MOBILE (example: -b <option>
+argument.help.config=Defines which configuration file to use. Example: -c <config file>
+argument.help.emblem=Sets the signature logo file to use for the signature. Example: -e <emblem file>
argument.help.help=shows this help message
-argument.help.input=Sets the document to sign. Example\: -i <input document>
-argument.help.number=Sets the telephone number to use for mobile bku. Example\: -n <number>
-argument.help.output=Sets the output folder to use. Example\: -o <folder>
-argument.help.password=Sets the password to use for mobile bku. Example\: -p <password>
-argument.help.proxyhost=Sets the proxy host to use. Example\: -proxy <hostname/IP>
-argument.help.proxyport=Sets the proxy port to use. Example\: -proxyport <port>
-argument.info.help=The following options are available\:
-argument.invalid.bku=BKU Argument invalid\! Use\:
-argument.invalid.config=Configuration File Argument invalid\! Use\:
-argument.invalid.emblem=Signature logo argument invalid\! Use\:
-argument.invalid.input=Document to sign argument invalid\! Use\:
-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.help.input=Sets the document to sign. Example: -i <input document>
+argument.help.number=Sets the telephone number to use for mobile bku. Example: -n <number>
+argument.help.output=Sets the output folder to use. Example: -o <folder>
+argument.help.password=Sets the password to use for mobile bku. Example: -p <password>
+argument.help.proxyhost=Sets the proxy host to use. Example: -proxy <hostname/IP>
+argument.help.proxyport=Sets the proxy port to use. Example: -proxyport <port>
+argument.info.help=The following options are available:
+argument.invalid.bku=BKU Argument invalid! Use:
+argument.invalid.config=Configuration File Argument invalid! Use:
+argument.invalid.emblem=Signature logo argument invalid! Use:
+argument.invalid.input=Document to sign argument invalid! Use:
+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:
bku_selection.card=CARD
bku_selection.mobile=MOBILE
common.AllExtension_Description=All files
@@ -48,8 +48,8 @@ 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.file=File:
+common.file_not_exists=does not exist!
common.open=Open
config.Advanced=Advanced
config.Simple=Simple
@@ -57,13 +57,13 @@ dataSourceSelection.DropLabel=Drag document here
dataSourceSelection.DropLabel2=Or, if you prefer...
dataSourceSelection.browse=Select PDF from your computer
error.Details=Details
-error.EnteredReferenceValue=You entered the reference value\!
+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.FailedToSaveSettings=Failed to save configuration file!
error.Initialization=Initialization failed. Please check your configuration.
error.InvalidBKU=Invalid BKU selection. Please check.
-error.InvalidPhoneNumber=Given phone number is invalid\! Example\: +43664123456789
+error.InvalidPhoneNumber=Given phone number is invalid! Example: +43664123456789
error.InvalidSettings=Invalid settings are still present. Please check your input.
error.LocalBKU=Please check if a local BKU is running
error.PrepareDocument=Failed to prepare document for signature.
@@ -73,18 +73,19 @@ error.Signatur=Signature error
error.TanTooLong=Entered TAN too long
error.Unexpected=Unexpected Error
error.title=Error
-exception.InvalidEmblemFile=is an invalid signature logo file\!
+exception.InvalidEmblemFile=is an invalid signature logo file!
exception.InvalidPort=is invalid has to be between 1 and
-exception.PasswordTooLong=Given password is too long\!
-exception.PasswordTooShort=Given password is too short\!
-waiting.message=Signature creation in progress ...
+exception.PasswordTooLong=Given password is too long!
+exception.PasswordTooShort=Given password is too short!
+exception.PathNotDirectory=Path %s does not denote a directory!
+exception.PathNotExist=Path %s does not exist!
main.configuration=Configuration
main.done=Finish
main.position=Positioning
main.signature=Signing
main.title=PDF-Over
-mobileBKU.number=Number\:
-mobileBKU.password=Password\:
+mobileBKU.number=Number:
+mobileBKU.password=Password:
output.link_open_message=You can open the signed file <a>here</a>
output.link_save_message=You can save the signed file
output.success_message=Signature was successful
@@ -92,13 +93,14 @@ simple_config.EmblemEmpty=Drag and Drop an image here\nor use the browse button
simple_config.Emblem_Title=Signature logo
simple_config.ExampleNumber=+43676123456789
simple_config.MobileBKU_Title=Mobile signature
-simple_config.PhoneNumber=Mobile number\:
-simple_config.ProxyHost=Host\:
+simple_config.PhoneNumber=Mobile number:
+simple_config.ProxyHost=Host:
simple_config.ProxyHostTemplate=Hostname or IP of proxy server
-simple_config.ProxyPort=Port\:
+simple_config.ProxyPort=Port:
simple_config.ProxyPortTemplate=port proxy server [1-65535]
simple_config.Proxy_Title=Proxy
simple_config.ClearEmblem=Clear
tanEnter.ReferenceValue=Reference value
-tanEnter.TAN=TAN\:
-tanEnter.tries=tries left\!
+tanEnter.TAN=TAN:
+tanEnter.tries=tries left!
+waiting.message=Signature creation in progress...