Locale Class Reference

#include <i18n.h>

List of all members.

Public Member Functions

 Locale ()
ASCString getLang ()
ASCString getLocalizedFile (const ASCString &filename, const ASCString &nativeMessageLanguage="")
 Tries to find a file containing native message These files are the filename appended by "." and the locale, for example "en_US".
 ~Locale ()


Detailed Description

Definition at line 28 of file i18n.h.


Constructor & Destructor Documentation

Locale::Locale (  ) 

Definition at line 32 of file i18n.cpp.

References OpaqueLocaleData::canonicalName.

Locale::~Locale (  ) 

Definition at line 83 of file i18n.cpp.


Member Function Documentation

ASCString Locale::getLang (  ) 

Definition at line 43 of file i18n.cpp.

References OpaqueLocaleData::canonicalName, CGameOptions::Instance(), and CGameOptions::languageOverride.

Referenced by getLocalizedFile(), and showSDLInfo().

ASCString Locale::getLocalizedFile ( const ASCString filename,
const ASCString nativeMessageLanguage = "" 
)

Tries to find a file containing native message These files are the filename appended by "." and the locale, for example "en_US".

Parameters:
filename The base filename onto which the locale is appended
nativeMessageLanguage if nonempty, a filename will only be searched if the language is different from the nativeMessageLanguage

Definition at line 52 of file i18n.cpp.

References copytoLower(), exist(), tfindfile::getFoundFileNum(), getLang(), tfindfile::getnextname(), and ASCString::toLower().

Referenced by loadLocalizedMessages().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:46:55 2012 for Advanced Strategic Command by  doxygen 1.5.1