Mudanças Recentes - Buscar:

Cálculos/ Finanças

Outros / Web

Magento

Importação

Ferramentas

Automação

Redes

NFe

VOIP?

FreeSwitch

Backup/NextCloud

Servidores/Ferramentas

Mikrotik

PmWiki

pmwiki.org

edit SideBar

I18n-Tradução

<?php /* @escapeNotVerified */ echo __('Phones') ?>

Strings added in .phtml templates <?= __('Create Backup') ?> <?= __('Hello %1', $yourVariable) ?>

Strings added in email templates / BLOCK {{trans "Lorem Ipsum is simply dummy text of the printing"}} {{trans "%items items" items="numItems"}}

Strings added in UI component templates <span data-bind="i18n: 'Sign In'"></span> / BLOCK <span translate="'Sign In'"></span> <!-- ko i18n: 'You have no items in your shopping cart.' --><!-- /ko --> / BLOCK <translate args="'You have no items in your shopping cart.'"/> <input type="text" data-bind="attr: {placeholder: $t('First Name')}" />

Strings added in UI components configuration files (.xml) <item name="label" xsi:type="string" translate="true">Delete</item> __($this->config->getData('label'))

Strings added in Underscore templates (.html) <%= _.i18n('Hello') %> <%= _.i18n('Hello %1').replace('%1', yourVariable) %>

Strings added in .js files define (['jquery', 'mage/translate'], function ($, $t) {...}); $.mage.__('<string>'); $t('<string>'); $.mage.__('Hello %1').replace('%1', yourVariable); $t('Hello %1').replace('%1', yourVariable);

{{trans "Lorem Ipsum is simply dummy text of the printing"}}

=============================================================================== app/design/frontend/vendor/theme/i18n/en_US.csv

Gerar lista php bin/magento i18n:collect-phrases -o app/code/ExampleCorp/SampleModule/i18n/en_US.csv app/code/ExampleCorp/SampleModule

Gerar traduções php bin/magento setup:static-content:deploy pt_BR -f php bin/magento cache:flush php bin/magento cache:clean

Editar - Histórico - Imprimir - Mudanças Recentes - Buscar
Pagina modificada em 25 de julho de 2021, às 21h37