A whole load of fixes

This commit is contained in:
Sauilitired 2014-11-21 23:45:46 +01:00
parent c25eccf4a0
commit 75a5a76fe9
61 changed files with 401 additions and 626 deletions

View file

@ -19,23 +19,18 @@ import java.util.Map;
*/
public class YamlTranslationFile extends TranslationFile {
private File path;
private TranslationLanguage language;
private String name;
final private TranslationLanguage language;
final private String name;
final private TranslationManager manager;
private File file;
private HashMap<String, String> map;
private String[] header;
private boolean fancyHead = false;
private YamlTranslationFile instance;
private TranslationManager manager;
/**
* Reload
* YAML Object
*/
public void reload() {
this.map = new HashMap<String, String>();
this.read();
}
private Yaml yaml;
/**
* Constructor
@ -45,7 +40,6 @@ public class YamlTranslationFile extends TranslationFile {
* @param name project name
*/
public YamlTranslationFile(File path, TranslationLanguage language, String name, TranslationManager manager) {
this.path = path;
this.language = language;
this.name = name;
this.manager = manager;
@ -68,6 +62,14 @@ public class YamlTranslationFile extends TranslationFile {
this.instance = this;
}
/**
* Reload
*/
public void reload() {
this.map = new HashMap<String, String>();
this.read();
}
/**
* Set the header
*
@ -164,11 +166,6 @@ public class YamlTranslationFile extends TranslationFile {
}
}
/**
* YAML Object
*/
private Yaml yaml;
/**
* Get the YAML object
*