Missing translation string

  • media
  • Topic Author
  • Visitor
  • Visitor
12 years 2 months ago #13600 by media
Missing translation string was created by media
HotEcommerce with Joomla 1.7.3 and Virtuemart 2.0
Core Multilanguage enabled

On the product detail page there are two tabs. They are named "Description" and "Image Gallery". I need them to be translated into german language in my multilanguage envirement of joomla.

Therefore, i guess there has to be added some code in templates/hot_ecommerce/html/com_virtuemart/productdetails/default.php in order to be able to add some language strings. But i don't know how to do this in detail.

Can you please help me with this?

Please Log in to join the conversation.

More
12 years 2 months ago #13624 by ivan.milic
You have joomla language system using ini files in language folder. Default are en-GB , you need to have ones having "virtuemart" in their name in German folder having translations for that phrases.

Please Log in to join the conversation.

  • media
  • Topic Author
  • Visitor
  • Visitor
12 years 2 months ago #13640 by media
Replied by media on topic Re: Missing translation string
Yes, that is clear. What i mean is, that especially these two words are not "prepared" for translation, because they come out of the default.php. There ist no string defined so that i could add it in language file. So this is template-based. Normally, one can use the existing string in language. But it is not ready to use in this case.

Please Log in to join the conversation.

More
12 years 2 months ago #13656 by ivan.milic
Sorry you are right , there are totally hard coded in

templates\hot_ecommerce\html\com_virtuemart\productdetails\default.php

Code:
<li class="nav-one"><a href="#featured2" class="current">Description</a></li> <?php if (1==1) { ?><li class="nav-two"><a href="#core2">Image Gallery</a></li><?php } ?>

also instead of simple text change you can replace them with:

Code:
<li class="nav-one"><a href="#featured2" class="current"><?php echo JText::_ ( 'COM_VIRTUEMART_DESCRIPTION' ); ?></a></li> <?php if (1==1) { ?><li class="nav-two"><a href="#core2"><?php echo JText::_ ( 'COM_VIRTUEMART_IMAGE_GALLERY' ); ?></a></li><?php } ?>

so you could use ini files system :
COM_VIRTUEMART_IMAGE_GALLERY="..."
COM_VIRTUEMART_DESCRIPTION="..."

Please Log in to join the conversation.

  • media
  • Topic Author
  • Visitor
  • Visitor
12 years 2 months ago #13662 by media
Replied by media on topic Re: Missing translation string
YES! That is exactly what i need. Thank your for the example of right coding. That did it! I did not know how to use in J17. Learning Cycles lasts forever ;)

Thank you!

Please Log in to join the conversation.

Time to create page: 0.330 seconds
Powered by Kunena Forum