CImageInfo: fix missing license text for missing translations

Origin commit data
------------------
Branch: ni/coolstream
Commit: f2a786bf6b
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-04-14 (Tue, 14 Apr 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2015-04-14 10:25:29 +02:00
committed by Jacek Jendrzej
parent 629cb028fc
commit 764ca42629

View File

@@ -341,6 +341,13 @@ string CImageInfo::getLicenseText()
CComponentsText txt; CComponentsText txt;
string res = txt.getTextFromFile(file); string res = txt.getTextFromFile(file);
//assign default text, if language file is not available
if(res.empty()){
file = LICENSEDIR;
file += "english.license";
res = txt.getTextFromFile(file);
}
return res; return res;
} }