-
Notifications
You must be signed in to change notification settings - Fork 34
classes_essentials_translation_translationadminbase.class
Base class for translation handlers.
Extends: SysAdmin » HtmlPage » Template » Renderable
Subclasses: TranslationAdmin
Creates a new string from unknowns table. This transforms an unknown string (found in sourcecode) into a full translation term that can be edited in the translation system.
Definition: public abstract function CreateString($term, $text)
Returns: void
Parameters:
-
string $term
The identifier (like TXT_MYSTRING1) -
string $text
Content, in the default application language
INTERNAL Delete a string
INTERNAL Download all the translation files in a ZIP archive
Fetch strings from the translation system into the project. They will be stored in the strings directory as PHP files for easy inclusion.
Definition: public abstract function Fetch($languages=false)
Returns: void
Parameters:
-
array $languages
Array of language codes to be fetched
Import strings from the XX.inc.php translation system into the database
Definition: public abstract function Import($languages=false, $clearbeforeimport=false)
Returns: void
Parameters:
-
array $languages
Array of language codes to be fetched -
bool $clearbeforeimport
If true, clears all strings before importing new ones
INTERNAL New string page