VeraCrypt  1.24-Update6
About: VeraCrypt is a free disk encryption software (based on TrueCrypt). Source code.
  Fossies Dox: VeraCrypt_1.24-Update6_Source.zip  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Language.c File Reference
#include "Language.h"
#include "Dlgcode.h"
#include "Dictionary.h"
#include "Tcdefs.h"
#include "Xml.h"
#include "../Common/Resource.h"
#include <Strsafe.h>
Include dependency graph for Language.c:

Go to the source code of this file.

Functions

static char * MapFirstLanguageFile ()
 
static char * MapNextLanguageFile (int resourceid)
 
static int LoadLanguageData (int resourceid, int bForceSetPreferredLanguage, int bForceSilent)
 
int LoadLanguageFile ()
 
int LoadLanguageFromResource (int resourceid, int bSetPreferredLanguage, int bForceSilent)
 
int CALLBACK LanguageDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
 
char * GetPreferredLangId ()
 
void SetPreferredLangId (char *langId)
 
char * GetActiveLangPackVersion ()
 
wchar_t * GetString (const char *stringId)
 
FontGetFont (char *fontType)
 

Variables

int LocalizationActive
 
int LocalizationSerialNo
 
wchar_t UnknownString [1024] = {0}
 
static char * LanguageFileBuffer = NULL
 
static HANDLE LanguageFileFindHandle = INVALID_HANDLE_VALUE
 
static char PreferredLangId [6] = {0}
 
static char * LanguageResource = NULL
 
static DWORD LanguageResourceSize = 0
 
static char * HeaderResource [2] = {NULL, NULL}
 
static DWORD HeaderResourceSize [2] = {0, 0}
 
static char ActiveLangPackVersion [6] = {0}
 
static int LanguageResourceId = 0
 

Function Documentation

◆ GetActiveLangPackVersion()

char* GetActiveLangPackVersion ( )

Definition at line 618 of file Language.c.

References ActiveLangPackVersion.

◆ GetFont()

Font* GetFont ( char *  fontType)

Definition at line 634 of file Language.c.

References GetDictionaryValue().

Referenced by InitDialog().

◆ GetPreferredLangId()

◆ GetString()

wchar_t* GetString ( const char *  stringId)

Definition at line 624 of file Language.c.

References GetDictionaryValue(), NULL, UNKNOWN_STRING_ID, and UnknownString.

Referenced by LanguageDlgProc(), and LoadLanguageData().

◆ LanguageDlgProc()

◆ LoadLanguageData()

◆ LoadLanguageFile()

int LoadLanguageFile ( )

Definition at line 429 of file Language.c.

References FALSE, and LoadLanguageData().

Referenced by InitApp(), and MainDialogProc().

◆ LoadLanguageFromResource()

int LoadLanguageFromResource ( int  resourceid,
int  bSetPreferredLanguage,
int  bForceSilent 
)

Definition at line 434 of file Language.c.

References LoadLanguageData().

Referenced by SelectLanguageDialogProc(), and UpdateSelectLanguageDialog().

◆ MapFirstLanguageFile()

static char* MapFirstLanguageFile ( )
static

◆ MapNextLanguageFile()

static char* MapNextLanguageFile ( int  resourceid)
static

◆ SetPreferredLangId()

void SetPreferredLangId ( char *  langId)

Definition at line 612 of file Language.c.

References PreferredLangId.

Referenced by InitApp(), and SelectLanguageDialogProc().

Variable Documentation

◆ ActiveLangPackVersion

char ActiveLangPackVersion[6] = {0}
static

Definition at line 46 of file Language.c.

Referenced by GetActiveLangPackVersion(), LanguageDlgProc(), and LoadLanguageData().

◆ HeaderResource

char* HeaderResource[2] = {NULL, NULL}
static

Definition at line 44 of file Language.c.

Referenced by LoadLanguageData().

◆ HeaderResourceSize

DWORD HeaderResourceSize[2] = {0, 0}
static

Definition at line 45 of file Language.c.

Referenced by LoadLanguageData().

◆ LanguageFileBuffer

char* LanguageFileBuffer = NULL
static

Definition at line 39 of file Language.c.

Referenced by MapFirstLanguageFile(), and MapNextLanguageFile().

◆ LanguageFileFindHandle

HANDLE LanguageFileFindHandle = INVALID_HANDLE_VALUE
static

Definition at line 40 of file Language.c.

Referenced by MapFirstLanguageFile(), and MapNextLanguageFile().

◆ LanguageResource

char* LanguageResource = NULL
static

Definition at line 42 of file Language.c.

Referenced by LoadLanguageData(), MapFirstLanguageFile(), and MapNextLanguageFile().

◆ LanguageResourceId

int LanguageResourceId = 0
static

Definition at line 47 of file Language.c.

Referenced by MapFirstLanguageFile(), and MapNextLanguageFile().

◆ LanguageResourceSize

DWORD LanguageResourceSize = 0
static

Definition at line 43 of file Language.c.

Referenced by MapFirstLanguageFile(), and MapNextLanguageFile().

◆ LocalizationActive

int LocalizationActive

◆ LocalizationSerialNo

int LocalizationSerialNo

Definition at line 36 of file Language.c.

Referenced by GetSizeString(), GetSpeedString(), and LoadLanguageData().

◆ PreferredLangId

char PreferredLangId[6] = {0}
static

◆ UnknownString

wchar_t UnknownString[1024] = {0}

Definition at line 38 of file Language.c.

Referenced by GetKeyName(), GetString(), and LoadLanguageData().