Open source remastering of the Freespace 2 engine
localize.h File Reference
#include "globalincs/pstypes.h"
#include "graphics/font.h"

Go to the source code of this file.


struct  lang_info


#define LCL_ENGLISH   0
#define LCL_GERMAN   1
#define LCL_FRENCH   2
#define LCL_POLISH   3
#define LCL_LANG_NAME_LEN   32


typedef struct lang_info lang_info


void lcl_init (int lang=-1)
void lcl_close ()
void lcl_xstr_init ()
void lcl_xstr_close ()
int lcl_get_language ()
void lcl_get_language_name (char *lang_name)
void lcl_set_language (int lang)
ubyte lcl_get_font_index (int font_num)
void lcl_add_dir (char *current_path)
int lcl_add_dir_to_path_with_filename (char *current_path, size_t path_max)
void lcl_replace_stuff (char *text, size_t max_len)
void lcl_replace_stuff (SCP_string &text)
void lcl_fred_replace_stuff (char *text, size_t max_len)
void lcl_fred_replace_stuff (SCP_string &text)
void lcl_ext_localize (const char *in, char *out, size_t max_len, int *id=NULL)
void lcl_ext_localize (const SCP_string &in, SCP_string &out, int *id=NULL)
const char * XSTR (const char *str, int index)
int lcl_get_xstr_offset (int index, int res)
void lcl_translate_wep_name_gr (char *name)
void lcl_translate_ship_name_gr (char *name)
void lcl_translate_brief_icon_name_gr (char *name)
void lcl_translate_brief_icon_name_pl (char *name)
void lcl_translate_targetbox_name_gr (char *name)
void lcl_translate_targetbox_name_pl (char *name)
void lcl_translate_medal_name_gr (char *name)
void lcl_translate_medal_name_pl (char *name)


lang_info Lcl_builtin_languages [NUM_BUILTIN_LANGUAGES]
SCP_vector< lang_infoLcl_languages
int Lcl_special_chars
int Lcl_fr
int Lcl_gr
int Lcl_pl
int Lcl_english

Macro Definition Documentation


Definition at line 28 of file localize.h.

#define LCL_ENGLISH   0

Definition at line 23 of file localize.h.

#define LCL_FRENCH   2

Definition at line 25 of file localize.h.

#define LCL_GERMAN   1

Definition at line 24 of file localize.h.

#define LCL_LANG_NAME_LEN   32

Definition at line 31 of file localize.h.

#define LCL_POLISH   3

Definition at line 26 of file localize.h.


Definition at line 44 of file localize.h.

Typedef Documentation

typedef struct lang_info lang_info

Function Documentation

void lcl_add_dir ( char *  current_path)

Definition at line 504 of file localize.cpp.

int lcl_add_dir_to_path_with_filename ( char *  current_path,
size_t  path_max 

Definition at line 536 of file localize.cpp.

void lcl_close ( )
void lcl_ext_localize ( const char *  in,
char *  out,
size_t  max_len,
int id = NULL 

Definition at line 831 of file localize.cpp.

void lcl_ext_localize ( const SCP_string in,
SCP_string out,
int id = NULL 

Definition at line 841 of file localize.cpp.

void lcl_fred_replace_stuff ( char *  text,
size_t  max_len 

Definition at line 610 of file localize.cpp.

void lcl_fred_replace_stuff ( SCP_string text)

Definition at line 626 of file localize.cpp.

ubyte lcl_get_font_index ( int  font_num)

Definition at line 495 of file localize.cpp.

int lcl_get_language ( )

Definition at line 176 of file localize.cpp.

void lcl_get_language_name ( char *  lang_name)

Definition at line 1121 of file localize.cpp.

int lcl_get_xstr_offset ( int  index,
int  res 

Definition at line 872 of file localize.cpp.

void lcl_init ( int  lang = -1)

Definition at line 107 of file localize.cpp.

void lcl_replace_stuff ( char *  text,
size_t  max_len 

Definition at line 573 of file localize.cpp.

void lcl_replace_stuff ( SCP_string text)

Definition at line 594 of file localize.cpp.

void lcl_set_language ( int  lang)

Definition at line 470 of file localize.cpp.

void lcl_translate_brief_icon_name_gr ( char *  name)

Definition at line 1153 of file localize.cpp.

void lcl_translate_brief_icon_name_pl ( char *  name)

Definition at line 1300 of file localize.cpp.

void lcl_translate_medal_name_gr ( char *  name)

Definition at line 1502 of file localize.cpp.

void lcl_translate_medal_name_pl ( char *  name)

Definition at line 1563 of file localize.cpp.

void lcl_translate_ship_name_gr ( char *  name)

Definition at line 1388 of file localize.cpp.

void lcl_translate_targetbox_name_gr ( char *  name)

Definition at line 1401 of file localize.cpp.

void lcl_translate_targetbox_name_pl ( char *  name)

Definition at line 1453 of file localize.cpp.

void lcl_translate_wep_name_gr ( char *  name)

Definition at line 1134 of file localize.cpp.

void lcl_xstr_close ( )

Definition at line 449 of file localize.cpp.

void lcl_xstr_init ( )

Definition at line 408 of file localize.cpp.

const char* XSTR ( const char *  str,
int  index 

Definition at line 851 of file localize.cpp.

Variable Documentation

lang_info Lcl_builtin_languages[NUM_BUILTIN_LANGUAGES]

Definition at line 36 of file localize.cpp.

int Lcl_english

Definition at line 50 of file localize.cpp.

int Lcl_fr

Definition at line 47 of file localize.cpp.

int Lcl_gr

Definition at line 48 of file localize.cpp.

SCP_vector<lang_info> Lcl_languages

Definition at line 32 of file localize.cpp.

int Lcl_pl

Definition at line 49 of file localize.cpp.

int Lcl_special_chars

Definition at line 43 of file localize.cpp.