Overriding template for a specific language

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
2
down vote

favorite












I would like to override a template but only for a specific language (`ar_SA')



The template I want to override is:
Magento_Catalog/templates/product/list.phtml



I have tried putting it in the following locations but it didn't work for any of them:



<VENDOR>/<THEME NAME>/i18n/Magento_Catalog/templates/product/list.phtml



<VENDOR>/<THEME NAME>/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml



<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/templates/product/list.phtml



<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/ar_SA/templates/product/list.phtml



<VENDOR>/<THEME NAME>/web/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml



Any other suggestions or possibilities?



(My Magento version is 2.2.6)










share|improve this question



























    up vote
    2
    down vote

    favorite












    I would like to override a template but only for a specific language (`ar_SA')



    The template I want to override is:
    Magento_Catalog/templates/product/list.phtml



    I have tried putting it in the following locations but it didn't work for any of them:



    <VENDOR>/<THEME NAME>/i18n/Magento_Catalog/templates/product/list.phtml



    <VENDOR>/<THEME NAME>/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml



    <VENDOR>/<THEME NAME>/Magento_Catalog/i18n/templates/product/list.phtml



    <VENDOR>/<THEME NAME>/Magento_Catalog/i18n/ar_SA/templates/product/list.phtml



    <VENDOR>/<THEME NAME>/web/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml



    Any other suggestions or possibilities?



    (My Magento version is 2.2.6)










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I would like to override a template but only for a specific language (`ar_SA')



      The template I want to override is:
      Magento_Catalog/templates/product/list.phtml



      I have tried putting it in the following locations but it didn't work for any of them:



      <VENDOR>/<THEME NAME>/i18n/Magento_Catalog/templates/product/list.phtml



      <VENDOR>/<THEME NAME>/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml



      <VENDOR>/<THEME NAME>/Magento_Catalog/i18n/templates/product/list.phtml



      <VENDOR>/<THEME NAME>/Magento_Catalog/i18n/ar_SA/templates/product/list.phtml



      <VENDOR>/<THEME NAME>/web/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml



      Any other suggestions or possibilities?



      (My Magento version is 2.2.6)










      share|improve this question













      I would like to override a template but only for a specific language (`ar_SA')



      The template I want to override is:
      Magento_Catalog/templates/product/list.phtml



      I have tried putting it in the following locations but it didn't work for any of them:



      <VENDOR>/<THEME NAME>/i18n/Magento_Catalog/templates/product/list.phtml



      <VENDOR>/<THEME NAME>/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml



      <VENDOR>/<THEME NAME>/Magento_Catalog/i18n/templates/product/list.phtml



      <VENDOR>/<THEME NAME>/Magento_Catalog/i18n/ar_SA/templates/product/list.phtml



      <VENDOR>/<THEME NAME>/web/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml



      Any other suggestions or possibilities?



      (My Magento version is 2.2.6)







      magento2 theme template overrides overriding






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      Hassan Al-Jeshi

      1588




      1588




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          Create a child theme which inherits from your main theme. Add the template you want to override to your child theme.



          See dev docs on Theme Inheritance.



          Change theme for your ar_SA store view to the child theme you created.






          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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f243849%2foverriding-template-for-a-specific-language%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            Create a child theme which inherits from your main theme. Add the template you want to override to your child theme.



            See dev docs on Theme Inheritance.



            Change theme for your ar_SA store view to the child theme you created.






            share|improve this answer
























              up vote
              2
              down vote













              Create a child theme which inherits from your main theme. Add the template you want to override to your child theme.



              See dev docs on Theme Inheritance.



              Change theme for your ar_SA store view to the child theme you created.






              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                Create a child theme which inherits from your main theme. Add the template you want to override to your child theme.



                See dev docs on Theme Inheritance.



                Change theme for your ar_SA store view to the child theme you created.






                share|improve this answer












                Create a child theme which inherits from your main theme. Add the template you want to override to your child theme.



                See dev docs on Theme Inheritance.



                Change theme for your ar_SA store view to the child theme you created.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                oscarpas

                505138




                505138



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f243849%2foverriding-template-for-a-specific-language%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    Confectionery