Помощь Перевод Prestashop и модулей

Лимита блокирующего нет, решил проблему обновлением локализации и потом проверил вручную доступы. Одна папка косячная была :))
 
преста 1.7 чет не могу найти некоторые поля перевода в админке, в коде модуля поля есть, а в админке не отображается.

то же происходит и при добавления текста в код - он не подтягивается в переводы. читал где-то, что нужно что-то переиндексировать.

кто в курсе?
 
преста 1.7 чет не могу найти некоторые поля перевода в админке, в коде модуля поля есть, а в админке не отображается.

то же происходит и при добавления текста в код - он не подтягивается в переводы. читал где-то, что нужно что-то переиндексировать.

кто в курсе?
Некоторые переводы могут быть в таблицах БД, а некоторые в js-файлах
 
Пример: вот сам файл перевода
.../app/Resources/translations/ru-RU/ModulesWirepaymentShop.ru-RU.xlf

вот код
Код:
{*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* 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 license@prestashop.com 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 <contact@prestashop.com>
*  @copyright  2007-2015 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

{if $status == 'ok'}
    <p>
      {l s='Your order on %s is complete.' sprintf=[$shop_name] d='Modules.Wirepayment.Shop'}<br/>
      {l s='Please send us a bank wire with:' d='Modules.Wirepayment.Shop'}
    </p>
    {include file='module:ps_wirepayment/views/templates/hook/_partials/payment_infos.tpl'}

    <p>
      {l s='Please specify your order reference %s in the bankwire description.' sprintf=[$reference] d='Modules.Wirepayment.Shop'}<br/>
      {l s='We\'ve also sent you this information by e-mail.' d='Modules.Wirepayment.Shop'}
    </p>
    <strong>{l s='Your order will be sent as soon as we receive payment.' d='Modules.Wirepayment.Shop'}</strong>
    <p>
      {l s='If you have questions, comments or concerns, please contact our [1]expert customer support team[/1].' d='Modules.Wirepayment.Shop' sprintf=['[1]' => "<a href='{$contact_url}'>", '[/1]' => '</a>']}
    </p>
{else}
    <p class="warning">
      {l s='We noticed a problem with your order. If you think this is an error, feel free to contact our [1]expert customer support team[/1].' d='Modules.Wirepayment.Shop' sprintf=['[1]' => "<a href='{$contact_url}'>", '[/1]' => '</a>']}
    </p>
{/if}

В админке в полях перевода половина текста нет, и в самом файле перевода этих полей тоже нет

Код:
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
  <file original="modules/ps_wirepayment/views/templates/hook/payment.tpl" source-language="en" target-language="ru" datatype="plaintext">
    <body>
      <trans-unit id="5e1695822fc5af98f6b749ea3cbc9b4c" approved="yes">
        <source>Pay by bank wire</source>
        <target xml:lang="ru" state="translated">Оплата банковским переводом</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/payment.tpl:29</note>
      </trans-unit>
      <trans-unit id="4e1fb9f4b46556d64db55d50629ee301" approved="yes">
        <source>(order processing will be longer)</source>
        <target xml:lang="ru" state="translated">(обработка заказа продлится дольше)</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/payment.tpl:29</note>
      </trans-unit>
    </body>
  </file>
  <file original="modules/ps_wirepayment/controllers/front/payment.php" source-language="en" target-language="ru" datatype="plaintext">
    <body>
      <trans-unit id="763538d192c0e4a3a341c1c7d0db9240" approved="yes">
        <source>%1$s (tax incl.)</source>
        <target xml:lang="ru" state="translated">%1$s (с НДС)</target>
        <note>Context:
File: modules/ps_wirepayment/controllers/front/payment.php:46</note>
      </trans-unit>
    </body>
  </file>
  <file original="modules/ps_wirepayment/controllers/front/validation.php" source-language="en" target-language="ru" datatype="plaintext">
    <body>
      <trans-unit id="e2b7dec8fa4b498156dfee6e4c84b156" approved="yes">
        <source>This payment method is not available.</source>
        <target xml:lang="ru" state="translated">Метод оплаты не доступен.</target>
        <note>Context:
File: modules/ps_wirepayment/controllers/front/validation.php:50</note>
      </trans-unit>
    </body>
  </file>
  <file original="modules/ps_wirepayment/views/templates/hook/ps_wirepayment_intro.tpl" source-language="en" target-language="ru" datatype="plaintext">
    <body>
      <trans-unit id="c8ad6f14cf0f4c6de65b92737b096c37" approved="yes">
        <source>Please transfer the invoice amount to our bank account. You will receive our order confirmation by email containing bank details and order number.</source>
        <target xml:lang="ru" state="translated">Пожалуйста переведите сумму из счёта на наш банковский счёт. Вы получите подтверждение заказа и банковские реквизиты по e-mail.</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/ps_wirepayment_intro.tpl:28</note>
      </trans-unit>
      <trans-unit id="1a81e90b854883236a07009057635bcd" approved="yes">
        <source>Goods will be reserved %s days for you and we'll process the order immediately after receiving the payment.</source>
        <target xml:lang="ru" state="translated">Срок резерва товаров в днях: %s, заказ отправится в обработку сразу после получения платежа.</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/ps_wirepayment_intro.tpl:29</note>
      </trans-unit>
      <trans-unit id="ab066b3292d8ab61ef3b5c77169cdd19" approved="yes">
        <source>More information</source>
        <target xml:lang="ru" state="translated">Подробнее</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/ps_wirepayment_intro.tpl:31</note>
      </trans-unit>
      <trans-unit id="35b4b09d5d0686ec5c2e2cc9f3d9039c" approved="yes">
        <source>Bankwire</source>
        <target xml:lang="ru" state="translated">Банковский перевод</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/ps_wirepayment_intro.tpl:42</note>
      </trans-unit>
      <trans-unit id="ebcdf354e92daa6f6dee8a83a14e5c7a" approved="yes">
        <source>Payment is made by transfer of the invoice amount to the following account:</source>
        <target xml:lang="ru" state="translated">Оплата осуществлена путём перевода суммы заказа на следующий счёт:</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/ps_wirepayment_intro.tpl:45</note>
      </trans-unit>
    </body>
  </file>
  <file original="modules/ps_wirepayment/views/templates/hook/payment_return.tpl" source-language="en" target-language="ru" datatype="plaintext">
    <body>
      <trans-unit id="88526efe38fd18179a127024aba8c1d7" approved="yes">
        <source>Your order on %s is complete.</source>
        <target xml:lang="ru" state="translated">Ваш заказ на %s оформлен.</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/payment_return.tpl:28</note>
      </trans-unit>
      <trans-unit id="1552c5916ccfe019f35d91fd8955755e" approved="yes">
        <source>Please send us a bank wire with:</source>
        <target xml:lang="ru" state="translated">Реквизиты для банковского перевода:</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/payment_return.tpl:29</note>
      </trans-unit>
    </body>
  </file>
  <file original="modules/ps_wirepayment/views/templates/hook/_partials/payment_infos.tpl" source-language="en" target-language="ru" datatype="plaintext">
    <body>
      <trans-unit id="b2f40690858b404ed10e62bdf422c704" approved="yes">
        <source>Amount</source>
        <target xml:lang="ru" state="translated">Итого</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/_partials/payment_infos.tpl:28</note>
      </trans-unit>
      <trans-unit id="5ca0b1b910f393ed1f9f6fa99e414255" approved="yes">
        <source>Name of account owner</source>
        <target xml:lang="ru" state="translated">Имя владельца счета</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/_partials/payment_infos.tpl:30</note>
      </trans-unit>
      <trans-unit id="51f4741f4c53f0fe3ba1be9ac3a34f2f" approved="yes">
        <source>Please include these details</source>
        <target xml:lang="ru" state="translated">Пожалуйста, включите эти данные</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/_partials/payment_infos.tpl:32</note>
      </trans-unit>
      <trans-unit id="984482eb9ff11e6310fef641d2268a2a" approved="yes">
        <source>Bank name</source>
        <target xml:lang="ru" state="translated">Название банка</target>
        <note>Context:
File: modules/ps_wirepayment/views/templates/hook/_partials/payment_infos.tpl:34</note>
      </trans-unit>
    </body>
  </file>
</xliff>
 
Это просто заморочки разрабов PS. На crowdin'e всё переведено, они так и не удосужились обновить переводы, скачиваемые с prestashop.com

Скачивайте перевод с crowdin'a и импортируйте его, всё будет норм.
 
Это просто заморочки разрабов PS. На crowdin'e всё переведено, они так и не удосужились обновить переводы, скачиваемые с prestashop.com

Скачивайте перевод с crowdin'a и импортируйте его, всё будет норм.
ну импортирую, а как же быть с новыми фразами - это что, при каждом добавлении чего-то, нужно еще и перевод в коде добавлять.... бред какой-то.
 
ну импортирую, а как же быть с новыми фразами - это что, при каждом добавлении чего-то, нужно еще и перевод в коде добавлять.... бред какой-то.
Ну так еще с версии 1.5 им говорили все кому не лень чтобы они как-то переводы с crowdin'a себе синхронизировали. Французское раздолбайство во всей красе, милостивыйсдарь! ;)


На 1.6 был классный модуль, который мог напрямую тащить перевод с crowdin'a, в форке он кстати есть. А в 1.7 эти дети ехидны вообще убрали кнопку импорта перевода :lol::lol::lol:
 
Ну так еще с версии 1.5 им говорили все кому не лень чтобы они как-то переводы с crowdin'a себе синхронизировали. Французское раздолбайство во всей красе, милостивыйсдарь! ;)


На 1.6 был классный модуль, который мог напрямую тащить перевод с crowdin'a, в форке он кстати есть. А в 1.7 эти дети ехидны вообще убрали кнопку импорта перевода :lol::lol::lol:
Как раз по причине раздолбайства они это и не убрали, а просто скрыли. Я где-то на форуме писал, как отобразить этот пункт. Просто в стилях достаточно сказать display: block.
 
Как раз по причине раздолбайства они это и не убрали, а просто скрыли. Я где-то на форуме писал, как отобразить этот пункт. Просто в стилях достаточно сказать display: block.
Может, тогда стоило бы в какой-то faq занести всю процедуру - как включить импорт переводов в PS 1.7, затем как импортировать перевод с crowdin'a? А сам faq пришпилить в шапку списка топиков? Что по последнему вопросу думают модеры?
 
преста 1.7 чет не могу найти некоторые поля перевода в админке, в коде модуля поля есть, а в админке не отображается.

то же происходит и при добавления текста в код - он не подтягивается в переводы. читал где-то, что нужно что-то переиндексировать.

кто в курсе?


решение тут:
Для просмотра ссылки Войди или Зарегистрируйся
 
Назад
Сверху