You are here

public static function Phamlp::t in Sassy 7

* Translates a message to the specified language. *

Parameters

string message category.: * @param string the original message * @param array parameters to be applied to the message using <code>strtr</code>. * @return string the translated message

31 calls to Phamlp::t()
PhamlpException::__construct in phamlp/PhamlpException.php
* Phamlp Exception. *
SassColour::op_bw_and in phamlp/sass/script/literals/SassColour.php
* Colour bitwise AND *
SassColour::op_bw_or in phamlp/sass/script/literals/SassColour.php
* Colour bitwise OR *
SassColour::op_bw_xor in phamlp/sass/script/literals/SassColour.php
* Colour bitwise XOR *
SassColour::op_div in phamlp/sass/script/literals/SassColour.php
* Colour division *

... See full list

File

phamlp/Phamlp.php, line 32

Class

Phamlp
Phamlp class. Static support classes. @package PHamlP

Code

public static function t($category, $message, $params = array()) {
  if (!empty(self::$language)) {
    $message = self::translate($category, $message);
  }
  return $params !== array() ? strtr($message, $params) : $message;
}