Answer the question
In order to leave comments, you need to log in
How does minishop2 translate babel into another setting language?
Dear colleagues, tell me how to translate the settings for output. that is, these settings are
now displayed like this, that is, the name is taken,
the same question is taken by the method of payment, but there, by analogy, I think
so here in the cycle there is a variable $payment.name, which, as I understand it, is taken from the dictionary. .can be added to the dictionary value for all languages. if so, how?
{foreach $payments as $payment index=$index}
{var $checked = !($order.payment in keys $payments) && $index == 0 || $payment.id == $order.payment}
<div class="checkbox">
<label class="col-form-label payment input-parent">
<input type="radio" name="payment" value="{$payment.id}" id="payment_{$payment.id}"{$checked ? 'checked' : ''}>
{if $payment.logo?}
<img src="{$payment.logo}" alt="{$payment.name}" title="{$payment.name}" class="mw-100"/>
{else}
{$payment.name | lexicon}
{/if}
{if $payment.description?}
<p class="small">{$payment.description}</p>
{/if}
</label>
</div>
{/foreach}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question