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;








2















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.










share|improve this question
























  • 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

















2















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.










share|improve this question
























  • 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













2












2








2








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 10 at 9:47









Shan Atif

15814




15814










asked Jun 10 at 7:02









blobblob

1238




1238












  • 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

















  • 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
















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










3 Answers
3






active

oldest

votes


















0














Please your link and button name write in this way



<?php echo __('your link and button name'); ?>





share|improve this answer






























    0














    You can try this code



    <?php / @escapeNotVerified / echo __('your link and button name') ?>





    share|improve this answer






























      0














      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.






      share|improve this answer























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









        0














        Please your link and button name write in this way



        <?php echo __('your link and button name'); ?>





        share|improve this answer



























          0














          Please your link and button name write in this way



          <?php echo __('your link and button name'); ?>





          share|improve this answer

























            0












            0








            0







            Please your link and button name write in this way



            <?php echo __('your link and button name'); ?>





            share|improve this answer













            Please your link and button name write in this way



            <?php echo __('your link and button name'); ?>






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 10 at 8:34









            EasyndFasterEasyndFaster

            1958




            1958























                0














                You can try this code



                <?php / @escapeNotVerified / echo __('your link and button name') ?>





                share|improve this answer



























                  0














                  You can try this code



                  <?php / @escapeNotVerified / echo __('your link and button name') ?>





                  share|improve this answer

























                    0












                    0








                    0







                    You can try this code



                    <?php / @escapeNotVerified / echo __('your link and button name') ?>





                    share|improve this answer













                    You can try this code



                    <?php / @escapeNotVerified / echo __('your link and button name') ?>






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jun 10 at 13:03









                    oscprofessionalsoscprofessionals

                    40927




                    40927





















                        0














                        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.






                        share|improve this answer



























                          0














                          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.






                          share|improve this answer

























                            0












                            0








                            0







                            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.






                            share|improve this answer













                            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.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered yesterday









                            JazzJazz

                            663




                            663



























                                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%2f277767%2ftheme-language-translation%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?