mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CImageInfo: fix missing license text for missing translations
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user