aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/org/apache/fop/apps/AWTStarter.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/org/apache/fop/apps/AWTStarter.java b/src/org/apache/fop/apps/AWTStarter.java
index c956da97f..3c2b06b60 100644
--- a/src/org/apache/fop/apps/AWTStarter.java
+++ b/src/org/apache/fop/apps/AWTStarter.java
@@ -71,9 +71,13 @@ public class AWTStarter extends CommandLineStarter {
String language = commandLineOptions.getLanguage();
- if (language == null)
- language = System.getProperty("user.language");
-
+ if (language == null) {
+ try {
+ language = System.getProperty("user.language");
+ } catch(SecurityException se) {
+ // if this is running in a secure place
+ }
+ }
resource = getResourceBundle(TRANSLATION_PATH + "resources."
+ language);