Create a language package, install a language package via admin?












1














I have a Magento 2 shop hosted using a traditional cPanel hosting solution. Performance seems to be stable with the demo data and I'd like to install a language pack.



My problem is that I can only access a file manager, or run very simple commands by creating one-time cron jobs that execute a command ! and I have to manually delete them afterwards.



How can I install a language pack using these restrictions, since I do not believe I have composer installed ?










share|improve this question





























    1














    I have a Magento 2 shop hosted using a traditional cPanel hosting solution. Performance seems to be stable with the demo data and I'd like to install a language pack.



    My problem is that I can only access a file manager, or run very simple commands by creating one-time cron jobs that execute a command ! and I have to manually delete them afterwards.



    How can I install a language pack using these restrictions, since I do not believe I have composer installed ?










    share|improve this question



























      1












      1








      1







      I have a Magento 2 shop hosted using a traditional cPanel hosting solution. Performance seems to be stable with the demo data and I'd like to install a language pack.



      My problem is that I can only access a file manager, or run very simple commands by creating one-time cron jobs that execute a command ! and I have to manually delete them afterwards.



      How can I install a language pack using these restrictions, since I do not believe I have composer installed ?










      share|improve this question















      I have a Magento 2 shop hosted using a traditional cPanel hosting solution. Performance seems to be stable with the demo data and I'd like to install a language pack.



      My problem is that I can only access a file manager, or run very simple commands by creating one-time cron jobs that execute a command ! and I have to manually delete them afterwards.



      How can I install a language pack using these restrictions, since I do not believe I have composer installed ?







      magento2 language language-package






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 3 '18 at 20:54









      PЯINCƏ

      7,75121136




      7,75121136










      asked Mar 3 '18 at 19:05









      goncalotomasgoncalotomas

      13015




      13015






















          1 Answer
          1






          active

          oldest

          votes


















          1














          According to your requirements, you can create a translation module yourself manually.





          1. app/i18n/languageName/code_ISO/code_ISO.csv



            Example: for the French language it will be like this: app/i18n/french/fr_FR/fr_FR.csv




            • You put your translation words inside fr_FR.csvlike this :


            "Hello","Bonjour"




            • You can specify the translation for some module like this, example here is a captcha module
              "Incorrect CAPTCHA","CAPTCHA incorrect",module,Magento_Captcha





          2. app/i18n/languageName/code_ISO/language.xml



            <?xml version="1.0"?>
            <language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
            <code>code_ISO</code>
            <vendor>languageName</vendor>
            <package>code_iso</package>
            </language>


            French language example:
            app/i18n/french/fr_FR/language.xml



            <?xml version="1.0"?>
            <language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
            <code>fr_FR</code>
            <vendor>french</vendor>
            <package>fr_fr</package>
            </language>



          3. app/i18n/languageName/code_ISO/registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::LANGUAGE,
            'languageName_code_iso',
            __DIR__
            );


            French language example:
            app/i18n/french/fr_FR/registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::LANGUAGE,
            'french_fr_fr',
            __DIR__
            );



          4. Clean your cache, deploy the static-content like this :




            • Delete the contents of pub/static except .htaccess

            • Delete the contents of var/cache

            • Delete the contents of var/view_preprocessed

            • Run this command:
              php bin/magento setup:static-content:deploy -f








          share|improve this answer























          • Ideally I'd like to be able to use one of the community available language packs. How could I use those language packs and adapt them to make it work with your solution?
            – goncalotomas
            Mar 4 '18 at 11:09










          • You download the package then you copy the csv language file code_ISO.csv in my module, you can after that customising it. Or you install it directly with composer if you can
            – PЯINCƏ
            Mar 4 '18 at 13:01













          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%2f215857%2fcreate-a-language-package-install-a-language-package-via-admin%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          According to your requirements, you can create a translation module yourself manually.





          1. app/i18n/languageName/code_ISO/code_ISO.csv



            Example: for the French language it will be like this: app/i18n/french/fr_FR/fr_FR.csv




            • You put your translation words inside fr_FR.csvlike this :


            "Hello","Bonjour"




            • You can specify the translation for some module like this, example here is a captcha module
              "Incorrect CAPTCHA","CAPTCHA incorrect",module,Magento_Captcha





          2. app/i18n/languageName/code_ISO/language.xml



            <?xml version="1.0"?>
            <language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
            <code>code_ISO</code>
            <vendor>languageName</vendor>
            <package>code_iso</package>
            </language>


            French language example:
            app/i18n/french/fr_FR/language.xml



            <?xml version="1.0"?>
            <language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
            <code>fr_FR</code>
            <vendor>french</vendor>
            <package>fr_fr</package>
            </language>



          3. app/i18n/languageName/code_ISO/registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::LANGUAGE,
            'languageName_code_iso',
            __DIR__
            );


            French language example:
            app/i18n/french/fr_FR/registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::LANGUAGE,
            'french_fr_fr',
            __DIR__
            );



          4. Clean your cache, deploy the static-content like this :




            • Delete the contents of pub/static except .htaccess

            • Delete the contents of var/cache

            • Delete the contents of var/view_preprocessed

            • Run this command:
              php bin/magento setup:static-content:deploy -f








          share|improve this answer























          • Ideally I'd like to be able to use one of the community available language packs. How could I use those language packs and adapt them to make it work with your solution?
            – goncalotomas
            Mar 4 '18 at 11:09










          • You download the package then you copy the csv language file code_ISO.csv in my module, you can after that customising it. Or you install it directly with composer if you can
            – PЯINCƏ
            Mar 4 '18 at 13:01


















          1














          According to your requirements, you can create a translation module yourself manually.





          1. app/i18n/languageName/code_ISO/code_ISO.csv



            Example: for the French language it will be like this: app/i18n/french/fr_FR/fr_FR.csv




            • You put your translation words inside fr_FR.csvlike this :


            "Hello","Bonjour"




            • You can specify the translation for some module like this, example here is a captcha module
              "Incorrect CAPTCHA","CAPTCHA incorrect",module,Magento_Captcha





          2. app/i18n/languageName/code_ISO/language.xml



            <?xml version="1.0"?>
            <language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
            <code>code_ISO</code>
            <vendor>languageName</vendor>
            <package>code_iso</package>
            </language>


            French language example:
            app/i18n/french/fr_FR/language.xml



            <?xml version="1.0"?>
            <language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
            <code>fr_FR</code>
            <vendor>french</vendor>
            <package>fr_fr</package>
            </language>



          3. app/i18n/languageName/code_ISO/registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::LANGUAGE,
            'languageName_code_iso',
            __DIR__
            );


            French language example:
            app/i18n/french/fr_FR/registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::LANGUAGE,
            'french_fr_fr',
            __DIR__
            );



          4. Clean your cache, deploy the static-content like this :




            • Delete the contents of pub/static except .htaccess

            • Delete the contents of var/cache

            • Delete the contents of var/view_preprocessed

            • Run this command:
              php bin/magento setup:static-content:deploy -f








          share|improve this answer























          • Ideally I'd like to be able to use one of the community available language packs. How could I use those language packs and adapt them to make it work with your solution?
            – goncalotomas
            Mar 4 '18 at 11:09










          • You download the package then you copy the csv language file code_ISO.csv in my module, you can after that customising it. Or you install it directly with composer if you can
            – PЯINCƏ
            Mar 4 '18 at 13:01
















          1












          1








          1






          According to your requirements, you can create a translation module yourself manually.





          1. app/i18n/languageName/code_ISO/code_ISO.csv



            Example: for the French language it will be like this: app/i18n/french/fr_FR/fr_FR.csv




            • You put your translation words inside fr_FR.csvlike this :


            "Hello","Bonjour"




            • You can specify the translation for some module like this, example here is a captcha module
              "Incorrect CAPTCHA","CAPTCHA incorrect",module,Magento_Captcha





          2. app/i18n/languageName/code_ISO/language.xml



            <?xml version="1.0"?>
            <language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
            <code>code_ISO</code>
            <vendor>languageName</vendor>
            <package>code_iso</package>
            </language>


            French language example:
            app/i18n/french/fr_FR/language.xml



            <?xml version="1.0"?>
            <language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
            <code>fr_FR</code>
            <vendor>french</vendor>
            <package>fr_fr</package>
            </language>



          3. app/i18n/languageName/code_ISO/registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::LANGUAGE,
            'languageName_code_iso',
            __DIR__
            );


            French language example:
            app/i18n/french/fr_FR/registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::LANGUAGE,
            'french_fr_fr',
            __DIR__
            );



          4. Clean your cache, deploy the static-content like this :




            • Delete the contents of pub/static except .htaccess

            • Delete the contents of var/cache

            • Delete the contents of var/view_preprocessed

            • Run this command:
              php bin/magento setup:static-content:deploy -f








          share|improve this answer














          According to your requirements, you can create a translation module yourself manually.





          1. app/i18n/languageName/code_ISO/code_ISO.csv



            Example: for the French language it will be like this: app/i18n/french/fr_FR/fr_FR.csv




            • You put your translation words inside fr_FR.csvlike this :


            "Hello","Bonjour"




            • You can specify the translation for some module like this, example here is a captcha module
              "Incorrect CAPTCHA","CAPTCHA incorrect",module,Magento_Captcha





          2. app/i18n/languageName/code_ISO/language.xml



            <?xml version="1.0"?>
            <language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
            <code>code_ISO</code>
            <vendor>languageName</vendor>
            <package>code_iso</package>
            </language>


            French language example:
            app/i18n/french/fr_FR/language.xml



            <?xml version="1.0"?>
            <language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
            <code>fr_FR</code>
            <vendor>french</vendor>
            <package>fr_fr</package>
            </language>



          3. app/i18n/languageName/code_ISO/registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::LANGUAGE,
            'languageName_code_iso',
            __DIR__
            );


            French language example:
            app/i18n/french/fr_FR/registration.php



            <?php
            MagentoFrameworkComponentComponentRegistrar::register(
            MagentoFrameworkComponentComponentRegistrar::LANGUAGE,
            'french_fr_fr',
            __DIR__
            );



          4. Clean your cache, deploy the static-content like this :




            • Delete the contents of pub/static except .htaccess

            • Delete the contents of var/cache

            • Delete the contents of var/view_preprocessed

            • Run this command:
              php bin/magento setup:static-content:deploy -f









          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday









          Ordog

          11012




          11012










          answered Mar 3 '18 at 20:47









          PЯINCƏPЯINCƏ

          7,75121136




          7,75121136












          • Ideally I'd like to be able to use one of the community available language packs. How could I use those language packs and adapt them to make it work with your solution?
            – goncalotomas
            Mar 4 '18 at 11:09










          • You download the package then you copy the csv language file code_ISO.csv in my module, you can after that customising it. Or you install it directly with composer if you can
            – PЯINCƏ
            Mar 4 '18 at 13:01




















          • Ideally I'd like to be able to use one of the community available language packs. How could I use those language packs and adapt them to make it work with your solution?
            – goncalotomas
            Mar 4 '18 at 11:09










          • You download the package then you copy the csv language file code_ISO.csv in my module, you can after that customising it. Or you install it directly with composer if you can
            – PЯINCƏ
            Mar 4 '18 at 13:01


















          Ideally I'd like to be able to use one of the community available language packs. How could I use those language packs and adapt them to make it work with your solution?
          – goncalotomas
          Mar 4 '18 at 11:09




          Ideally I'd like to be able to use one of the community available language packs. How could I use those language packs and adapt them to make it work with your solution?
          – goncalotomas
          Mar 4 '18 at 11:09












          You download the package then you copy the csv language file code_ISO.csv in my module, you can after that customising it. Or you install it directly with composer if you can
          – PЯINCƏ
          Mar 4 '18 at 13:01






          You download the package then you copy the csv language file code_ISO.csv in my module, you can after that customising it. Or you install it directly with composer if you can
          – PЯINCƏ
          Mar 4 '18 at 13:01




















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f215857%2fcreate-a-language-package-install-a-language-package-via-admin%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

          An IMO inspired problem

          Management

          Has there ever been an instance of an active nuclear power plant within or near a war zone?