= Minor formatting tweak
This commit is contained in:
@@ -30,6 +30,7 @@ public class Localizer
|
|||||||
private static void Warn(String str) { GlobalLog.Warn(LogFilter.Strings, str); }
|
private static void Warn(String str) { GlobalLog.Warn(LogFilter.Strings, str); }
|
||||||
private static void Error(String str) { GlobalLog.Error(LogFilter.Strings, str); }
|
private static void Error(String str) { GlobalLog.Error(LogFilter.Strings, str); }
|
||||||
|
|
||||||
|
|
||||||
// Structure used for holding a pair of strings and any other info we need
|
// Structure used for holding a pair of strings and any other info we need
|
||||||
// about localized information that is being looked up.
|
// about localized information that is being looked up.
|
||||||
private static class LocInfo
|
private static class LocInfo
|
||||||
@@ -122,6 +123,7 @@ public class Localizer
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
String fileContents = ReadFileAsString(filename, Charset.defaultCharset());
|
String fileContents = ReadFileAsString(filename, Charset.defaultCharset());
|
||||||
|
|
||||||
if(fileContents == null)
|
if(fileContents == null)
|
||||||
{
|
{
|
||||||
File file = new File(filename);
|
File file = new File(filename);
|
||||||
@@ -143,6 +145,7 @@ public class Localizer
|
|||||||
public static void SaveLocToDisk()
|
public static void SaveLocToDisk()
|
||||||
{
|
{
|
||||||
Log("Attempting to write updated localization file");
|
Log("Attempting to write updated localization file");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
PrintWriter pw = new PrintWriter(filename);
|
PrintWriter pw = new PrintWriter(filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user