theme language translationmagento2 create translation packerror during deploying custom theme in magento 2Magento2 - i18n:collect-phrases override csv fileMagento 2: The command bin/magento i18n:collect-phrases does not workMagento 2 : Priority of translation, proper wayMagento 2:i18n folder to custom themeChild theme does not load menu or parent theme componentsMagento 2: Static files are present but shows 404translation csv not visibleTranslation file magento 2 i18n
Build a scale without computer
Are there examples of rowers who also fought?
Got a new frameset, don't know why I need this split ring collar?
Is there a risk to write an invitation letter for a stranger to obtain a Czech (Schengen) visa?
What is this airplane that sits in front of Barringer High School in Newark, NJ?
Time at 1G acceleration to travel 100 000 light years
What is "dot" sign in •NO?
How can the US president give an order to a civilian?
Credit card validation in C
I wish, I yearn, for an answer to this riddle
Why was New Asgard established at this place?
Is a sequel allowed to start before the end of the first book?
King or Queen-Which piece is which?
I'm yearning in grey
How can I maintain game balance while allowing my player to craft genuinely useful items?
Bash function: Execute $@ command with each argument in sequence executed separately
In the US, can a former president run again?
...and then she held the gun
Counterfeit check
Operator currying: how to convert f[a,b][c,d] to a+c,b+d?
Definition of 'vrit'
Kelvin type connection
Is using Legacy mode is a bad thing to do?
Regex version of strip() - Ch. 7 Automate the Boring Stuff
theme language translation
magento2 create translation packerror during deploying custom theme in magento 2Magento2 - i18n:collect-phrases override csv fileMagento 2: The command bin/magento i18n:collect-phrases does not workMagento 2 : Priority of translation, proper wayMagento 2:i18n folder to custom themeChild theme does not load menu or parent theme componentsMagento 2: Static files are present but shows 404translation csv not visibleTranslation file magento 2 i18n
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have installed a new theme, I created the i18n directory with the csv file.
I entered this command to create the dictionary:
php magento2/bin/magento i18n:collect-phrases --output="magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv" magento2/app/design/frontend/OrangeCo/orange
To take effect I entered:
bin/magento setup:static-content:deploy
The problem is that some link or button name are not translated.
magento2 theme localisation language
add a comment |
I have installed a new theme, I created the i18n directory with the csv file.
I entered this command to create the dictionary:
php magento2/bin/magento i18n:collect-phrases --output="magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv" magento2/app/design/frontend/OrangeCo/orange
To take effect I entered:
bin/magento setup:static-content:deploy
The problem is that some link or button name are not translated.
magento2 theme localisation language
did you runphp bin/magento i18n:pack magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv -d en_US
?
– fmsthird
Jun 10 at 7:17
No,I don't need a language pack.
– blob
Jun 10 at 7:59
add a comment |
I have installed a new theme, I created the i18n directory with the csv file.
I entered this command to create the dictionary:
php magento2/bin/magento i18n:collect-phrases --output="magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv" magento2/app/design/frontend/OrangeCo/orange
To take effect I entered:
bin/magento setup:static-content:deploy
The problem is that some link or button name are not translated.
magento2 theme localisation language
I have installed a new theme, I created the i18n directory with the csv file.
I entered this command to create the dictionary:
php magento2/bin/magento i18n:collect-phrases --output="magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv" magento2/app/design/frontend/OrangeCo/orange
To take effect I entered:
bin/magento setup:static-content:deploy
The problem is that some link or button name are not translated.
magento2 theme localisation language
magento2 theme localisation language
edited Jun 10 at 9:47
Shan Atif
15814
15814
asked Jun 10 at 7:02
blobblob
1238
1238
did you runphp bin/magento i18n:pack magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv -d en_US
?
– fmsthird
Jun 10 at 7:17
No,I don't need a language pack.
– blob
Jun 10 at 7:59
add a comment |
did you runphp bin/magento i18n:pack magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv -d en_US
?
– fmsthird
Jun 10 at 7:17
No,I don't need a language pack.
– blob
Jun 10 at 7:59
did you run
php bin/magento i18n:pack magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv -d en_US
?– fmsthird
Jun 10 at 7:17
did you run
php bin/magento i18n:pack magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv -d en_US
?– fmsthird
Jun 10 at 7:17
No,I don't need a language pack.
– blob
Jun 10 at 7:59
No,I don't need a language pack.
– blob
Jun 10 at 7:59
add a comment |
3 Answers
3
active
oldest
votes
Please your link and button name write in this way
<?php echo __('your link and button name'); ?>
add a comment |
You can try this code
<?php / @escapeNotVerified / echo __('your link and button name') ?>
add a comment |
If you adding those button and link in phtml file then you can use it as
<?= __("Your desired text"); ?>
If you are adding this text from js file then use mage/translate.js for translation.
require([
'jquery',
'mage/translate'
], function($)
$(window).load(function()
alert($.mage.__('Your desired text'));
);
);
As in above example it is using $.mage.__("Your desired text"), you can also pass your text in the same way.
Hope this will help you.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277767%2ftheme-language-translation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please your link and button name write in this way
<?php echo __('your link and button name'); ?>
add a comment |
Please your link and button name write in this way
<?php echo __('your link and button name'); ?>
add a comment |
Please your link and button name write in this way
<?php echo __('your link and button name'); ?>
Please your link and button name write in this way
<?php echo __('your link and button name'); ?>
answered Jun 10 at 8:34
EasyndFasterEasyndFaster
1958
1958
add a comment |
add a comment |
You can try this code
<?php / @escapeNotVerified / echo __('your link and button name') ?>
add a comment |
You can try this code
<?php / @escapeNotVerified / echo __('your link and button name') ?>
add a comment |
You can try this code
<?php / @escapeNotVerified / echo __('your link and button name') ?>
You can try this code
<?php / @escapeNotVerified / echo __('your link and button name') ?>
answered Jun 10 at 13:03
oscprofessionalsoscprofessionals
40927
40927
add a comment |
add a comment |
If you adding those button and link in phtml file then you can use it as
<?= __("Your desired text"); ?>
If you are adding this text from js file then use mage/translate.js for translation.
require([
'jquery',
'mage/translate'
], function($)
$(window).load(function()
alert($.mage.__('Your desired text'));
);
);
As in above example it is using $.mage.__("Your desired text"), you can also pass your text in the same way.
Hope this will help you.
add a comment |
If you adding those button and link in phtml file then you can use it as
<?= __("Your desired text"); ?>
If you are adding this text from js file then use mage/translate.js for translation.
require([
'jquery',
'mage/translate'
], function($)
$(window).load(function()
alert($.mage.__('Your desired text'));
);
);
As in above example it is using $.mage.__("Your desired text"), you can also pass your text in the same way.
Hope this will help you.
add a comment |
If you adding those button and link in phtml file then you can use it as
<?= __("Your desired text"); ?>
If you are adding this text from js file then use mage/translate.js for translation.
require([
'jquery',
'mage/translate'
], function($)
$(window).load(function()
alert($.mage.__('Your desired text'));
);
);
As in above example it is using $.mage.__("Your desired text"), you can also pass your text in the same way.
Hope this will help you.
If you adding those button and link in phtml file then you can use it as
<?= __("Your desired text"); ?>
If you are adding this text from js file then use mage/translate.js for translation.
require([
'jquery',
'mage/translate'
], function($)
$(window).load(function()
alert($.mage.__('Your desired text'));
);
);
As in above example it is using $.mage.__("Your desired text"), you can also pass your text in the same way.
Hope this will help you.
answered yesterday
JazzJazz
663
663
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277767%2ftheme-language-translation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
did you run
php bin/magento i18n:pack magento2/app/design/frontend/OrangeCo/orange/i18n/en_US.csv -d en_US
?– fmsthird
Jun 10 at 7:17
No,I don't need a language pack.
– blob
Jun 10 at 7:59