added the translation to the component view, also adding lang tags of ready translated languages

This commit is contained in:
dev
2017-04-05 17:26:17 +01:00
parent 1b3cb2bfdd
commit 2caaa1a1e3
69 changed files with 857 additions and 560 deletions

View File

@ -3055,7 +3055,7 @@ class Get
// to keep or remove
$remove = false;
// build the tranlations
if (isset($this->multiLangString[$string]))
if (ComponentbuilderHelper::checkString($string) && isset($this->multiLangString[$string]))
{
// make sure we have converted the string to array
if (isset($this->multiLangString[$string]['translation']) && ComponentbuilderHelper::checkJson($this->multiLangString[$string]['translation']))
@ -3093,7 +3093,7 @@ class Get
}
}
// do the database managment
if(($key = array_search($string, $strings)) !== false)
if(ComponentbuilderHelper::checkString($string) && ($key = array_search($string, $strings)) !== false)
{
if (isset($this->multiLangString[$string]))
{