Author: bombe
Date: 2007-10-31 17:12:22 +0000 (Wed, 31 Oct 2007)
New Revision: 15655

Modified:
   trunk/apps/Echo/
   trunk/apps/Echo/src/plugins/echo/i18n/I18n.java
Log:
 r12733 at natrium:  bombe | 2007-10-31 13:40:47 +0100
 fix NPE by wrong resource name for i18n



Property changes on: trunk/apps/Echo
___________________________________________________________________
Name: svk:merge
   + 6a5e1407-ac3d-0410-81af-9028a69beae8:/branch/echo:12733

Modified: trunk/apps/Echo/src/plugins/echo/i18n/I18n.java
===================================================================
--- trunk/apps/Echo/src/plugins/echo/i18n/I18n.java     2007-10-30 22:18:58 UTC 
(rev 15654)
+++ trunk/apps/Echo/src/plugins/echo/i18n/I18n.java     2007-10-31 17:12:22 UTC 
(rev 15655)
@@ -59,7 +59,7 @@
                if(props == null)
                        props = new Properties();
                try {
-                       
props.load(INSTANCE.getClass().getResourceAsStream("/i18n/" + PREFIX + language 
+ SUFFIX));
+                       
props.load(INSTANCE.getClass().getResourceAsStream(PREFIX + language + SUFFIX));
                } catch (IOException ioe) {
                        Logger.error("I18n", "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