Author: toad
Date: 2007-06-21 22:03:10 +0000 (Thu, 21 Jun 2007)
New Revision: 13700
Modified:
trunk/freenet/src/freenet/l10n/L10n.java
Log:
Fix annoying log message
Modified: trunk/freenet/src/freenet/l10n/L10n.java
===================================================================
--- trunk/freenet/src/freenet/l10n/L10n.java 2007-06-21 21:50:34 UTC (rev
13699)
+++ trunk/freenet/src/freenet/l10n/L10n.java 2007-06-21 22:03:10 UTC (rev
13700)
@@ -223,8 +223,10 @@
}
if(result != null)
return result;
- else
+ else {
+ Logger.normal(CLASS_NAME, "The translation for " + key
+ " hasn't been found ("+currentClass.selectedLanguage+")! please tell the
maintainer.");
return (returnNullIfNotFound ? null :
getDefaultString(key));
+ }
}
/**
@@ -262,11 +264,10 @@
}
if(result != null) {
- Logger.normal(CLASS_NAME, "The translation for " + key
+ " hasn't been found! please tell the maintainer.");
return result;
}
- Logger.error(CLASS_NAME, "The translation for " + key + "
hasn't been found!");
- System.err.println("The translation for " + key + " hasn't been
found!");
+ Logger.error(CLASS_NAME, "The default translation for " + key +
" hasn't been found!");
+ System.err.println("The default translation for " + key + "
hasn't been found!");
new Exception().printStackTrace();
return key;
}