ICanBoogie
  • Documentation
  • API Reference
  • I18n 3.0.x
Namespaces
  • ICanBoogie
    • Binding
      • I18n
    • I18n
      • Translator
Classes
  • FormattedString
  • Helpers
  • Hooks
  • Translator

Class Hooks

Namespace: ICanBoogie\I18n
Located at I18n/Hooks.php

Methods summary

public static filter_autoconfig( array & $autoconfig )

Adds the "locale" directories found in the app paths to locale-path.

Adds the "locale" directories found in the app paths to locale-path.

Parameters

$autoconfig
public static on_app_boot( ICanBoogie\Application\BootEvent $event, ICanBoogie\Application $app )

Event hook for ICanBoogie\Application::boot.

Event hook for ICanBoogie\Application::boot.

Sets I18n::$load_paths using application config value locale-paths.

Parameters

$event
$app
public static translate( ICanBoogie\Application $app, string $native, array $args = [], array $options = [] ) : string

Translates and formats a string.

Translates and formats a string.

Parameters

$app
$native
$args
$options

Returns

string

See

t
I18n 3.0.x – Check on GitHub – API documentation generated by ApiGen