OpenBarnyard
 
Loading...
Searching...
No Matches
ALocaleManager.cpp
Go to the documentation of this file.
1#include "pch.h"
2#include "ALocaleManager.h"
3
4//-----------------------------------------------------------------------------
5// Enables memory debugging.
6// Note: Should be the last include!
7//-----------------------------------------------------------------------------
9
11
13 : T2Locale( Lang_NUMOF, 307200, Toshi::GetGlobalAllocator()->Malloc( 307200 ) )
14{
15}
16
20
22{
23 TASSERT( a_eLang >= 0 && a_eLang < Lang_NUMOF );
24 return s_pLangDataFileNames[ a_eLang ];
25}
26
28{
29 return GetLanguageName( m_LangId );
30}
31
33{
34 switch ( a_eLang )
35 {
36 case Lang_German: return "GER/";
37 case Lang_Spanish: return "SPA/";
38 case Lang_French: return "FRE/";
39 default: return "";
40 }
41}
42
44{
45 switch ( a_eLang )
46 {
47 case Lang_Japanese: return "JPN";
48 case Lang_German: return "DEU";
49 case Lang_Italian: return "ITA";
50 case Lang_Spanish: return "ESL";
51 case Lang_French: return "FRE";
52 case Lang_Netherlandic: return "NLD";
53 default: return "ENG";
54 }
55}
#define TASSERT(X,...)
Definition Defines.h:138
#define TOSHI_NAMESPACE_USING
Definition Defines.h:46
TFORCEINLINE T2Allocator * GetGlobalAllocator()
Definition T2Allocator.h:49
char TCHAR
Definition Typedefs.h:20
static const TCHAR * GetLanguageName(Lang a_eLang)
const TCHAR * GetCurrentLanguageName()
static constexpr const TCHAR * s_pLangDataFileNames[]
virtual const TCHAR * GetLanguageFilename(Lang a_eLang) override
const TCHAR * GetVOLocaleDir(Lang a_eLang)