How to translate tab header / title ?

It seems impossible to translate the tab-title. I have changed the CSV file without any result.

Attachment 19721

"description" and "Additional" seems to be "hard-coded" somewhere.

I found this code in app\design\frontend\default\jm_feronistemplate\ca talog\product\view.phtml

HTML Code:

<div id="ja-tab-products" class="product-collateral">
		<ul class="ja-tab-navigator clearfix">
					<?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;?>
		    	<?php if($upsell_products = $this->getChildHtml('upsell_products')): ?>
		       	<li><a href="#ja-tabitem-upsell"><?php echo $this->__('Upsell Products') ?></a></li>
		      <?php endif; ?>
		      <?php if($product_additional_data = $this->getChildHtml('product_additional_data')): ?>
		       	<li><a href="#ja-tabitem-tags"><?php echo $this->__('Product Tags') ?></a></li>
		      <?php endif; ?>
		      <?php if($product_reviews = $this->getChildHtml('product_reviews')): ?>
		       	<li><a href="#ja-tabitem-reviews"><?php echo $this->__('Product Reviews') ?></a></li>
		      <?php endif; ?>    
		      <?php if($review_form = $this->getChildHtml('review_form')): ?>
		       	<li><a href="#ja-tabitem-reviewform"><?php echo $this->__('Write Your Own Review') ?></a></li>
		      <?php endif; ?>

I am suspecting
HTML Code:

<a href="<?php echo "#ja-tab-{$alias}"?>"><?php echo $alias; ?>

causes $alias not to be translated, but this is nothing more then a wild guess from a novice.

Please help.

3 answers

Profile photo of tomc 0.00 $tone March 7, 2012
Public

What about checking the following file . . .

Open app/design/frontend/default/default/layout/catalog.xml

and find

<action method="addTab" translate="title" module="catalog"><alias>additional</alias><title>Additional Information</title>

If that doesn’t work, I found this FREE MAGENTO EXTENSION that apparently "makes it possible to translate an entire Magento store without modifying a single CSV file. Using a userfriendly backend search form you can easily find and replace/change any interface translation."

#1
Profile photo of H. degroot 0.00 $tone March 8, 2012
Public

Thanks,

The file mentioned was missing (1.6.1.0), so no solution there. But you set me on track :

I changed file app\design\frontend\default\jm_feronis\layout\cata log.xml

HTML Code:

<block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">

to

HTML Code:

<block type="catalog/product_view_description" name="product.description" as="Whateversolangitisoneword" template="catalog/product/view/description.phtml">

No errors yet.

Don’t be shy about using the "Thanks" button below if you found my post helpful
Hey, i don’t have one

#2
Profile photo of tomc 0.00 $tone March 8, 2012
Public

CONGRATS on figuring out the solution . . . . Glad I was able to, at least, point you in a useful direction.

All the best with your continuing site development !!!

#3

Please login or Register to Submit Answer

Written By

Comments