modules/ModuleBuilder/MB/MBLanguage.php

Show: inherited
Table of Contents

\MBLanguage

Package:

Properties

Propertypublic  $iTemplates= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $templates= 'array()'
Default valuearray()Details
Type
n/a

Methods

methodpublicMBLanguage(  $name,  $path,  $label,  $key_name ) : void

Parameters
Name Type Description
$name
$path
$label
$key_name
methodpublicbuild(  $path ) : void

Parameters
Name Type Description
$path
methodpublicgenerateAppStrings(  $buildFromTemplate = true ) : void

Parameters
Name Type Description
$buildFromTemplate
methodpublicgenerateModStrings( ) : void

methodpublicgetAppListStrings(  $language = 'en_us' ) : void

Parameters
Name Type Description
$language
methodpublicgetGlobalAppListStringsForMB(  $values ) : void

If there is no this dropdown list in custom\modulebuilder\packages\$package\language\application\$lang.lang.php , we will include it from global app_list_string array into custom\modulebuilder\packages\$package\language\application\$lang.lang.php when we create a dropdown filed and the value is created in MB.(#20728 )

Parameters
Name Type Description
$values
methodpublicgetModStrings(  $language = 'en_us' ) : void

Parameters
Name Type Description
$language
methodpublicload( ) : void

methodpublicloadAppListStrings(  $file ) : void

Parameters
Name Type Description
$file
methodpublicloadStrings(  $file ) : void

Parameters
Name Type Description
$file
methodpublicloadTemplates( ) : void

methodpublicreload( ) : void

Reset the templates and load the language files again. This is called from MBModule->save() once the config file has been written.

methodpublicsave(  $key_name,  $duplicate = false,  $rename = false ) : void

Parameters
Name Type Description
$key_name
$duplicate
$rename
methodpublictranslate( string $label, string $language = "en_us" ) : string

Attempts to translate the given label if it is contained in this undeployed module's language strings

Parameters
Name Type Description
$label string

Label to translate

$language string

Language to use to translate the label

Returns
Type Description
string
Documentation was generated by DocBlox 0.18.1.