source/Application/Model/Category.php
public function getCatInLang($oActCategory = null)
    {
        $oCategoryInDefaultLanguage = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
        if ($this->isPriceCategory()) {
            // get it in base language
            $oCategoryInDefaultLanguage->loadInLang(0, $this->getId());
        } else {
            $oCategoryInDefaultLanguage->loadInLang(0, $oActCategory->getId());
        }

        return $oCategoryInDefaultLanguage;
    }
public function getCatInLang($oActCategory = null)
    {
        $oCategoryInDefaultLanguage = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
        if ($this->isPriceCategory()) {
            // get it in base language
            $oCategoryInDefaultLanguage->loadInLang(0, $this->getId());
        } else {
            $oCategoryInDefaultLanguage->loadInLang(0, $oActCategory->getId());
        }

        return $oCategoryInDefaultLanguage;
    }
public function getCatInLang ( $ oActCategory = null ) { $ oCategoryInDefaultLanguage = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Category :: class ) ; if ( $ this -> isPriceCategory ( ) ) { // get it in base language $ oCategoryInDefaultLanguage -> loadInLang ( 0 , $ this -> getId ( ) ) ; } else { $ oCategoryInDefaultLanguage -> loadInLang ( 0 , $ oActCategory -> getId ( ) ) ; } return $ oCategoryInDefaultLanguage ; }
Loads and returns category in base language

@param object $oActCategory active category

@return object
Loads and returns category in base language