Swat/SwatUI.php
private function translateValue($value, $translatable, SwatUIObject $object)
    {
        if (!$translatable) {
            return $value;
        }

        if ($this->translation_callback !== null) {
            return call_user_func($this->translation_callback, $value);
        }

        return $value;
    }
private function translateValue($value, $translatable, SwatUIObject $object)
    {
        if (!$translatable) {
            return $value;
        }

        if ($this->translation_callback !== null) {
            return call_user_func($this->translation_callback, $value);
        }

        return $value;
    }
private function translateValue ( $ value , $ translatable , SwatUIObject $ object ) { if ( ! $ translatable ) { return $ value ; } if ( $ this -> translation_callback !== null ) { return call_user_func ( $ this -> translation_callback , $ value ) ; } return $ value ; }
Translates a property value if possible

@param string $value the value to be translated.
@param boolean $translatable whether or not it is possible to translate
the value.
@param SwatUIObject $object the object the property value applies to.

@return string the translated value if possible, otherwise $value.
Translates a property value if possible