Galette API documentation
Gestionnaire d’Adhérents en Ligne Extrêmement Tarabiscoté mais Tellement Efficace
1.0.0
Galette\Core\L10n Class Reference

Public Member Functions

 __construct (Db $zdb, I18n $i18n)
 
 addDynamicTranslation (string $text_orig)
 
 deleteDynamicTranslation (string $text_orig)
 
 updateDynamicTranslation (string $text_orig, string $text_locale, string $text_trans)
 
 getDynamicTranslation (string $text_orig, string $text_locale)
 

Public Attributes

const TABLE = 'l10n'
 

Detailed Description

l10n handling

Author
Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be

Constructor & Destructor Documentation

◆ __construct()

Galette\Core\L10n::__construct ( Db  $zdb,
I18n  $i18n 
)

Default constructor.

Parameters
Db$zdbDatabase instance
I18n$i18nI18n instance

Member Function Documentation

◆ addDynamicTranslation()

Galette\Core\L10n::addDynamicTranslation ( string  $text_orig)

Add a translation stored in the database

Parameters
string$text_origText to translate
Returns
boolean

◆ deleteDynamicTranslation()

Galette\Core\L10n::deleteDynamicTranslation ( string  $text_orig)

Delete a translation stored in the database

Parameters
string$text_origText to translate
Returns
boolean

◆ getDynamicTranslation()

Galette\Core\L10n::getDynamicTranslation ( string  $text_orig,
string  $text_locale 
)

Get a translation stored in the database

Parameters
string$text_origText to translate
string$text_localeThe locale
Returns
string

◆ updateDynamicTranslation()

Galette\Core\L10n::updateDynamicTranslation ( string  $text_orig,
string  $text_locale,
string  $text_trans 
)

Update a translation stored in the database

Parameters
string$text_origText to translate
string$text_localeThe locale
string$text_transTranslated text
Returns
boolean

The documentation for this class was generated from the following file: