|
Planeshift
|
Localization class for languages. More...
#include <localization.h>
Public Member Functions | |
| bool | FileExists (const csString &fileName) |
| This is a utility function which queries for vfs and then checks for the file. | |
| csString | FindLocalizedFile (const csString &shortPath) |
| void | Initialize (iObjectRegistry *_object_reg) |
| psLocalization () | |
| void | SetLanguage (const csString &lang) |
| const csString & | Translate (const csString &orig) |
| Translates string 'orig' using stringtable of the current language. | |
| ~psLocalization () | |
Protected Member Functions | |
| void | ClearStringTable () |
| void | WriteStringTable () |
Protected Attributes | |
| csString | authors |
| bool | dirty |
| csString | filename |
| csString | language |
| iObjectRegistry * | object_reg |
| psStringTableHash | stringTbl |
Localization class for languages.
Definition at line 45 of file localization.h.
| psLocalization::psLocalization | ( | ) |
| psLocalization::~psLocalization | ( | ) |
| void psLocalization::ClearStringTable | ( | ) | [protected] |
| bool psLocalization::FileExists | ( | const csString & | fileName | ) |
This is a utility function which queries for vfs and then checks for the file.
| csString psLocalization::FindLocalizedFile | ( | const csString & | shortPath | ) |
| void psLocalization::Initialize | ( | iObjectRegistry * | _object_reg | ) |
| void psLocalization::SetLanguage | ( | const csString & | lang | ) |
| const csString& psLocalization::Translate | ( | const csString & | orig | ) |
Translates string 'orig' using stringtable of the current language.
| void psLocalization::WriteStringTable | ( | ) | [protected] |
csString psLocalization::authors [protected] |
Definition at line 77 of file localization.h.
bool psLocalization::dirty [protected] |
Definition at line 78 of file localization.h.
csString psLocalization::filename [protected] |
Definition at line 76 of file localization.h.
csString psLocalization::language [protected] |
Definition at line 75 of file localization.h.
iObjectRegistry* psLocalization::object_reg [protected] |
Definition at line 80 of file localization.h.
psStringTableHash psLocalization::stringTbl [protected] |
Definition at line 79 of file localization.h.
1.7.3