This commit is contained in:
parent
e9f123dec7
commit
74ac11a27f
40 changed files with 6829 additions and 0 deletions
82
source/locale/textdbase.h
Normal file
82
source/locale/textdbase.h
Normal file
|
@ -0,0 +1,82 @@
|
|||
/*=========================================================================
|
||||
|
||||
textdbase.cpp
|
||||
|
||||
Author: G R Liddon @ Fareham
|
||||
Created: Monday 23rd August 1999
|
||||
Project: TPW PSX
|
||||
Purpose: Language Database Handling Code
|
||||
|
||||
Copyright (c) 1998 / 1999 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __LOCALE_TEXTDBASE_H__
|
||||
#define __LOCALE_TEXTDBASE_H__
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Includes
|
||||
-------- */
|
||||
|
||||
// May as well include the string IDs in here..
|
||||
#ifndef __STRING_ENUMS__
|
||||
#include <trans.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
||||
/* Glib
|
||||
---- */
|
||||
|
||||
/* Local
|
||||
----- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Tyepdefs && Defines
|
||||
------------------- */
|
||||
enum
|
||||
{
|
||||
ENGLISH,
|
||||
SWEDISH,
|
||||
DUTCH,
|
||||
ITALIAN,
|
||||
GERMAN,
|
||||
NUM_OF_LANGUAGES,
|
||||
};
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Structure defintions
|
||||
-------------------- */
|
||||
class TranslationDatabase
|
||||
{
|
||||
private:
|
||||
public:
|
||||
static void initialise(bool includeIds);
|
||||
static void loadLanguage(unsigned int langType);
|
||||
static char const * getString(unsigned int strNum);
|
||||
static void setShowIds(bool idShowVal);
|
||||
};
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Globals
|
||||
------- */
|
||||
|
||||
/* Vars
|
||||
---- */
|
||||
|
||||
/* Data
|
||||
---- */
|
||||
|
||||
/* Functions
|
||||
--------- */
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------- */
|
||||
|
||||
#endif /* __LOCALE_TEXTDBASE_H__ */
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
Loading…
Add table
Add a link
Reference in a new issue