2000-08-29 21:54:22 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
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
|
|
|
|
{
|
|
|
|
public:
|
2000-10-31 17:43:44 +01:00
|
|
|
enum{ NO_STRING=60000 }; // PKG - This is a special ID
|
|
|
|
|
2000-08-29 21:54:22 +02:00
|
|
|
static void initialise(bool includeIds);
|
|
|
|
static void loadLanguage(unsigned int langType);
|
|
|
|
static char const * getString(unsigned int strNum);
|
|
|
|
static void setShowIds(bool idShowVal);
|
2001-01-03 16:57:20 +01:00
|
|
|
static int isLoaded();
|
|
|
|
static int getLanguage();
|
2000-08-29 21:54:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Globals
|
|
|
|
------- */
|
|
|
|
|
|
|
|
/* Vars
|
|
|
|
---- */
|
|
|
|
|
|
|
|
/* Data
|
|
|
|
---- */
|
|
|
|
|
|
|
|
/* Functions
|
|
|
|
--------- */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#endif /* __LOCALE_TEXTDBASE_H__ */
|
|
|
|
|
|
|
|
/*===========================================================================
|
|
|
|
end */
|