From a465414ecb2bc2792bb56a17d5ae4e883d8c3a88 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 12 Dec 2013 13:31:47 +0100 Subject: Moved harded messages to common.properties --- .../pdfas/common/messages/MessageResolver.java | 2 +- .../resources/resources/messages/common.properties | 41 ++++++++++++++-------- 2 files changed, 28 insertions(+), 15 deletions(-) (limited to 'pdf-as-common/src') diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/messages/MessageResolver.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/messages/MessageResolver.java index 5013d431..34108978 100644 --- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/messages/MessageResolver.java +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/messages/MessageResolver.java @@ -15,7 +15,7 @@ public class MessageResolver { private static ResourceBundle bundle; static { - ResourceBundle bundle = ResourceBundle.getBundle(messageResource); + bundle = ResourceBundle.getBundle(messageResource); if(bundle == null) { logger.error("Failed to load resource bundle!!"); System.err.println("Failed to load resource bundle!!"); diff --git a/pdf-as-common/src/main/resources/resources/messages/common.properties b/pdf-as-common/src/main/resources/resources/messages/common.properties index aac8d173..d4c58888 100644 --- a/pdf-as-common/src/main/resources/resources/messages/common.properties +++ b/pdf-as-common/src/main/resources/resources/messages/common.properties @@ -1,24 +1,37 @@ # PDF Permission Errors -error.pdf.perm.01=You do not have permission to extract images. +error.pdf.perm.01=You do not have permission to extract images #PDF IO Errors -error.pdf.io.01=Failed to read original PDF Document into PDDocument. -error.pdf.io.02=Failed to write PDF Document. +error.pdf.io.01=Failed to read original PDF Document into PDDocument +error.pdf.io.02=Failed to write PDF Document +error.pdf.io.03=Security Layer communication error +error.pdf.io.04=Failed to write PDF Document +error.pdf.io.05=Security Layer element not available #PDF Stamper Errors -error.pdf.stamp.01=Failed to load true type font. +error.pdf.stamp.01=Failed to load true type font error.pdf.stamp.02=PDF/A modus requires an embeddable true type font -error.pdf.stamp.03=Table is not defined. -error.pdf.stamp.04=Image file doesn't exist. -error.pdf.stamp.05=Unable to create PDF table. -error.pdf.stamp.06=Failed to create visual signature object. -error.pdf.stamp.07=The provided page is out of range. -error.pdf.stamp.08=Failed to write the visual signature object. +error.pdf.stamp.03=Table is not defined +error.pdf.stamp.04=Image file doesn't exist +error.pdf.stamp.05=Unable to create PDF table +error.pdf.stamp.06=Failed to create visual signature object +error.pdf.stamp.07=The provided page is out of range +error.pdf.stamp.08=Failed to write the visual signature object +error.pdf.stamp.09=no suitable placeholder found and STRICT matching mode requested +error.pdf.stamp.10=no stamper available +error.pdf.stamp.11=Failed to calculate page length #Signature errors -error.pdf.sig.01=Failed to create signature! -error.pdf.sig.02=Failed to open keystore! +error.pdf.sig.01=Failed to create signature +error.pdf.sig.02=Failed to open keystore +error.pdf.sig.03=Failed to start signature process +error.pdf.sig.04=Invalid PDF-AS status handed over +error.pdf.sig.05=Failed to continue signature process +error.pdf.sig.06=Failed to finish signature process +error.pdf.sig.07=Failed to determine Signature Profile +error.pdf.sig.08=Signature created by the BKU is not valid + #Signature verification errors -error.pdf.verify.01="No signed data available" -error.pdf.verify.02="Verification failed!" \ No newline at end of file +error.pdf.verify.01=No signed data available +error.pdf.verify.02=Verification failed \ No newline at end of file -- cgit v1.2.3