/**
  * Sets a callable which aims to translate form labels, errors and help messages
  *
  * @param  mixed  $callable
  *
  * @throws InvalidArgumentException if an invalid php callable or sfCallable has been provided
  */
 public static function setTranslationCallable($callable)
 {
     if (!$callable instanceof sfCallable && !is_callable($callable)) {
         throw new InvalidArgumentException('Provided i18n callable should be either an instance of sfCallable or a valid PHP callable');
     }
     self::$translationCallable = $callable;
 }