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;








2















I want to translate quantity error message. enter image description here



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










share|improve this question
























  • before run command of deploy you need to run setup:upgrade command. did you try this one ?

    – Hardik Visa
    Jun 29 at 7:14

















2















I want to translate quantity error message. enter image description here



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










share|improve this question
























  • before run command of deploy you need to run setup:upgrade command. did you try this one ?

    – Hardik Visa
    Jun 29 at 7:14













2












2








2








I want to translate quantity error message. enter image description here



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










share|improve this question
















I want to translate quantity error message. enter image description here



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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
















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










3 Answers
3






active

oldest

votes


















1














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) ?>





share|improve this answer






























    0














    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.






    share|improve this answer






























      -1














      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.






      share|improve this answer

























      • 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













      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
      );



      );













      draft saved

      draft discarded


















      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









      1














      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) ?>





      share|improve this answer



























        1














        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) ?>





        share|improve this answer

























          1












          1








          1







          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) ?>





          share|improve this answer













          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) ?>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 days ago









          jibin georgejibin george

          30511 bronze badges




          30511 bronze badges























              0














              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.






              share|improve this answer



























                0














                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.






                share|improve this answer

























                  0












                  0








                  0







                  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.






                  share|improve this answer













                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 1 at 11:57









                  Bhakti ThakkarBhakti Thakkar

                  8213 silver badges18 bronze badges




                  8213 silver badges18 bronze badges





















                      -1














                      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.






                      share|improve this answer

























                      • 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















                      -1














                      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.






                      share|improve this answer

























                      • 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













                      -1












                      -1








                      -1







                      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.






                      share|improve this answer















                      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.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      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

















                      • 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

















                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                      Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?