/** * Initialize store Labels for attributes * * @deprecated * @param int $storeId */ public static function initLabels($storeId = null) { if (is_null(self::$_labels)) { if (is_null($storeId)) { $storeId = Mage::app()->getStore()->getId(); } $attributeLabels = array(); $attributes = Mage::getResourceSingleton('catalog/product')->getAttributesByCode(); foreach ($attributes as $attribute) { if (strlen($attribute->getData('frontend_label')) > 0) { $attributeLabels[] = $attribute->getData('frontend_label'); } } self::$_labels = Mage::app()->getTranslator()->getResource() ->getTranslationArrayByStrings($attributeLabels, $storeId); } }