Previous Page
dump()

Solar_View_Helper_GetText
getText()

Next Page
locale()

getText()

public string getText ( string $key, int|float $num default 1, array $replace default NULL )

Returns a localized string, with escaping applied.

Parameters

  • (string) $key: The locale key to look up.
  • (int|float) $num: A number to help determine if the translation should return singluar or plural.
  • (array) $replace: If an array, will call vsprintf() on the localized string using the replacements in the array.

Returns

  • (string) The translated locale string.

Description

Returns a localized string, with escaping applied.