Example #1
0
 public function __invoke($str, array $args = array(), array $options = array())
 {
     $options += $this->options;
     if (isset($options['scope']) && isset($this->options['scope'])) {
         $scope = $options['scope'];
         if (is_array($scope)) {
             $scope = implode('.', $scope);
         }
         if ($scope[0] == '.') {
             $options['scope'] = $this->options['scope'] . $scope;
         }
     }
     return \ICanBoogie\I18n\t($str, $args, $options);
 }
Example #2
0
/**
 * Forwards calls to {@link \ICanBoogie\I18n\t}
 */
function t($str, array $args = array(), array $options = array())
{
    return \ICanBoogie\I18n\t($str, $args, $options);
}