Willy15 Posted January 9, 2018 Share Posted January 9, 2018 Dear all, Quick question. How do I translate the (like) Facebook Widget from PS Page Builder? My store is in spanish, but Facebook widget is in english. I know I have to change en_US to es_ES somewhere, but I cannot find the correct file...! Thanks! PS 1.6.1.12 Server information: Linux #1 SMP Wed Jun 21 18:37:06 EDT 2017 x86_64 (Shared) Server software version: LiteSpeed PHP version: 7.0.21 MySQL version: 5.6.36-cll-lve MySQL engine: InnoDB MySQL driver: DbPDO Current theme in use: pf_basic Link to comment Share on other sites More sharing options...
Willy15 Posted January 9, 2018 Author Share Posted January 9, 2018 Ok for some reason $displaylanguage wasn't working, so I simply replaced it with "es_ES" and problem solved now. File is widget_facebook.tpl located in /modules/pspagebuilder/views/templates/front/widgets. Edit, save and clear your cache {* * Pts Prestashop Theme Framework for Prestashop 1.6.x * * @package pspagebuilder * @version 5.0 * @author http://www.prestabrain.com * @copyright Copyright (C) October 2013 prestabrain.com <@emai:prestabrain@gmail.com> * <info@prestabrain.com>.All rights reserved. * @license GNU General Public License version 2 *} <div class="facebook-wrapper {$addition_cls|escape:'html':'UTF-8'}" style="width:{$width|escape:'html':'UTF-8'}" > {if isset($application_id)&&$application_id} <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; {* js.src = "//connect.facebook.net/{$displaylanguage|escape:'html':'UTF-8'}/all.js#xfbml=1&appId={$application_id|escape:'html':'UTF-8'}"; *} js.src = "//connect.facebook.net/es_ES/all.js#xfbml=1&appId={$application_id|escape:'html':'UTF-8'}"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> {else} <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; {* js.src = "//connect.facebook.net/{$displaylanguage|escape:'html':'UTF-8'}/all.js#xfbml=1"; *} js.src = "//connect.facebook.net/es_ES/all.js#xfbml=1&appId={$application_id|escape:'html':'UTF-8'}"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> {/if} <div class="fb-like-box" data-href="{$page_url|escape:'html':'UTF-8'}" data-colorscheme="{$color|escape:'html':'UTF-8'}" data-height="{$height|escape:'html':'UTF-8'}" data-width="{$width|escape:'html':'UTF-8'}" data-show-faces="{$show_faces|escape:'html':'UTF-8'}" data-stream="{$show_stream|escape:'html':'UTF-8'}" data-show-border="{$show_border|escape:'html':'UTF-8'}" data-header="{$show_header|escape:'html':'UTF-8'}"></div> </div> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now