mirror of
https://github.com/Mowie/Multilanguage.git
synced 2024-06-10 06:29:54 +00:00
Added: Add Languagestrings dynamically via function
This commit is contained in:
parent
0fb4026d8b
commit
3cadac4094
|
@ -17,3 +17,7 @@ echo $lang->get('fail');
|
||||||
echo '<pre>';
|
echo '<pre>';
|
||||||
print_r($lang->getAll());
|
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
Block a user