Menu

## StaticLocalization

StaticLocalization.php : 22

Static config for localization.

### Table of Contents

#### Methods

disableHumanDiffOption() : void
enableHumanDiffOption() : void
getHumanDiffOptions() : int
  Return default humanDiff() options (merged flags as integer).
getTranslator() : TranslatorInterface
  Initialize the default translator instance if necessary.
setHumanDiffOptions() : void
setTranslator() : void
  Set the default translator instance to use.

### Methods

#### disableHumanDiffOption()

StaticLocalization.php : 49
`public static disableHumanDiffOption(int $humanDiffOption) : void`

##### Parameters

$humanDiffOption : int

##### Tags

deprecated

  To avoid conflict between different third-party libraries, static setters should not be used. You should rather use the ->settings() method.

see
  settings

#### enableHumanDiffOption()

StaticLocalization.php : 39
`public static enableHumanDiffOption(int $humanDiffOption) : void`

##### Parameters

$humanDiffOption : int

##### Tags

deprecated

  To avoid conflict between different third-party libraries, static setters should not be used. You should rather use the ->settings() method.

see
  settings

#### getHumanDiffOptions()

StaticLocalization.php : 57

Return default humanDiff() options (merged flags as integer).

`public static getHumanDiffOptions() : int`

##### Return values

int

#### getTranslator()

StaticLocalization.php : 77

Initialize the default translator instance if necessary.

`public static getTranslator() : TranslatorInterface`

##### Return values

TranslatorInterface

#### setHumanDiffOptions()

StaticLocalization.php : 29
`public static setHumanDiffOptions(int $humanDiffOptions) : void`

##### Parameters

$humanDiffOptions : int

##### Tags

deprecated

  To avoid conflict between different third-party libraries, static setters should not be used. You should rather use the ->settings() method.

see
  settings

#### setTranslator()

StaticLocalization.php : 69

Set the default translator instance to use.

`public static setTranslator(TranslatorInterface $translator) : void`

##### Parameters

$translator : TranslatorInterface

## Search results