Where do I translate "Description" and "Additional" on product page in the tabs at the bottom. Have tried to add a translate.csv file and added it in app/design/frontend/default/jm_megamall/locale/da_DK/translate.csv.
Seems that the text is hardcoded.
4 answers
Hi
You can try with my workaround as below:
-- Go to file: \app\design\frontend\default\jm_megamalltemplate\ catalog\product\view.phtml
-- Replace this line of code:
PHP Code:
<?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
<li><a href="<?php echo "#ja-tab-{$alias}"?>"><?php echo $alias; ?></a></li>
<?php endforeach;?>
With:
PHP Code:
<?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
<li><a href="<?php echo "#ja-tab-{$alias}"?>"><?php $this->__($alias); ?></a></li>
<?php endforeach;?>
-- Then translate the text via above translate.csv file.
-- Once done, remember to clear magento cache.
That works with a minor addition: <?php echo $this->__($alias); ?>
However shouldn’t the text Additional and Description be in som csv file somewhere??
Could you paste URL of page where the text is not translated here?