Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

psLocalization Class Reference

Localization class for languages. More...

#include <localization.h>

List of all members.

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

Detailed Description

Localization class for languages.

Definition at line 45 of file localization.h.


Constructor & Destructor Documentation

psLocalization::psLocalization ( )
psLocalization::~psLocalization ( )

Member Function Documentation

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]

Member Data Documentation

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.

Definition at line 79 of file localization.h.


The documentation for this class was generated from the following file: