A wrapper around an XmlDictionary used to store localized strings.
More...
|
const string | FileExt = ".locale" |
| The file extensions when this class is stored as a file. More...
|
|
A wrapper around an XmlDictionary used to store localized strings.
◆ LocaleFile()
OmegaGUI.Model.LocaleFile.LocaleFile |
( |
| ) |
|
|
inline |
Base-constructor for XML serialization. Do not call manually!
◆ FromContent()
static XmlDictionary OmegaGUI.Model.LocaleFile.FromContent |
( |
string |
id | ) |
|
|
inlinestatic |
Loads a localization table from an XML file via the ContentManager.
- Parameters
-
id | The ID of the file to load from. |
- Returns
- >The loaded table.
◆ Load()
static XmlDictionary OmegaGUI.Model.LocaleFile.Load |
( |
string |
path | ) |
|
|
inlinestatic |
Loads a localization table from an XML file.
- Parameters
-
path | The file to load from. |
- Returns
- The loaded table.
◆ LoadLang()
static XmlDictionary OmegaGUI.Model.LocaleFile.LoadLang |
( |
string |
language | ) |
|
|
inlinestatic |
Loads a localization table from an XML file if possible.
- Parameters
-
language | The language to load. |
- Returns
- The loaded table or an empty table if not found.
◆ Save()
static void OmegaGUI.Model.LocaleFile.Save |
( |
string |
path, |
|
|
XmlDictionary |
entries |
|
) |
| |
|
inlinestatic |
Saves a localization table in an XML file.
- Parameters
-
path | The file to save in |
entries | The collection of entries to be stored. |
◆ FileExt
const string OmegaGUI.Model.LocaleFile.FileExt = ".locale" |
The file extensions when this class is stored as a file.
◆ Entries
The collection of entries to be stored.
The documentation for this class was generated from the following file:
- OmegaGUI/Model/LocaleFile.cs