Solar_Locale::_trans()

protected string Solar_Locale::_trans ( string $class , string $key , mixed $num = 1 , array $replace = NULL )

Returns an existing class/key/num string from the translation array.

Parameters

  • (string) $class: The translation class.

  • (string) $key: The translation key.

  • (mixed) $num: Helps determine if we need a singular or plural translation.

  • (array) $replace: An array of replacement values for the string.

Returns

  • (string) The translation string if it exists, or null if it does not.

Description

Returns an existing class/key/num string from the translation array.



Local