Unable to translate message in magento 2error during deploying custom theme in magento 2How to translate a standart module in Magento 2Magento 2: add js file, but I can't find my file in static folderHow I can include bower for my theme?How to add custom css in luma theme in magento 2.1.2Magento 2 Module upgrade errorprint.less file error when run deploy commandExecution time: 94.293220043182 in magento2translation csv not visibleMagento2: Install Urdu Language Pack
Why is a semiprime used as the modulus in RSA?
Gory anime with pink haired girl escaping an asylum
Is it ok for parents to kiss and romance with each other while their 2- to 8-year-old child watches?
How do resistors generate different heat if we make the current fixed and changed the voltage and resistance? Notice the flow of charge is constant
How do I talk to my wife about unrealistic expectations?
Four ships at the ocean with the same distance
What term do you use for someone who acts impulsively?
Write a function
Can a landlord force all residents to use the landlord's in-house debit card accounts?
Strong Password Detection in Python
With a data transfer of 50 GB estimated 5 hours, are USB-C claimed speeds inaccurate or to blame?
Deck of Cards with Shuffle and Sort functionality
What was the nature of the known bugs in the Space Shuttle software?
How do ballistic trajectories work in a ring world?
Was it ever illegal to name a pig "Napoleon" in France?
Matrices with shadows
What do you call a situation where you have choices but no good choice?
How to "add vert" in blender 2.8?
What is the meaning of "prairie-dog" in this sentence?
Is it possible for a character at any level to cast all 44 Cantrips in one week without Magic Items?
How to understand flavors and when to use combination of them?
I'm feeling like my character doesn't fit the campaign
How should I ask for a "pint" in countries that use metric?
What is the relationship between external and internal composition in a cartesian closed category?
Unable to translate message in magento 2
error during deploying custom theme in magento 2How to translate a standart module in Magento 2Magento 2: add js file, but I can't find my file in static folderHow I can include bower for my theme?How to add custom css in luma theme in magento 2.1.2Magento 2 Module upgrade errorprint.less file error when run deploy commandExecution time: 94.293220043182 in magento2translation csv not visibleMagento2: Install Urdu Language Pack
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to translate quantity error message.
I changed in
app/design/frontend/Smartwave/porto/i18n/fi_FI.csv
"We don't have as many ""%1"" as you requested.","Meillä ei ole pyytämääsi määrää tuotetta ""%1"".",module,Magento_CatalogInventory
and run php bin/magento setup:static-content:deploy fi_FI
command
but it's not working
magento2 translate
add a comment |
I want to translate quantity error message.
I changed in
app/design/frontend/Smartwave/porto/i18n/fi_FI.csv
"We don't have as many ""%1"" as you requested.","Meillä ei ole pyytämääsi määrää tuotetta ""%1"".",module,Magento_CatalogInventory
and run php bin/magento setup:static-content:deploy fi_FI
command
but it's not working
magento2 translate
before run command of deploy you need to runsetup:upgrade
command. did you try this one ?
– Hardik Visa
Jun 29 at 7:14
add a comment |
I want to translate quantity error message.
I changed in
app/design/frontend/Smartwave/porto/i18n/fi_FI.csv
"We don't have as many ""%1"" as you requested.","Meillä ei ole pyytämääsi määrää tuotetta ""%1"".",module,Magento_CatalogInventory
and run php bin/magento setup:static-content:deploy fi_FI
command
but it's not working
magento2 translate
I want to translate quantity error message.
I changed in
app/design/frontend/Smartwave/porto/i18n/fi_FI.csv
"We don't have as many ""%1"" as you requested.","Meillä ei ole pyytämääsi määrää tuotetta ""%1"".",module,Magento_CatalogInventory
and run php bin/magento setup:static-content:deploy fi_FI
command
but it's not working
magento2 translate
magento2 translate
edited Jun 29 at 7:27
Rakesh Donga
3,0536 silver badges22 bronze badges
3,0536 silver badges22 bronze badges
asked Jun 29 at 6:05
Bhakti ThakkarBhakti Thakkar
8213 silver badges18 bronze badges
8213 silver badges18 bronze badges
before run command of deploy you need to runsetup:upgrade
command. did you try this one ?
– Hardik Visa
Jun 29 at 7:14
add a comment |
before run command of deploy you need to runsetup:upgrade
command. did you try this one ?
– Hardik Visa
Jun 29 at 7:14
before run command of deploy you need to run
setup:upgrade
command. did you try this one ?– Hardik Visa
Jun 29 at 7:14
before run command of deploy you need to run
setup:upgrade
command. did you try this one ?– Hardik Visa
Jun 29 at 7:14
add a comment |
3 Answers
3
active
oldest
votes
When you do translation you don't need to pass ""%1"".
example :
"Get %1 off","obtenez %1 de réduction" - this will be you CSV file
in you PHTML file you should have :
$discount = $block->getDiscount(); - if your using block
$discount = $viewModel->getDiscount(); - if you are using view model
<?= __("Get %1 off", $discount) ?>
add a comment |
There was the same msg in the fi_Fi.csv which contain the translation in English language only. So I just removed that line from the file.
add a comment |
Try following way..
"We don't have as many ""%1"" as you requested.","Meillä ei ole pyytämääsi määrää tuotetta ""%1""."
i have above code translate in fr langugage this work good for me
"We don't have as many ""%1"" as you requested.","Nous ne possédons pas suffisament de ""%1"" pour honorer votre demande."
Note: Clear cache (php bin/magento cache:clean
) and check your changes.
I tried, it's not working
– Bhakti Thakkar
Jun 29 at 8:53
not possible @BhaktiThakkar i have checked my side working fine and you have search all project any module override this text and csv file available
– Rakesh Donga
Jun 29 at 8:55
I add this line in /app/design/frontend/Smartwave/porto/i18n/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
github.com/bthakkar96/EnglishToFinnish/blob/master/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
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%2f280160%2funable-to-translate-message-in-magento-2%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
When you do translation you don't need to pass ""%1"".
example :
"Get %1 off","obtenez %1 de réduction" - this will be you CSV file
in you PHTML file you should have :
$discount = $block->getDiscount(); - if your using block
$discount = $viewModel->getDiscount(); - if you are using view model
<?= __("Get %1 off", $discount) ?>
add a comment |
When you do translation you don't need to pass ""%1"".
example :
"Get %1 off","obtenez %1 de réduction" - this will be you CSV file
in you PHTML file you should have :
$discount = $block->getDiscount(); - if your using block
$discount = $viewModel->getDiscount(); - if you are using view model
<?= __("Get %1 off", $discount) ?>
add a comment |
When you do translation you don't need to pass ""%1"".
example :
"Get %1 off","obtenez %1 de réduction" - this will be you CSV file
in you PHTML file you should have :
$discount = $block->getDiscount(); - if your using block
$discount = $viewModel->getDiscount(); - if you are using view model
<?= __("Get %1 off", $discount) ?>
When you do translation you don't need to pass ""%1"".
example :
"Get %1 off","obtenez %1 de réduction" - this will be you CSV file
in you PHTML file you should have :
$discount = $block->getDiscount(); - if your using block
$discount = $viewModel->getDiscount(); - if you are using view model
<?= __("Get %1 off", $discount) ?>
answered 2 days ago
jibin georgejibin george
30511 bronze badges
30511 bronze badges
add a comment |
add a comment |
There was the same msg in the fi_Fi.csv which contain the translation in English language only. So I just removed that line from the file.
add a comment |
There was the same msg in the fi_Fi.csv which contain the translation in English language only. So I just removed that line from the file.
add a comment |
There was the same msg in the fi_Fi.csv which contain the translation in English language only. So I just removed that line from the file.
There was the same msg in the fi_Fi.csv which contain the translation in English language only. So I just removed that line from the file.
answered Jul 1 at 11:57
Bhakti ThakkarBhakti Thakkar
8213 silver badges18 bronze badges
8213 silver badges18 bronze badges
add a comment |
add a comment |
Try following way..
"We don't have as many ""%1"" as you requested.","Meillä ei ole pyytämääsi määrää tuotetta ""%1""."
i have above code translate in fr langugage this work good for me
"We don't have as many ""%1"" as you requested.","Nous ne possédons pas suffisament de ""%1"" pour honorer votre demande."
Note: Clear cache (php bin/magento cache:clean
) and check your changes.
I tried, it's not working
– Bhakti Thakkar
Jun 29 at 8:53
not possible @BhaktiThakkar i have checked my side working fine and you have search all project any module override this text and csv file available
– Rakesh Donga
Jun 29 at 8:55
I add this line in /app/design/frontend/Smartwave/porto/i18n/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
github.com/bthakkar96/EnglishToFinnish/blob/master/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
add a comment |
Try following way..
"We don't have as many ""%1"" as you requested.","Meillä ei ole pyytämääsi määrää tuotetta ""%1""."
i have above code translate in fr langugage this work good for me
"We don't have as many ""%1"" as you requested.","Nous ne possédons pas suffisament de ""%1"" pour honorer votre demande."
Note: Clear cache (php bin/magento cache:clean
) and check your changes.
I tried, it's not working
– Bhakti Thakkar
Jun 29 at 8:53
not possible @BhaktiThakkar i have checked my side working fine and you have search all project any module override this text and csv file available
– Rakesh Donga
Jun 29 at 8:55
I add this line in /app/design/frontend/Smartwave/porto/i18n/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
github.com/bthakkar96/EnglishToFinnish/blob/master/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
add a comment |
Try following way..
"We don't have as many ""%1"" as you requested.","Meillä ei ole pyytämääsi määrää tuotetta ""%1""."
i have above code translate in fr langugage this work good for me
"We don't have as many ""%1"" as you requested.","Nous ne possédons pas suffisament de ""%1"" pour honorer votre demande."
Note: Clear cache (php bin/magento cache:clean
) and check your changes.
Try following way..
"We don't have as many ""%1"" as you requested.","Meillä ei ole pyytämääsi määrää tuotetta ""%1""."
i have above code translate in fr langugage this work good for me
"We don't have as many ""%1"" as you requested.","Nous ne possédons pas suffisament de ""%1"" pour honorer votre demande."
Note: Clear cache (php bin/magento cache:clean
) and check your changes.
edited Jun 29 at 7:27
answered Jun 29 at 7:21
Rakesh DongaRakesh Donga
3,0536 silver badges22 bronze badges
3,0536 silver badges22 bronze badges
I tried, it's not working
– Bhakti Thakkar
Jun 29 at 8:53
not possible @BhaktiThakkar i have checked my side working fine and you have search all project any module override this text and csv file available
– Rakesh Donga
Jun 29 at 8:55
I add this line in /app/design/frontend/Smartwave/porto/i18n/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
github.com/bthakkar96/EnglishToFinnish/blob/master/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
add a comment |
I tried, it's not working
– Bhakti Thakkar
Jun 29 at 8:53
not possible @BhaktiThakkar i have checked my side working fine and you have search all project any module override this text and csv file available
– Rakesh Donga
Jun 29 at 8:55
I add this line in /app/design/frontend/Smartwave/porto/i18n/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
github.com/bthakkar96/EnglishToFinnish/blob/master/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
I tried, it's not working
– Bhakti Thakkar
Jun 29 at 8:53
I tried, it's not working
– Bhakti Thakkar
Jun 29 at 8:53
not possible @BhaktiThakkar i have checked my side working fine and you have search all project any module override this text and csv file available
– Rakesh Donga
Jun 29 at 8:55
not possible @BhaktiThakkar i have checked my side working fine and you have search all project any module override this text and csv file available
– Rakesh Donga
Jun 29 at 8:55
I add this line in /app/design/frontend/Smartwave/porto/i18n/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
I add this line in /app/design/frontend/Smartwave/porto/i18n/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
github.com/bthakkar96/EnglishToFinnish/blob/master/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
github.com/bthakkar96/EnglishToFinnish/blob/master/en_US.csv
– Bhakti Thakkar
Jun 29 at 9:10
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%2f280160%2funable-to-translate-message-in-magento-2%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
before run command of deploy you need to run
setup:upgrade
command. did you try this one ?– Hardik Visa
Jun 29 at 7:14