Vidalia  0.2.17
Static Public Member Functions
LanguageSupport Class Reference

#include <LanguageSupport.h>

List of all members.

Static Public Member Functions

static QString defaultLanguageCode ()
static QString languageCode (const QString &languageName)
static QStringList languageCodes ()
static QString languageName (const QString &languageCode)
static QStringList languageNames ()
static QMap< QString, QString > languages ()
static bool isValidLanguageCode (const QString &languageCode)

Detailed Description

Definition at line 23 of file LanguageSupport.h.


Member Function Documentation

Returns the default language code for the system locale.

Definition at line 88 of file LanguageSupport.cpp.

References isValidLanguageCode().

Referenced by VidaliaSettings::VidaliaSettings().

bool LanguageSupport::isValidLanguageCode ( const QString &  languageCode) [static]

Returns true if we understand the given language code.

Definition at line 130 of file LanguageSupport.cpp.

References languageCodes().

Referenced by defaultLanguageCode(), Vidalia::retranslateUi(), and Vidalia::validateArguments().

QString LanguageSupport::languageCode ( const QString &  languageName) [static]

Returns the language code for a given language name.

Definition at line 102 of file LanguageSupport.cpp.

References languages().

Referenced by AppearancePage::save().

QStringList LanguageSupport::languageCodes ( ) [static]

Returns a list of all supported language codes (e.g., "en").

Returns a list of all supported language codes. (e.g., "en").

Definition at line 109 of file LanguageSupport.cpp.

References languages().

Referenced by AppearancePage::AppearancePage(), isValidLanguageCode(), and Vidalia::showUsageMessageBox().

QString LanguageSupport::languageName ( const QString &  languageCode) [static]

Returns the language name for a given language code.

Definition at line 116 of file LanguageSupport.cpp.

References languages().

Referenced by AppearancePage::AppearancePage().

QStringList LanguageSupport::languageNames ( ) [static]

Returns a list of all supported language names (e.g., "English").

Definition at line 123 of file LanguageSupport.cpp.

References languages().

QMap< QString, QString > LanguageSupport::languages ( ) [static]

Returns a list of all supported language codes and names.

Initializes the list of available languages.

Definition at line 24 of file LanguageSupport.cpp.

Referenced by languageCode(), languageCodes(), languageName(), and languageNames().


The documentation for this class was generated from the following files: