#include <stdlib.h>
#include "ut_Language.h"
#include "ut_string.h"
#include "xap_App.h"
#include "xap_Strings.h"
#include "ut_debugmsg.h"
#include "ut_assert.h"
Functions | |
static int | s_compareQ (const void *a, const void *b) |
static int | s_compareB (const void *l, const void *e) |
void | UT_Language_updateLanguageNames () |
Variables | |
static UT_LangRecord | s_Table [] |
static int s_compareB | ( | const void * | l, | |
const void * | e | |||
) | [static] |
Compare function used by bsearch()
l | langauge code | |
e | language table entry |
References gchar, UT_LangRecord::m_nID, UT_LangRecord::m_szLangCode, and UT_LangRecord::m_szLangName.
Referenced by UT_Language::getLangRecordFromCode().
static int s_compareQ | ( | const void * | a, | |
const void * | b | |||
) | [static] |
Compare function used by qsort()
a | left side of comparison | |
b | right side of comparison |
Special "no proofing" language will always be sorted to the top of the list
References UT_LangRecord::m_nID, UT_LangRecord::m_szLangCode, and UT_LangRecord::m_szLangName.
Referenced by UT_Language_updateLanguageNames().
void UT_Language_updateLanguageNames | ( | ) |
Set the language name attribut in the language table. It takes the localized names from the available stringset. This function is supplied to set the names after the stringset is known to the application.
References XAP_App::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValue(), UT_LangRecord::m_szLangName, s_compareQ(), and UT_return_if_fail.
Referenced by AP_Win32App::initialize(), and UT_Language::UT_Language().
UT_LangRecord s_Table[] [static] |