= Migrated to CSV

This commit is contained in:
Matthew Cech
2019-06-27 01:00:13 -07:00
parent 610fbdc809
commit b34e9795dc
12 changed files with 145 additions and 593 deletions
+2 -36
View File
@@ -1,14 +1,12 @@
package core;
import java.util.List;
import utils.GlobalLog;
import utils.LogFilter;
// A quick-and-dirty localization tool that scrapes the project for calls to itself, then
// generates/updates a file externally (phrases.config) with all the stub values as keys that
// can then be localized.
public class LocStrings extends BaseLocFile implements IConfigSection
public class LocStrings extends BaseLocFile
{
public static final String HeaderName = "Localized Strings";
public static final String function = "LocStrings.stub";
@@ -17,7 +15,7 @@ public class LocStrings extends BaseLocFile implements IConfigSection
public LocStrings()
{
super(function);
super(HeaderName, function);
GlobalLog.log(LogFilter.Core, "Initializing " + this.getClass().getSimpleName());
@@ -41,36 +39,4 @@ public class LocStrings extends BaseLocFile implements IConfigSection
{
return instance.getKey(stubbedPreviously);
}
@Override
public String getSectionTitle() {
return HeaderName;
}
@Override
public void consume(List<ConfigItem> pairs) {
scrapeAll();
}
@Override
public List<ConfigItem> produce() {
// TODO Auto-generated method stub
return null;
}
// @Override
// public String getHeader() {
// return HeaderName;
// }
//
// @Override
// public void read(String contents) {
// updateLocFromString(contents);
// scrapeAll();
// }
//
// @Override
// public String write() {
// return toString();
// }
}