public class LanguageSettings extends Object
Constructor and Description |
---|
LanguageSettings(PhantomRuntime runtime,
String id)
Creates the instance of the language file.
|
Modifier and Type | Method and Description |
---|---|
void |
addErrors(Collection<String> errors)
Fills the list of errors.
|
String |
getName()
Gets the language name.
|
String |
getTextFileName()
Gets the text file name, never null.
|
String |
getTooltipFileName()
Gets the tooltip file name, null for none.
|
String |
getTranslationFileName()
Gets the translation file name, null for none.
|
int |
load()
Performs a load or reload as required.
|
boolean |
needsLoad()
Checks for load required.
|
public LanguageSettings(PhantomRuntime runtime, String id) throws IOException
IOException
- If not found in the runtime.public String getName()
public String getTextFileName()
public String getTranslationFileName()
public String getTooltipFileName()
public void addErrors(Collection<String> errors)
public boolean needsLoad()
public int load() throws IOException
IOException
- For I/O errors.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.