Skip to content

classes_essentials_translation_translationadminbase.class

Daniel Spors edited this page Dec 19, 2023 · 2 revisions

Classes in file essentials/translation/translationadminbase.class.php

abstract class TranslationAdminBase

Base class for translation handlers.

Extends: SysAdmin » HtmlPage » Template » Renderable

Subclasses: TranslationAdmin

CreateString

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

DeleteString

INTERNAL Delete a string

Download

INTERNAL Download all the translation files in a ZIP archive

Fetch

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

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

NewStrings

INTERNAL New string page

Clone this wiki locally