Translation2_Admin is a class meant to help with translation management (add/remove a language, add/remove a string).
This simple example will show how you can add a new language [addLang()], using the MDB2 driver:
|
This simple example will show how you can update an existing language [updateLang()]:
|
If you want to remove all the translated strings and the info for a certain language, all you have to do is
|
$force):
if you want to remove the whole strings table (regardless it being used
for other languages as well), you can do it this way:
|
Now let's see how we can add() a new translation for a new or an existing string.
|
You can remove() the translations for a certain stringID:
|