Author: nextgens
Date: 2008-08-19 19:21:44 +0000 (Tue, 19 Aug 2008)
New Revision: 22035
Modified:
trunk/freenet/src/freenet/l10n/L10n.java
Log:
L10n: ditto
Modified: trunk/freenet/src/freenet/l10n/L10n.java
===================================================================
--- trunk/freenet/src/freenet/l10n/L10n.java 2008-08-19 19:17:03 UTC (rev
22034)
+++ trunk/freenet/src/freenet/l10n/L10n.java 2008-08-19 19:21:44 UTC (rev
22035)
@@ -27,9 +27,9 @@
*/
public class L10n {
public static final String CLASS_NAME = "L10n";
- public static final String PREFIX = "freenet.l10n.";
- public static final String SUFFIX = ".properties";
- public static final String OVERRIDE_SUFFIX = ".override" + SUFFIX;
+ private static final String PREFIX = "freenet.l10n.";
+ private static final String SUFFIX = ".properties";
+ private static final String OVERRIDE_SUFFIX = ".override" + SUFFIX;
public static final LANGUAGE FALLBACK_DEFAULT = LANGUAGE.ENGLISH;
@@ -182,7 +182,7 @@
// Set the value of the override
translationOverride.putOverwrite(key, value);
- Logger.normal("L10n", "Got a new translation
key: set the Override!");
+ Logger.normal(CLASS_NAME, "Got a new
translation key: set the Override!");
}
// Save the file to disk
@@ -198,15 +198,15 @@
// We don't set deleteOnExit on it : if the save
operation fails, we want a backup
// FIXME: REDFLAG: not symlink-race proof!
File tempFile = new File(finalFile.getParentFile(),
finalFile.getName()+".bak");
- Logger.minor("L10n", "The temporary filename is : " +
tempFile);
+ Logger.minor(CLASS_NAME, "The temporary filename is : "
+ tempFile);
fos = new FileOutputStream(tempFile);
L10n.translationOverride.writeTo(fos);
FileUtil.renameTo(tempFile, finalFile);
- Logger.normal("L10n", "Override file saved
successfully!");
+ Logger.normal(CLASS_NAME, "Override file saved
successfully!");
} catch (IOException e) {
- Logger.error("L10n", "Error while saving the
translation override: "+ e.getMessage(), e);
+ Logger.error(CLASS_NAME, "Error while saving the
translation override: "+ e.getMessage(), e);
} finally {
Closer.close(fos);
}
@@ -397,7 +397,7 @@
if(in != null)
result = SimpleFieldSet.readFrom(in, false,
false);
} catch (Exception e) {
- Logger.error("L10n", "Error while loading the l10n file
from " + lang.getL10nFilename() + " :" + e.getMessage(), e);
+ Logger.error(CLASS_NAME, "Error while loading the l10n
file from " + lang.getL10nFilename() + " :" + e.getMessage(), e);
result = null;
} finally {
Closer.close(in);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs