Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Translate custom Tabs

Translate custom Tabs 11 years 1 month ago #3449

First to congratulate you on great work,
We Have a problem on having had to work with multi-language (Spanish, Catalan). How can we translate into several languages them "customTab1_content" from your plugin?? We do not find file xxxx.ini or similar.
Thank you,

Attachment customtabs.jpg not found

The topic has been locked.

Translate custom Tabs 11 years 1 month ago #3450

sorry - confused as to what you want to translate?

the labels? in admin?

the above screen is from where?

Cheers
The topic has been locked.

Translate custom Tabs 11 years 1 month ago #3455

We want to translate content that you enter in the backend of the plugin so that it displays according to language in the frontend.

Attachment SEGUNDAMANO-ApriliaAtlantic500.jpg not found

The topic has been locked.

Translate custom Tabs 11 years 1 month ago #3459

Ah understand now -

will have to check with the boss but I don't think there is anything coded for this.

What I just tried and works fine is to use lang vars in the display template and use Joomla language over-rides

so in file templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php around line 921 change to
<?php if (!empty($customTab1_title)) {?>
		<div id="customTab2" class="tabcontent" style="display:none;">
		<?php	echo JText::_('PUREMART_SHIP_TAB');
		#echo $params->get('productdetails_customTab1_content');; ?>
    </div>
<?php } ?> 
 
 

you can also use this technique in the tab titles - around line 823
<?php $customTab1_title = $params->get('productdetails_customTab1_title');
				 if (!empty($customTab1_title)) {?>
					<li><a href="javascript:void(0)" rel="#customTab1">
<span>
<?php 
echo JText::_('PUREMART_SHIP_TAB_TITLE');
#echo $customTab1_title; 
?>
 
 
</span></a></li>
			<?php } ?> 
 
 

As I say - I will check with the boss but this does work fine

Cheers
Attachments:
Last Edit: 11 years 1 month ago by John.
The topic has been locked.

Translate custom Tabs 11 years 1 month ago #3464

Hi,
First of all, you asked a very tough question and it would be hard to achieve if you are not familiar with joomla.

John gives you the solution. Do the coding changes he provided in product details page PHP file (this is one way and actually the easiest way to show different contents depends on selected languages)

By that method, you are going to define 2 variables through Language Manager: Language Overrides:
1- for TAB title (PUREMART_SHIP_TAB_TITLE as Language Constant)
2- for TAB Content. (PUREMART_SHIP_TAB as Language Constant)

Which means, you are NOT going to use the plugin for displaying contents in the Shipping TAB anymore, but instead you are going to use the variables you created through Joomla Language Manager.

Regards.
Forum Support.
Last Edit: 11 years 1 month ago by Support.
The topic has been locked.

Translate custom Tabs 11 years 1 month ago #3487

Perfect!!
We have done a test this evening and work correctly!!
Thank you for great work and fast solution!!
The topic has been locked.

Translate custom Tabs 11 years 1 month ago #3499

If your happy we are..

Topic closed..
The topic has been locked.
Time to create page: 0.171 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo