BibleTime
|
#include <language.h>
Public Member Functions | |
QString const & | abbrev () const |
QStringList const & | abbrevs () const |
QString const & | englishName () const noexcept |
Language (Language &&)=delete | |
Language (Language const &)=delete | |
Language (QStringList abbrevs, QString englishName) | |
Language & | operator= (Language &&)=delete |
Language & | operator= (Language const &)=delete |
virtual QString | translatedName () const |
virtual | ~Language () |
Static Public Member Functions | |
static std::shared_ptr< Language const > | fromAbbrev (QString const &abbrev) |
Private Attributes | |
QStringList const | m_abbrevs |
QString const | m_englishName |
Definition at line 20 of file language.h.
|
delete |
Referenced by fromAbbrev().
|
delete |
Language::Language | ( | QStringList | abbrevs, |
QString | englishName | ||
) |
Definition at line 315 of file language.cpp.
References BT_ASSERT, m_abbrevs, and m_englishName.
|
virtualdefault |
|
inline |
Definition at line 34 of file language.h.
References m_abbrevs.
Referenced by fromAbbrev(), BtConfig::getFontForLanguage(), and BtConfig::setFontForLanguage().
|
inline |
Definition at line 37 of file language.h.
References m_abbrevs.
Referenced by fromAbbrev().
|
inlinenoexcept |
Definition at line 43 of file language.h.
References m_englishName.
Referenced by fromAbbrev(), BtConfig::getFontForLanguage(), BtConfig::setFontForLanguage(), and translatedName().
|
static |
[in] | abbrev | the language abbreviation in BCP 47 format. |
Definition at line 329 of file language.cpp.
References abbrev(), abbrevs(), BT_ASSERT, englishName(), Language(), BtLocaleMgr::localeTranslator(), and translatedName().
Referenced by CDisplaySettingsPage::bookNameAbbreviationsTryVector(), and CDisplaySettingsPage::initSwordLocaleCombo().
|
virtual |
Definition at line 326 of file language.cpp.
References englishName().
Referenced by fromAbbrev().
|
private |
Definition at line 53 of file language.h.
Referenced by abbrev(), abbrevs(), and Language().
|
private |
Definition at line 54 of file language.h.
Referenced by englishName(), and Language().