summaryrefslogtreecommitdiffstats
path: root/Essentials2Compat/src/com/earth2me/essentials/EssentialsConf.java
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2013-04-06 04:02:15 +0200
committersnowleo <schneeleo@gmail.com>2013-04-06 04:05:37 +0200
commitfd1c7f4fccad0367e14e591fe13e674da241cc90 (patch)
treea20690539458d58f44f9e3048774abef0ee73bd0 /Essentials2Compat/src/com/earth2me/essentials/EssentialsConf.java
parentd17d7153dc50ed856f3f93396928fd188ff95029 (diff)
downloadEssentials-fd1c7f4fccad0367e14e591fe13e674da241cc90.tar
Essentials-fd1c7f4fccad0367e14e591fe13e674da241cc90.tar.gz
Essentials-fd1c7f4fccad0367e14e591fe13e674da241cc90.tar.lz
Essentials-fd1c7f4fccad0367e14e591fe13e674da241cc90.tar.xz
Essentials-fd1c7f4fccad0367e14e591fe13e674da241cc90.zip
Moving all default messages back to the code, where they should be
Also tweaking I18n class and YamlStorageWriter a bit
Diffstat (limited to 'Essentials2Compat/src/com/earth2me/essentials/EssentialsConf.java')
-rw-r--r--Essentials2Compat/src/com/earth2me/essentials/EssentialsConf.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/Essentials2Compat/src/com/earth2me/essentials/EssentialsConf.java b/Essentials2Compat/src/com/earth2me/essentials/EssentialsConf.java
index a76ebbe6c..936c790ae 100644
--- a/Essentials2Compat/src/com/earth2me/essentials/EssentialsConf.java
+++ b/Essentials2Compat/src/com/earth2me/essentials/EssentialsConf.java
@@ -47,7 +47,7 @@ public class EssentialsConf extends YamlConfiguration
{
if (!configFile.getParentFile().mkdirs())
{
- LOGGER.log(Level.SEVERE, _("failedToCreateConfig", configFile.toString()));
+ LOGGER.log(Level.SEVERE, _("Failed to create config {0}", configFile.toString()));
}
}
// This will delete files where the first character is 0. In most cases they are broken.
@@ -90,22 +90,22 @@ public class EssentialsConf extends YamlConfiguration
{
if (templateName != null)
{
- LOGGER.log(Level.INFO, _("creatingConfigFromTemplate", configFile.toString()));
+ LOGGER.log(Level.INFO, _("Creating config from template: {0}", configFile.toString()));
createFromTemplate();
}
else
{
try
{
- LOGGER.log(Level.INFO, _("creatingEmptyConfig", configFile.toString()));
+ LOGGER.log(Level.INFO, _("Creating empty config: {0}", configFile.toString()));
if (!configFile.createNewFile())
{
- LOGGER.log(Level.SEVERE, _("failedToCreateConfig", configFile.toString()));
+ LOGGER.log(Level.SEVERE, _("Failed to create config {0}", configFile.toString()));
}
}
catch (IOException ex)
{
- LOGGER.log(Level.SEVERE, _("failedToCreateConfig", configFile.toString()), ex);
+ LOGGER.log(Level.SEVERE, _("Failed to create config {0}", configFile.toString()), ex);
}
}
}
@@ -175,7 +175,7 @@ public class EssentialsConf extends YamlConfiguration
istr = resourceClass.getResourceAsStream(templateName);
if (istr == null)
{
- LOGGER.log(Level.SEVERE, _("couldNotFindTemplate", templateName));
+ LOGGER.log(Level.SEVERE, _("Could not find template {0}", templateName));
return;
}
ostr = new FileOutputStream(configFile);
@@ -190,7 +190,7 @@ public class EssentialsConf extends YamlConfiguration
}
catch (IOException ex)
{
- LOGGER.log(Level.SEVERE, _("failedToWriteConfig", configFile.toString()), ex);
+ LOGGER.log(Level.SEVERE, _("Failed to write config {0}", configFile.toString()), ex);
}
finally
{
@@ -214,7 +214,7 @@ public class EssentialsConf extends YamlConfiguration
}
catch (IOException ex)
{
- LOGGER.log(Level.SEVERE, _("failedToCloseConfig", configFile.toString()), ex);
+ LOGGER.log(Level.SEVERE, _("Failed to close config {0}", configFile.toString()), ex);
}
}
}