Author: fred
Date: 2007-08-13 15:37:07 +0000 (Mon, 13 Aug 2007)
New Revision: 14649

Modified:
   trunk/plugins/Echo/src/plugins/echo/i18n/I18n.java
Log:
Load the translation file from the jar

Modified: trunk/plugins/Echo/src/plugins/echo/i18n/I18n.java
===================================================================
--- trunk/plugins/Echo/src/plugins/echo/i18n/I18n.java  2007-08-13 15:30:23 UTC 
(rev 14648)
+++ trunk/plugins/Echo/src/plugins/echo/i18n/I18n.java  2007-08-13 15:37:07 UTC 
(rev 14649)
@@ -60,8 +60,8 @@
                if(props == null)
                        props = new Properties();
                try {
-//                     props.load(getClass().getResourceAsStream("/i18n/" + 
PREFIX + language + SUFFIX));
-                       props.load(new 
FileInputStream("/home/fred/prog/soc/trunk/plugins/Echo/src/plugins/echo/i18n/" 
+ PREFIX + language + SUFFIX));
+                       props.load(getClass().getResourceAsStream("/i18n/" + 
PREFIX + language + SUFFIX));
+//                     props.load(new 
FileInputStream("/home/fred/prog/soc/trunk/plugins/Echo/src/plugins/echo/i18n/" 
+ PREFIX + language + SUFFIX));
                } catch (IOException ioe) {
                        Logger.error(this, "IOException while accessing the " + 
language +"file" + ioe.getMessage(), ioe);
                        throw new MissingResourceException("Unable to load the 
translation file for " + language, "i18n", language);


Reply via email to