iso639.h File Reference


Detailed Description

ISO 639-1 and ISO 639-2 support functions.

ISO 639-1 is the two letter standard for specifying a language. This is used by MythTV for naming the themes and for initializing the Qt translation system.

ISO 639-2 is the three letter standard for specifying a language. This is used by MythTV for selecting subtitles and audio streams during playback, and for selecting which languages to collect EIT program guide information in.

In many contexts, such as with themes, these language codes can be appended with an underscore and a 2 digit IETF region code. So for Brazilian Portugese you could use: "por_BR", or "pt_BR". Or, you could specify just the language, Portugese: "por", or "pt".

Definition in file iso639.h.

Go to the source code of this file.

Functions

QString iso639_str_toName (const unsigned char *iso639)
 Converts a 2 or 3 character iso639 string to a language name in English.
QString iso639_key_toName (int iso639_2)
 Converts a canonical key to language name in English.
void iso639_clear_language_list (void)
QStringList iso639_get_language_list (void)
 Returns list of three character ISO-639 language descriptors, starting with the most preferred.
vector< int > iso639_get_language_key_list (void)
int iso639_key_to_canonical_key (int iso639_2)
MPUBLIC QString iso639_str2_to_str3 (const QString &str2)
static QString iso639_key_to_str3 (int code)
static int iso639_str3_to_key (const unsigned char *iso639_2)
static int iso639_str3_to_key (const char *iso639_2)
static int iso639_str2_to_key2 (const unsigned char *iso639_1)
static int iso639_str2_to_key2 (const char *iso639_1)
static QString iso639_str_to_canonoical_str (const QString &str3)

Variables

MPUBLIC QMap< int, QString > _iso639_key_to_english_name


Function Documentation

QString iso639_str_toName ( const unsigned char *  iso639  ) 

Converts a 2 or 3 character iso639 string to a language name in English.

Definition at line 96 of file iso639.cpp.

QString iso639_key_toName ( int  iso639_2  ) 

void iso639_clear_language_list ( void   ) 

Definition at line 19 of file iso639.cpp.

QStringList iso639_get_language_list ( void   ) 

Returns list of three character ISO-639 language descriptors, starting with the most preferred.

See also:
MythContext::GetLanguage()

Definition at line 30 of file iso639.cpp.

Referenced by EITScanner::EITScanner(), and iso639_get_language_key_list().

vector<int> iso639_get_language_key_list ( void   ) 

Definition at line 52 of file iso639.cpp.

int iso639_key_to_canonical_key ( int  iso639_2  ) 

MPUBLIC QString iso639_str2_to_str3 ( const QString &  str2  ) 

static QString iso639_key_to_str3 ( int  code  )  [inline, static]

static int iso639_str3_to_key ( const unsigned char *  iso639_2  )  [inline, static]

static int iso639_str3_to_key ( const char *  iso639_2  )  [inline, static]

Definition at line 57 of file iso639.h.

static int iso639_str2_to_key2 ( const unsigned char *  iso639_1  )  [inline, static]

static int iso639_str2_to_key2 ( const char *  iso639_1  )  [inline, static]

Definition at line 67 of file iso639.h.

static QString iso639_str_to_canonoical_str ( const QString &  str3  )  [inline, static]

Definition at line 72 of file iso639.h.


Variable Documentation

MPUBLIC QMap<int, QString> _iso639_key_to_english_name


Generated on Sat Dec 18 05:15:53 2010 for MythTV by  doxygen 1.5.5