classes/phing/filters/TranslateGettext.php
private function xlateStringCallback($matches)
    {
        $charbefore = $matches[1];
        $msgid = $matches[2];
        $translated = gettext($msgid);
        $this->log("Translating \"$msgid\" => \"$translated\"", Project::MSG_DEBUG);

        return $charbefore . '"' . $translated . '"';
    }
private function xlateStringCallback($matches)
    {
        $charbefore = $matches[1];
        $msgid = $matches[2];
        $translated = gettext($msgid);
        $this->log("Translating \"$msgid\" => \"$translated\"", Project::MSG_DEBUG);

        return $charbefore . '"' . $translated . '"';
    }
private function xlateStringCallback ( $ matches ) { $ charbefore = $ matches [ 1 ] ; $ msgid = $ matches [ 2 ] ; $ translated = gettext ( $ msgid ) ; $ this -> log ( "Translating \"$msgid\" => \"$translated\"" , Project :: MSG_DEBUG ) ; return $ charbefore . '"' . $ translated . '"' ; }
Performs gettext translation of msgid and returns translated text.

This function simply wraps gettext() call, but provides ability to log
string replacements.  (alternative would be using preg_replace with /e which
would probably be faster, but no ability to debug/log.)

@param  array $matches Array of matches; we're interested in $matches[2].
@return string Translated text
Performs gettext translation of msgid and returns translated text .