mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
* Merged Source Code from Development Trunk: Revision 4063 * ************************************************************ - Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - This will be the Source for the Beta 2011 Test git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
60 lines
1.3 KiB
C++
60 lines
1.3 KiB
C++
#ifndef _LOCALIZEDSTRINGS_H_
|
|
#define _LOCALIZEDSTRINGS_H_
|
|
|
|
#include <vfs/Core/vfs_path.h>
|
|
|
|
//#define USE_LOCALIZATION
|
|
|
|
namespace Loc
|
|
{
|
|
enum Language
|
|
{
|
|
Chinese,
|
|
Dutch,
|
|
English,
|
|
French,
|
|
German,
|
|
Italian,
|
|
Polish,
|
|
Russian,
|
|
Taiwanese,
|
|
};
|
|
|
|
static const wchar_t* LangSuffix [] = {
|
|
L"_cn",
|
|
L"_nl",
|
|
L"_en",
|
|
L"_fr",
|
|
L"_de",
|
|
L"_it",
|
|
L"_pl",
|
|
L"_ru",
|
|
L"_tw",
|
|
};
|
|
|
|
enum Topic
|
|
{
|
|
AIM_BIOGRAPHY,
|
|
AIM_HISTORY,
|
|
AIM_POLICY,
|
|
GAME_STRINGS,
|
|
DIALOGUE,
|
|
};
|
|
|
|
bool AssociateWithFile(Topic t, vfs::Path const& sFilename);
|
|
bool AssociateWithFile(Topic t, vfs::Path const& sFilename, vfs::String const& section);
|
|
|
|
bool GetString(Topic t, vfs::String const& section, vfs::String const& key, vfs::String& value);
|
|
bool GetString(Topic t, vfs::String const& section, int key, vfs::String& value);
|
|
|
|
bool GetString(Topic t, vfs::String const& section, vfs::String const& key, vfs::String::char_t* value, vfs::UInt32 len);
|
|
bool GetString(Topic t, vfs::String const& section, int key, vfs::String::char_t* value, vfs::UInt32 len);
|
|
|
|
vfs::String const& GetString(Topic t, vfs::String const& section, vfs::String const& key);
|
|
vfs::String const& GetString(Topic t, vfs::String const& section, int key);
|
|
};
|
|
|
|
extern bool g_bUseXML_Strings;
|
|
|
|
#endif // _LOCALIZEDSTRINGS_H_
|