public class YamlTranslationFile extends TranslationFile
Constructor and Description |
---|
YamlTranslationFile(java.io.File path,
TranslationLanguage language,
java.lang.String name,
TranslationManager manager)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String key,
java.lang.String value)
Add a translation
|
YamlTranslationFile
|
fancyHeader(java.lang.String... header)
Set a fancy header
|
TranslationLanguage
|
getLanguage()
Get the translation language
|
org.yaml.snakeyaml.Yaml |
getYaml()
Get the YAML object
|
YamlTranslationFile
|
header(java.lang.String... header)
Set the header
|
YamlTranslationFile
|
read()
Read the file
|
void |
reload()
Reload
|
void |
saveFile()
Save the file
|
public YamlTranslationFile(java.io.File path, TranslationLanguage language, java.lang.String name, TranslationManager manager)
path
- save pathlanguage
- translation languagename
- project namepublic void reload()
public YamlTranslationFile header(java.lang.String... header)
header
- Comment headerpublic YamlTranslationFile fancyHeader(java.lang.String... header)
header
- Comment headerpublic void add(java.lang.String key, java.lang.String value)
add
in
class TranslationFile
key
- translation namevalue
- translation valuepublic TranslationLanguage getLanguage()
getLanguage
in
class TranslationFile
public void saveFile()
saveFile
in
class TranslationFile
public org.yaml.snakeyaml.Yaml getYaml()
public YamlTranslationFile read()
read
in
class TranslationFile