void AcceptLangWidget::reject () { Model_->clear (); Model_->setHorizontalHeaderLabels (QStringList (tr ("Language")) << tr ("Country") << tr ("Code")); auto qnam = Core::Instance ().GetNetworkAccessManager (); auto nam = qobject_cast<NetworkAccessManager*> (qnam); Q_FOREACH (const QLocale& locale, nam->GetAcceptLangs ()) AddLocale (locale); }
void AcceptLangWidget::on_Add__released () { const auto country = GetValue<QLocale::Country> (Ui_.Country_); const auto lang = GetValue<QLocale::Language> (Ui_.Language_); AddLocale (QLocale (lang, country)); }
LCID CMultiLanguage::AddLangId( LANGID langidIn ) { LCID lcidIn = MAKELCID(langidIn, SORT_DEFAULT); return AddLocale( lcidIn ); }