Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about "eCommerce" VirtueMart/Joomla template

Topic-icon Missing translation string

  • media
  • media's Avatar Topic Author
  • Visitor
  • Visitor
5 years 10 months ago #13600 by media
media created the topic: Missing translation string
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
5 years 10 months ago #13624 by ivan.milic
ivan.milic replied the topic: Re: Missing translation string
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
  • media's Avatar Topic Author
  • Visitor
  • Visitor
5 years 10 months ago #13640 by media
media replied the 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
5 years 10 months ago #13656 by ivan.milic
ivan.milic replied the topic: Re: Missing translation string
Sorry you are right , there are totally hard coded in

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

<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:

<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
  • media's Avatar Topic Author
  • Visitor
  • Visitor
5 years 10 months ago #13662 by media
media replied the 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.125 seconds

Links, Partners and Social Media