S
S
sasha2019-07-10 19:26:29
MODX
sasha, 2019-07-10 19:26:29

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
5d2611a07c595929790192.jpeg
now displayed like this, that is, the name is taken,
5d2611aa7702d257525872.jpeg
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 question

Ask a Question

731 491 924 answers to any question