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

                                Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

                                Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form