v0

Default translator for Hubleto project.

\Hubleto\Framework\Translator

Implements \Hubleto\Framework\Interfaces\TranslatorInterface

Properties

 

☍ service

public \Hubleto\Framework\Core $service
 

☍ dictionary

public array $dictionary

Methods

ƒ getDictionaryFilename

[Description for getDictionaryFilename]

public getDictionaryFilename(\Hubleto\Framework\Interfaces\CoreInterface $core, string $language, string $context): string

Parameters

Parameter Type Description
$core \Hubleto\Framework\Interfaces\CoreInterface
$language string
$context string

ƒ addToDictionary

[Description for addToDictionary]

public addToDictionary(\Hubleto\Framework\Interfaces\CoreInterface $core, string $language, string $context, string $contextInner, string $string): void

Parameters

Parameter Type Description
$core \Hubleto\Framework\Interfaces\CoreInterface
$language string
$context string
$contextInner string
$string string

ƒ loadDictionary

[Description for loadDictionary]

public loadDictionary(\Hubleto\Framework\Interfaces\CoreInterface $core, string $language, string $context): void

Parameters

Parameter Type Description
$core \Hubleto\Framework\Interfaces\CoreInterface
$language string
$context string

ƒ loadFullDictionary

[Description for loadFullDictionary]

public loadFullDictionary(\Hubleto\Framework\Interfaces\CoreInterface $core, string $language): array

Parameters

Parameter Type Description
$core \Hubleto\Framework\Interfaces\CoreInterface
$language string

ƒ translate

[Description for translate]

public translate(\Hubleto\Framework\Interfaces\CoreInterface $service, string $string, array $vars = [], string $context = ''): string

Parameters

Parameter Type Description
$service \Hubleto\Framework\Interfaces\CoreInterface
$string string
$vars array
$context string
www.hubleto.com | Found a bug or missing something? Report an issue via GitHub.