source/Application/Model/RssFeed.php
protected function _getSearchParamsTranslation($sSearch, $sId, $sCatId, $sVendorId, $sManufacturerId)
    {
        $oLang = Registry::getLang();
        $sCatTitle = '';
        if ($sTitle = $this->_getObjectField($sCatId, 'oxcategory', 'oxcategories__oxtitle')) {
            $sCatTitle = sprintf($oLang->translateString('CATEGORY_S', $oLang->getBaseLanguage()), $sTitle);
        }
        $sVendorTitle = '';
        if ($sTitle = $this->_getObjectField($sVendorId, 'oxvendor', 'oxvendor__oxtitle')) {
            $sVendorTitle = sprintf($oLang->translateString('VENDOR_S', $oLang->getBaseLanguage()), $sTitle);
        }
        $sManufacturerTitle = '';
        if ($sTitle = $this->_getObjectField($sManufacturerId, 'oxmanufacturer', 'oxmanufacturers__oxtitle')) {
            $sManufacturerTitle = sprintf($oLang->translateString('MANUFACTURER_S', $oLang->getBaseLanguage()), $sTitle);
        }

        $sRet = sprintf($oLang->translateString($sSearch, $oLang->getBaseLanguage()), $sId);

        $sRet = str_replace('<TAG_CATEGORY>', $sCatTitle, $sRet);
        $sRet = str_replace('<TAG_VENDOR>', $sVendorTitle, $sRet);
        $sRet = str_replace('<TAG_MANUFACTURER>', $sManufacturerTitle, $sRet);

        return $sRet;
    }
protected function _getSearchParamsTranslation($sSearch, $sId, $sCatId, $sVendorId, $sManufacturerId)
    {
        $oLang = Registry::getLang();
        $sCatTitle = '';
        if ($sTitle = $this->_getObjectField($sCatId, 'oxcategory', 'oxcategories__oxtitle')) {
            $sCatTitle = sprintf($oLang->translateString('CATEGORY_S', $oLang->getBaseLanguage()), $sTitle);
        }
        $sVendorTitle = '';
        if ($sTitle = $this->_getObjectField($sVendorId, 'oxvendor', 'oxvendor__oxtitle')) {
            $sVendorTitle = sprintf($oLang->translateString('VENDOR_S', $oLang->getBaseLanguage()), $sTitle);
        }
        $sManufacturerTitle = '';
        if ($sTitle = $this->_getObjectField($sManufacturerId, 'oxmanufacturer', 'oxmanufacturers__oxtitle')) {
            $sManufacturerTitle = sprintf($oLang->translateString('MANUFACTURER_S', $oLang->getBaseLanguage()), $sTitle);
        }

        $sRet = sprintf($oLang->translateString($sSearch, $oLang->getBaseLanguage()), $sId);

        $sRet = str_replace('<TAG_CATEGORY>', $sCatTitle, $sRet);
        $sRet = str_replace('<TAG_VENDOR>', $sVendorTitle, $sRet);
        $sRet = str_replace('<TAG_MANUFACTURER>', $sManufacturerTitle, $sRet);

        return $sRet;
    }
protected function _getSearchParamsTranslation ( $ sSearch , $ sId , $ sCatId , $ sVendorId , $ sManufacturerId ) { $ oLang = Registry :: getLang ( ) ; $ sCatTitle = '' ; if ( $ sTitle = $ this -> _getObjectField ( $ sCatId , 'oxcategory' , 'oxcategories__oxtitle' ) ) { $ sCatTitle = sprintf ( $ oLang -> translateString ( 'CATEGORY_S' , $ oLang -> getBaseLanguage ( ) ) , $ sTitle ) ; } $ sVendorTitle = '' ; if ( $ sTitle = $ this -> _getObjectField ( $ sVendorId , 'oxvendor' , 'oxvendor__oxtitle' ) ) { $ sVendorTitle = sprintf ( $ oLang -> translateString ( 'VENDOR_S' , $ oLang -> getBaseLanguage ( ) ) , $ sTitle ) ; } $ sManufacturerTitle = '' ; if ( $ sTitle = $ this -> _getObjectField ( $ sManufacturerId , 'oxmanufacturer' , 'oxmanufacturers__oxtitle' ) ) { $ sManufacturerTitle = sprintf ( $ oLang -> translateString ( 'MANUFACTURER_S' , $ oLang -> getBaseLanguage ( ) ) , $ sTitle ) ; } $ sRet = sprintf ( $ oLang -> translateString ( $ sSearch , $ oLang -> getBaseLanguage ( ) ) , $ sId ) ; $ sRet = str_replace ( '<TAG_CATEGORY>' , $ sCatTitle , $ sRet ) ; $ sRet = str_replace ( '<TAG_VENDOR>' , $ sVendorTitle , $ sRet ) ; $ sRet = str_replace ( '<TAG_MANUFACTURER>' , $ sManufacturerTitle , $ sRet ) ; return $ sRet ; }
_getSearchParamsTranslation translates text for given lang id
loads category and vendor to take their titles.

@param string $sSearch         search param
@param string $sId             language id
@param string $sCatId          category id
@param string $sVendorId       vendor id
@param string $sManufacturerId Manufacturer id

@access protected
@return string
_getSearchParamsTranslation translates text for given lang id loads category and vendor to take their titles .