Added: Add Languagestrings dynamically via function
This commit is contained in:
parent
0fb4026d8b
commit
3cadac4094
|
@ -16,4 +16,8 @@ echo $lang->get('fail');
|
|||
|
||||
echo '<pre>';
|
||||
print_r($lang->getAll());
|
||||
echo '</pre>';
|
||||
echo '</pre>';
|
||||
|
||||
$lang->set('Test in english', 'test', 'en');
|
||||
$lang->set('Test auf Deutsch', 'test', 'de');
|
||||
echo $lang->get('test');
|
|
@ -117,4 +117,10 @@ class lang
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Set Langstrings
|
||||
function set($string, $identifier, $lang)
|
||||
{
|
||||
$this->langfiles[$lang]['langstrings'][$identifier] = $string;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue