Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
expimp.h File Reference
#include "transDB.h"
#include "Babylondlg.h"

Go to the source code of this file.

Classes

struct  TROPTIONS
 
struct  GNOPTIONS
 
struct  RPOPTIONS
 
struct  CSF_HEADER_V1
 
struct  CSF_HEADER
 

Macros

#define CSF_ID   ( ('C'<<24) | ('S'<<16) | ('F'<<8) | (' ') )
 
#define CSF_LABEL   ( ('L'<<24) | ('B'<<16) | ('L'<<8) | (' ') )
 
#define CSF_STRING   ( ('S'<<24) | ('T'<<16) | ('R'<<8) | (' ') )
 
#define CSF_STRINGWITHWAVE   ( ('S'<<24) | ('T'<<16) | ('R'<<8) | ('W') )
 
#define CSF_VERSION   3
 

Enumerations

enum  TrFilter {
  TR_ALL , TR_CHANGES , TR_DIALOG , TR_NONDIALOG ,
  TR_SAMPLE , TR_MISSING_DIALOG , TR_UNVERIFIED , TR_UNSENT
}
 
enum  GnFormat { GN_UNICODE , GN_BABYLONSTR }
 
enum  GnUntranslated { GN_USEIDS , GN_USEORIGINAL }
 

Functions

int ExportTranslations (TransDB *db, const char *filename, LangID langid, TROPTIONS *options, CBabylonDlg *dlg=NULL)
 
int ImportTranslations (TransDB *db, const char *filename, CBabylonDlg *dlg=NULL)
 
int UpdateSentTranslations (TransDB *db, const char *filename, CBabylonDlg *dlg=NULL)
 
int GenerateGameFiles (TransDB *db, const char *filename, GNOPTIONS *option, LangID *languages, CBabylonDlg *dlg=NULL)
 
int GenerateReport (TransDB *db, const char *filename, RPOPTIONS *options, LangID *languages, CBabylonDlg *dlg=NULL)
 
void ProcessWaves (TransDB *db, const char *filename, CBabylonDlg *dlg)
 

Macro Definition Documentation

◆ CSF_ID

#define CSF_ID   ( ('C'<<24) | ('S'<<16) | ('F'<<8) | (' ') )

Definition at line 77 of file expimp.h.

◆ CSF_LABEL

#define CSF_LABEL   ( ('L'<<24) | ('B'<<16) | ('L'<<8) | (' ') )

Definition at line 78 of file expimp.h.

◆ CSF_STRING

#define CSF_STRING   ( ('S'<<24) | ('T'<<16) | ('R'<<8) | (' ') )

Definition at line 79 of file expimp.h.

◆ CSF_STRINGWITHWAVE

#define CSF_STRINGWITHWAVE   ( ('S'<<24) | ('T'<<16) | ('R'<<8) | ('W') )

Definition at line 80 of file expimp.h.

◆ CSF_VERSION

#define CSF_VERSION   3

Definition at line 81 of file expimp.h.

Enumeration Type Documentation

◆ GnFormat

enum GnFormat
Enumerator
GN_UNICODE 
GN_BABYLONSTR 

Definition at line 49 of file expimp.h.

◆ GnUntranslated

Enumerator
GN_USEIDS 
GN_USEORIGINAL 

Definition at line 55 of file expimp.h.

◆ TrFilter

enum TrFilter
Enumerator
TR_ALL 
TR_CHANGES 
TR_DIALOG 
TR_NONDIALOG 
TR_SAMPLE 
TR_MISSING_DIALOG 
TR_UNVERIFIED 
TR_UNSENT 

Definition at line 29 of file expimp.h.

Function Documentation

◆ ExportTranslations()

int ExportTranslations ( TransDB * db,
const char * filename,
LangID langid,
TROPTIONS * options,
CBabylonDlg * dlg = NULL )

Definition at line 405 of file expimp.cpp.

◆ GenerateGameFiles()

int GenerateGameFiles ( TransDB * db,
const char * filename,
GNOPTIONS * option,
LangID * languages,
CBabylonDlg * dlg = NULL )

Definition at line 1264 of file expimp.cpp.

◆ GenerateReport()

int GenerateReport ( TransDB * db,
const char * filename,
RPOPTIONS * options,
LangID * languages,
CBabylonDlg * dlg = NULL )

Definition at line 1481 of file expimp.cpp.

◆ ImportTranslations()

int ImportTranslations ( TransDB * db,
const char * filename,
CBabylonDlg * dlg = NULL )

Definition at line 899 of file expimp.cpp.

◆ ProcessWaves()

void ProcessWaves ( TransDB * db,
const char * filename,
CBabylonDlg * dlg )

Definition at line 1392 of file expimp.cpp.

◆ UpdateSentTranslations()

int UpdateSentTranslations ( TransDB * db,
const char * filename,
CBabylonDlg * dlg = NULL )

Definition at line 1608 of file expimp.cpp.