Advanced Strategic Command
Public Member Functions | List of all members
Locale Class Reference

#include <i18n.h>

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". More...
 
 ~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 ( )
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
filenameThe base filename onto which the locale is appended
nativeMessageLanguageif 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: