Trl.php
- package
- Hlp
- Functions
- hlp
- hlpKwf
- trl
- trlc
- trlp
- trlcp
- trlKwf
- trlcKwf
- trlpKwf
- trlcpKwf
- trlStatic
- trlcStatic
- trlpStatic
- trlcpStatic
- trlKwfStatic
- trlcKwfStatic
- trlpKwfStatic
- trlcpKwfStatic
- Classes
- Kwf_Trl
Description
Functions
hlp
hlp(
           $string
          )
        
        :
        
Arguments
- $string
 Details
 Details
- package
- Hlp
hlpKwf
hlpKwf(
           $string
          )
        
        :
        
Arguments
- $string
 Details
 Details
- package
- Hlp
trl
trl(
          string $string, string|\string[] $text
              =
              array
          )
        
        :
        Basic translated string
More information: https://github.com/vivid-planet/koala-framework/wiki/Translation
Arguments
- $string
- string
 translated string
- $text
- string\string[]
 string will be replaced with {0} in translated string, array with their {index}
 Details
 Details
- package
- Trl
trlKwf
trlKwf(
           $string,  $text
              =
              array
          )
        
        :
        
Arguments
- $string
- $text
 Details
 Details
- package
- Trl
- see
- trl
trlKwfStatic
trlKwfStatic(
           $string,  $text
              =
              array
          )
        
        :
        
Arguments
- $string
- $text
 Details
 Details
- package
- Trl
- see
- trl
trlStatic
trlStatic(
           $string,  $text
              =
              array
          )
        
        :
        
Arguments
- $string
- $text
 Details
 Details
- package
- Trl
- see
- trl
trlc
trlc(
          string $context, string $string, string|\string[] $text
              =
              array
          )
        
        :
        Translated string in a context
Arguments
- $context
- string
 Context describing usage of translated string
- $string
- string
 translated string
- $text
- string\string[]
 string will be replaced with {0} in translated string, array with their {index}
 Details
 Details
- package
- Trl
trlcKwf
trlcKwf(
           $context,  $string,  $text
              =
              array
          )
        
        :
        
Arguments
- $context
- $string
- $text
 Details
 Details
- package
- Trl
- see
- trlc
trlcKwfStatic
trlcKwfStatic(
           $context,  $string,  $text
              =
              array
          )
        
        :
        
Arguments
- $context
- $string
- $text
 Details
 Details
- package
- Trl
- see
- trlc
trlcStatic
trlcStatic(
           $context,  $string,  $text
              =
              array
          )
        
        :
        
Arguments
- $context
- $string
- $text
 Details
 Details
- package
- Trl
- see
- trlc
trlcp
trlcp(
          string $context, string $single, string $plural, string|\string[] $text
              =
              array
          )
        
        :
        Translated string in singular/plural form in a context
Arguments
- $context
- string
 Context describing usage of translated string
- $single
- string
 singular form
- $plural
- string
 plural form including {0}
- $text
- string\string[]
 string will be replaced with {0} in translated string, array with their {index}
 Details
 Details
- package
- Trl
trlcpKwf
trlcpKwf(
           $context,  $single,  $plural,  $text
              =
              array
          )
        
        :
        
Arguments
- $context
- $single
- $plural
- $text
 Details
 Details
- package
- Trl
- see
- trlcp
trlcpKwfStatic
trlcpKwfStatic(
           $context,  $single,  $plural,  $text
              =
              array
          )
        
        :
        
Arguments
- $context
- $single
- $plural
- $text
 Details
 Details
- package
- Trl
- see
- trlcp
trlcpStatic
trlcpStatic(
           $context,  $single,  $plural,  $text
              =
              array
          )
        
        :
        
Arguments
- $context
- $single
- $plural
- $text
 Details
 Details
- package
- Trl
- see
- trlcp
trlp
trlp(
          string $single, string $plural, string|\string[] $text
              =
              array
          )
        
        :
        Translated string in singular/plural form
Arguments
- $single
- string
 singular form
- $plural
- string
 plural form including {0}
- $text
- string\string[]
 string will be replaced with {0} in translated string, array with their {index}
 Details
 Details
- package
- Trl
trlpKwf
trlpKwf(
           $single,  $plural,  $text
              =
              array
          )
        
        :
        
Arguments
- $single
- $plural
- $text
 Details
 Details
- package
- Trl
- see
- trlp
trlpKwfStatic
trlpKwfStatic(
           $single,  $plural,  $text
              =
              array
          )
        
        :
        
Arguments
- $single
- $plural
- $text
 Details
 Details
- package
- Trl
- see
- trlp
trlpStatic
trlpStatic(
           $single,  $plural,  $text
              =
              array
          )
        
        :
        
Arguments
- $single
- $plural
- $text
 Details
 Details
- package
- Trl
- see
- trlp
\Kwf_Trl
- package
- Trl
 Constants Constants
- ERROR_INVALID_CHAR
- ERROR_INVALID_STRING
- ERROR_WRONG_NR_OF_ARGUMENTS
- SOURCE_KWF
- SOURCE_WEB
- TRL
- TRLC
- TRLCP
- TRLP
 Properties Properties
- $_errorMessages
 Methods Methods
- __construct
- _findElement
- _findElementPlural
- _loadCache
- clearCache
- getInstance
- getLanguages
- getTargetLanguage
- getTrlpValues
- getWebCodeLanguage
- parse
- setLanguages
- setModel
- setUseUserLanguage
- setWebCodeLanguage
- trl
- trlKwf
- trlStaticExecute
- trlc
- trlcKwf
- trlcp
- trlcpKwf
- trlp
- trlpKwf
Description
Constants
SOURCE_KWF
 SOURCE_KWF = 'kwf'
      
 Details
 Details
- value
- kwf
- internal
SOURCE_WEB
 SOURCE_WEB = 'web'
      
 Details
 Details
- value
- web
- internal
TRLCP
 TRLCP = 'trlcp'
      
 Details
 Details
- value
- trlcp
- internal
TRLP
 TRLP = 'trlp'
      
 Details
 Details
- value
- trlp
- internal
TRLC
 TRLC = 'trlc'
      
 Details
 Details
- value
- trlc
- internal
TRL
 TRL = 'trl'
      
 Details
 Details
- value
- trl
- internal
ERROR_INVALID_CHAR
 ERROR_INVALID_CHAR = 'invalidChar'
      
 Details
 Details
- value
- invalidChar
- internal
ERROR_INVALID_STRING
 ERROR_INVALID_STRING = 'invalidString'
      
 Details
 Details
- value
- invalidString
- internal
ERROR_WRONG_NR_OF_ARGUMENTS
 ERROR_WRONG_NR_OF_ARGUMENTS = 'wrongNrOfArguments'
      
 Details
 Details
- value
- wrongNrOfArguments
- internal
Properties
$_errorMessages
 $_errorMessages = 'array'
 Details
 Details
- visibility
- protected
- default
- array
- final
- false
- static
- false
- internal
Methods
__construct
__construct(
           $config
              =
              array
          )
        
        :
        Arguments
- $config
 Details
 Details
- visibility
- public
- final
- false
- static
- false
_findElement
_findElement(
           $needle,  $source,  $context,  $language
              =
              null
          )
        
        :
        Arguments
- $needle
- $source
- $context
- $language
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
_findElementPlural
_findElementPlural(
           $needle,  $plural,  $source,  $context,  $language
              =
              null
          )
        
        :
        Arguments
- $needle
- $plural
- $source
- $context
- $language
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
_loadCache
_loadCache(
           $source,  $target,  $plural,  $cacheFileName
              =
              null
          )
        
        :
        Arguments
- $source
- $target
- $plural
- $cacheFileName
 Details
 Details
- visibility
- public
- final
- false
- static
- false
clearCache
clearCache(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- false
getInstance
getLanguages
getLanguages(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- false
getTargetLanguage
getTargetLanguage(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- false
getTrlpValues
getTrlpValues(
           $context,  $single,  $plural,  $source,  $language
              =
              null
          )
        
        :
        Arguments
- $context
- $single
- $plural
- $source
- $language
 Details
 Details
- visibility
- public
- final
- false
- static
- false
getWebCodeLanguage
getWebCodeLanguage(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- false
parse
parse(
           $content,  $type
              =
              php
          )
        
        :
        Arguments
- $content
- $type
 Details
 Details
- visibility
- public
- final
- false
- static
- false
setLanguages
setLanguages(
           $languages
          )
        
        :
        Arguments
- $languages
 Details
 Details
- visibility
- public
- final
- false
- static
- false
setModel
setModel(
           $model,  $type
          )
        
        :
        Arguments
- $model
- $type
 Details
 Details
- visibility
- public
- final
- false
- static
- false
setUseUserLanguage
setUseUserLanguage(
           $useUserLanguage
          )
        
        :
        Arguments
- $useUserLanguage
 Details
 Details
- visibility
- public
- final
- false
- static
- false
setWebCodeLanguage
setWebCodeLanguage(
           $code
          )
        
        :
        Arguments
- $code
 Details
 Details
- visibility
- public
- final
- false
- static
- false
trl
trl(
           $string,  $params
              =
              array,  $language
              =
              null
          )
        
        :
        Arguments
- $string
- $params
- $language
 Details
 Details
- visibility
- public
- final
- false
- static
- false
trlKwf
trlKwf(
           $string,  $params
              =
              array,  $language
              =
              null
          )
        
        :
        Arguments
- $string
- $params
- $language
 Details
 Details
- visibility
- public
- final
- false
- static
- false
trlStaticExecute
trlStaticExecute(
           $trlStaticData,  $language
              =
              null
          )
        
        :
        Arguments
- $trlStaticData
- $language
 Details
 Details
- visibility
- public
- final
- false
- static
- false
trlc
trlc(
           $context,  $string,  $params
              =
              array,  $language
              =
              null
          )
        
        :
        Arguments
- $context
- $string
- $params
- $language
 Details
 Details
- visibility
- public
- final
- false
- static
- false
trlcKwf
trlcKwf(
           $context,  $string,  $params
              =
              array,  $language
              =
              null
          )
        
        :
        Arguments
- $context
- $string
- $params
- $language
 Details
 Details
- visibility
- public
- final
- false
- static
- false
trlcp
trlcp(
           $context,  $single,  $plural,  $params,  $language
              =
              null
          )
        
        :
        Arguments
- $context
- $single
- $plural
- $params
- $language
 Details
 Details
- visibility
- public
- final
- false
- static
- false
trlcpKwf
trlcpKwf(
           $context,  $single,  $plural,  $params,  $language
              =
              null
          )
        
        :
        Arguments
- $context
- $single
- $plural
- $params
- $language
 Details
 Details
- visibility
- public
- final
- false
- static
- false
trlp
trlp(
           $single,  $plural,  $params,  $language
              =
              null
          )
        
        :
        Arguments
- $single
- $plural
- $params
- $language
 Details
 Details
- visibility
- public
- final
- false
- static
- false
trlpKwf
trlpKwf(
           $single,  $plural,  $params,  $language
              =
              null
          )
        
        :
        Arguments
- $single
- $plural
- $params
- $language
 Details
 Details
- visibility
- public
- final
- false
- static
- false