ICanBoogie/I18n 2.0.x
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Binding
      • I18n
    • I18n
      • Translator

Classes

  • FormattedString
  • Helpers
  • Hooks
  • Translator

Functions

  • date_period
  • format_currency
  • format_date
  • format_datetime
  • format_number
  • format_size
  • format_time
  • get_cldr
  • get_language
  • get_locale
  • t

Class Hooks

Namespace: ICanBoogie\I18n
Located at 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_core_boot( ICanBoogie\Core\BootEvent $event, ICanBoogie\Core $app )

Event hook for ICanBoogie\Core::boot.

Event hook for ICanBoogie\Core::boot.

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

Parameters

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

Translates and formats a string.

Translates and formats a string.

Parameters

$app
$native
$args
$options

Returns

string

See

t
ICanBoogie/I18n 2.0.x API documentation generated by ApiGen