Add widget to select langage, must relauch qet for make change

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2762 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-01-21 19:23:44 +00:00
parent f426aba3a6
commit e8475c833e
7 changed files with 78 additions and 14 deletions

View File

@@ -48,8 +48,7 @@ ElementsCollectionCache *GenericPanel::getElementsCache() {
// build a default cache
QString cache_path = "./genericpanel.sqlite";
cache_ = new ElementsCollectionCache(cache_path, this);
/// @todo we need a unique function to get the good language
cache_ -> setLocale(QLocale::system().name().left(2));
cache_->setLocale(QETApp::langFromSetting());
}
return(cache_);
}