tim Posted September 2, 2018 Share Posted September 2, 2018 Интересует способ локализации модуля ps_customersignin - Module (в верхней части экрана, где My account , wishlist и т.п.) модуль в общей папке ps_customersignin.tpl #<div class="user-info"> {if $logged} <a class="logout" href="{$logout_url}" rel="nofollow" title="{l s='Log me out' d='Shop.Theme.Customeraccount'}">{l s='Sign out' d='Shop.Theme.Actions'}</a> <a class="account" href="{$my_account_url}" title="{l s='View my customer account' d='Shop.Theme.Customeraccount'}" rel="nofollow"><span>{$customerName}</span></a> {else} <a class="login" href="{$my_account_url}" rel="nofollow" title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}">{l s='Sign in' d='Shop.Theme.Actions'}</a> {/if} </div> так же есть этот же модуль в папке с темой {** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2017 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} <div class="userinfo-selector links dropdown js-dropdown popup-over float-md-right"> <a href="javascript:void(0)" data-toggle="dropdown" class="popup-title" title="{l s='Account' d='Shop.Theme.Global'}"> <i class="fa fa-user hidden-sm-up"></i> <span class="hidden-xs-down">{l s='Account' d='Shop.Theme.Global'}</span> <i class="fa fa-angle-down"></i> </a> <ul class="popup-content dropdown-menu user-info"> {if $logged} <li> <a class="account dropdown-item" href="{$my_account_url}" title="{l s='View my customer account' d='Shop.Theme.Customeraccount'}" rel="nofollow" > <span>{l s='Hello' d='Shop.Theme.Actions'} {$customerName}</span> </a> </li> <li> <a class="logout dropdown-item" href="{$logout_url}" rel="nofollow" > {l s='Sign out' d='Shop.Theme.Actions'} </a> </li> {else} <li> <a class="signin dropdown-item" href="{$my_account_url}" title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}" rel="nofollow" > <span>{l s='Sign in' d='Shop.Theme.Actions'}</span> </a> </li> {/if} <li> <a class="myacount dropdown-item" href="{$my_account_url}" title="{l s='My account' d='Shop.Theme.Global'}" rel="nofollow" > <span>{l s='My account' d='Shop.Theme.Global'}</span> </a> </li> <li> <a class="ap-btn-wishlist dropdown-item" href="{url entity='module' name='leofeature' controller='mywishlist'}" title="{l s='Wishlist' d='Shop.Theme.Global'}" rel="nofollow" > <span>{l s='Wishlist' d='Shop.Theme.Global'}</span> <span class="ap-total-wishlist ap-total"></span> </a> </li> <li> <a class="ap-btn-compare dropdown-item" href="{url entity='module' name='leofeature' controller='productscompare'}" title="{l s='Compare' d='Shop.Theme.Global'}" rel="nofollow" > <span>{l s='Compare' d='Shop.Theme.Global'}</span> <span class="ap-total-compare ap-total"></span> </a> </li> {* <li> <a class="checkout dropdown-item" href="{url entity='cart' params=['action' => show]}" title="{l s='Checkout' d='Shop.Theme.Customeraccount'}" rel="nofollow" > <span>{l s='Checkout' d='Shop.Theme.Actions'}</span> </a> </li> *} </ul> </div> При изменении во втором файле,меняется локализация во всех вариациях перевода ИМ. При попытке добавить в prestashop\themes\leo_organic\translations\ru-RU файл взятый с другого файла и частично вручную локализованный, эффекта не дает. проблем с испанским языком нет (переведен полностью автоматом из настроек локализации и перевода), только в русском. очень важно сохранить 3 версии языка рабочими. Куда копать, где смотреть. Спасибо. ссылка http://ec2-13-59-214-100.us-east-2.compute.amazonaws.com/ru/ 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