__construct()
__construct()
Classe de base Gérant les plugins
getLabel( $domain, $label, null $forceLocale = null) : string
Retreives the localized label for the given domain.
$domain | string A domain is the unique name referencing the content loaded from a localization file, for exemple 'newsItem' if you have loaded the labels for a newsItem object. |
|
$label | string The label is the unique key for which you want to retreive the translation, for example 'news_date' |
|
null | $forceLocale | string By default the currently displayed language in MindFlow is used. But there are cases you may want to force the language you get the translation for. You can specify an ISO2 language key here, such as 'fr'. |
the localized label
loadFileReplaceLabels( $domain, $template_file) : mixed|string
Load a template file and replaces all the marker {tags} with the definitions from the given domain, applying the current locale
$domain | String the domain where the marker {tags} substitution definitions should be looked for |
|
$template_file | String the file, usually html, containing some marker {tags} |
the file content with replaced markers