mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
use empty to check string
This commit is contained in:
@@ -99,9 +99,9 @@ void CLanguage::setLanguage(std::string _language){
|
||||
//-----------------------------------------------------------------------------
|
||||
std::string CLanguage::getTranslation(std::string id){
|
||||
std::string trans=ConfigLanguage->getString(id,"");
|
||||
if(trans=="")
|
||||
if(trans.empty())
|
||||
trans=NeutrinoLanguage->getString(id,"");
|
||||
if(trans=="")
|
||||
if(trans.empty())
|
||||
trans=DefaultLanguage->getString(id,"");
|
||||
return trans;
|
||||
}
|
||||
|
Reference in New Issue
Block a user