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

TOPIC: Translation on social media on products details

Translation on social media on products details 3 years 1 week ago #14594

How can translate in on spanish?


Attachment translation-to-spanish.jpg not found




Thanks
The administrator has disabled public write access.

Translation on social media on products details 2 years 11 months ago #14623

hi,

1-Open the product details' PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/flexv2.php

FYI: There are 2 layouts: default and flexv2. Make your modifications only on the file that you are currently using.

2- find this line:
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";

and replace it with this:
js.src = "//connect.facebook.net/<?php 
   $lang = JFactory::getLanguage();
   echo $lang->getTag(); // this prints the Joomla's current language unicode, i.e: en_us, it_IT or es_ES
?>/all.js#xfbml=1";

So, depends on your Joomla's current language, the Facebook SDK will also be translated. For more info about Facebook SDK, see this page: developers.facebook.com/docs/javascript/quickstart/v2.5

Regards.
Last Edit: 2 years 11 months ago by Support.
The administrator has disabled public write access.

Translation on social media on products details 2 years 11 months ago #14642

Dear support, this code aren´t on my /templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php file

i can´t change this

i need your help

thanks
The administrator has disabled public write access.

Translation on social media on products details 2 years 11 months ago #14664

Hi,

then look at this PHP file:
/templates/YOUR_TEMPLATE/layouts/template.php

find this line:
 js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=115329165206253&version=v2.0";

and replace it to this:
js.src = "//connect.facebook.net/<?php 
   $lang = JFactory::getLanguage();
   echo $lang->getTag(); // this prints the Joomla's current language unicode, i.e: en_us, it_IT or es_ES
?>/sdk.js";

or simply to this:
 js.src = "//connect.facebook.net/es_ES/sdk.js";

Regards.
The administrator has disabled public write access.
Time to create page: 0.325 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