Magento multi Language store












0















One client asked to internationalize a magento 2.2.3 store adding other two languages (English and Spanish).
The current website is on production since April with only the default language and store view (Italian).
I'm studying how to internationalize a magento store since it is the first time, but I have some doubts.
I found some articles on the web and it is clear that I need to create the store views, download the language packages and then translate the contents.



https://support.weltpixel.com/hc/en-us/articles/115006305808-How-to-create-a-Multi-Language-Store-in-Magento-Tutorial



https://inchoo.net/magento-2/magento-2-create-multilanguage-store/



https://inchoo.net/magento-2/magento-2-administration/create-multi-language-store-magento-2-part-2/




  1. How to handle the current store view ?

  2. It is necessary to add the it code to the italian view?

  3. If yes, How to handle the old urls (without the store code).










share|improve this question

























  • As far as I understand it will be the same web, but just with more languages, right?

    – Raül
    Aug 20 '18 at 11:29











  • yes, you understood well.

    – baronebirra
    Aug 20 '18 at 11:41


















0















One client asked to internationalize a magento 2.2.3 store adding other two languages (English and Spanish).
The current website is on production since April with only the default language and store view (Italian).
I'm studying how to internationalize a magento store since it is the first time, but I have some doubts.
I found some articles on the web and it is clear that I need to create the store views, download the language packages and then translate the contents.



https://support.weltpixel.com/hc/en-us/articles/115006305808-How-to-create-a-Multi-Language-Store-in-Magento-Tutorial



https://inchoo.net/magento-2/magento-2-create-multilanguage-store/



https://inchoo.net/magento-2/magento-2-administration/create-multi-language-store-magento-2-part-2/




  1. How to handle the current store view ?

  2. It is necessary to add the it code to the italian view?

  3. If yes, How to handle the old urls (without the store code).










share|improve this question

























  • As far as I understand it will be the same web, but just with more languages, right?

    – Raül
    Aug 20 '18 at 11:29











  • yes, you understood well.

    – baronebirra
    Aug 20 '18 at 11:41
















0












0








0








One client asked to internationalize a magento 2.2.3 store adding other two languages (English and Spanish).
The current website is on production since April with only the default language and store view (Italian).
I'm studying how to internationalize a magento store since it is the first time, but I have some doubts.
I found some articles on the web and it is clear that I need to create the store views, download the language packages and then translate the contents.



https://support.weltpixel.com/hc/en-us/articles/115006305808-How-to-create-a-Multi-Language-Store-in-Magento-Tutorial



https://inchoo.net/magento-2/magento-2-create-multilanguage-store/



https://inchoo.net/magento-2/magento-2-administration/create-multi-language-store-magento-2-part-2/




  1. How to handle the current store view ?

  2. It is necessary to add the it code to the italian view?

  3. If yes, How to handle the old urls (without the store code).










share|improve this question
















One client asked to internationalize a magento 2.2.3 store adding other two languages (English and Spanish).
The current website is on production since April with only the default language and store view (Italian).
I'm studying how to internationalize a magento store since it is the first time, but I have some doubts.
I found some articles on the web and it is clear that I need to create the store views, download the language packages and then translate the contents.



https://support.weltpixel.com/hc/en-us/articles/115006305808-How-to-create-a-Multi-Language-Store-in-Magento-Tutorial



https://inchoo.net/magento-2/magento-2-create-multilanguage-store/



https://inchoo.net/magento-2/magento-2-administration/create-multi-language-store-magento-2-part-2/




  1. How to handle the current store view ?

  2. It is necessary to add the it code to the italian view?

  3. If yes, How to handle the old urls (without the store code).







magento2.2 url-rewrite language






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 15 mins ago









Teja Bhagavan Kollepara

2,96341847




2,96341847










asked Aug 20 '18 at 11:02









baronebirrabaronebirra

64




64













  • As far as I understand it will be the same web, but just with more languages, right?

    – Raül
    Aug 20 '18 at 11:29











  • yes, you understood well.

    – baronebirra
    Aug 20 '18 at 11:41





















  • As far as I understand it will be the same web, but just with more languages, right?

    – Raül
    Aug 20 '18 at 11:29











  • yes, you understood well.

    – baronebirra
    Aug 20 '18 at 11:41



















As far as I understand it will be the same web, but just with more languages, right?

– Raül
Aug 20 '18 at 11:29





As far as I understand it will be the same web, but just with more languages, right?

– Raül
Aug 20 '18 at 11:29













yes, you understood well.

– baronebirra
Aug 20 '18 at 11:41







yes, you understood well.

– baronebirra
Aug 20 '18 at 11:41












1 Answer
1






active

oldest

votes


















0














You need to create:



app/i18n/<yourCustomName>/es_ES
app/i18n/<yourCustomName>/en_EN


Once created add a registration.php, language.xml, and a es_ES.csv or en_EN.csv in each folder.



Inside each 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>es_ES</code>
<vendor><vendor></vendor>
<package>es_es</package>
<sort_order>10</sort_order>
<use vendor="<vendor>" package="es_es" />
</language>


Once you have these done and the .csv have data inside (make sure you try and find them online).



Then you go and create storeviews:



enter image description here



You should have Default WebSite and Default Store and Default StoreView (Or the Italian ones). So when creating 2 new storeviews, they should be childs of the default Store.



Hopefully I will have answered the questions.






share|improve this answer
























  • Ok if i understood well i have to create two language packages or install theme from a vendor (like mageplaza). Then i need to create two store views with the language code. My answer is: i have to create a language code for the urls also for the italian view( the default one): Example: spanish: website.com/es english: website.com/en italian : website.com or website.com/it? If the second case i the right how can i redirect the old to the new one? magento does it or i need to write them in .htacces?

    – baronebirra
    Aug 20 '18 at 13:19













  • Well, the way I explained it so you have the same web, but the user would have at the top left or top right a comboBox where they can choose with which language do they want to see the web. You need to add them to your code, but not to vendor. If you want to create different websites, it's a different story.

    – Raül
    Aug 20 '18 at 14:55











  • Sorry, i explained it in the wrong way. I wanted to say that i would download language packages from mageplaza for the views

    – baronebirra
    Aug 20 '18 at 14:56











  • i think that i do not have enogh point to chat

    – baronebirra
    Aug 20 '18 at 15:07











  • Oke, no problem. It was just so we would't be chatting here.

    – Raül
    Aug 20 '18 at 15:37











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%2f238920%2fmagento-multi-language-store%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









0














You need to create:



app/i18n/<yourCustomName>/es_ES
app/i18n/<yourCustomName>/en_EN


Once created add a registration.php, language.xml, and a es_ES.csv or en_EN.csv in each folder.



Inside each 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>es_ES</code>
<vendor><vendor></vendor>
<package>es_es</package>
<sort_order>10</sort_order>
<use vendor="<vendor>" package="es_es" />
</language>


Once you have these done and the .csv have data inside (make sure you try and find them online).



Then you go and create storeviews:



enter image description here



You should have Default WebSite and Default Store and Default StoreView (Or the Italian ones). So when creating 2 new storeviews, they should be childs of the default Store.



Hopefully I will have answered the questions.






share|improve this answer
























  • Ok if i understood well i have to create two language packages or install theme from a vendor (like mageplaza). Then i need to create two store views with the language code. My answer is: i have to create a language code for the urls also for the italian view( the default one): Example: spanish: website.com/es english: website.com/en italian : website.com or website.com/it? If the second case i the right how can i redirect the old to the new one? magento does it or i need to write them in .htacces?

    – baronebirra
    Aug 20 '18 at 13:19













  • Well, the way I explained it so you have the same web, but the user would have at the top left or top right a comboBox where they can choose with which language do they want to see the web. You need to add them to your code, but not to vendor. If you want to create different websites, it's a different story.

    – Raül
    Aug 20 '18 at 14:55











  • Sorry, i explained it in the wrong way. I wanted to say that i would download language packages from mageplaza for the views

    – baronebirra
    Aug 20 '18 at 14:56











  • i think that i do not have enogh point to chat

    – baronebirra
    Aug 20 '18 at 15:07











  • Oke, no problem. It was just so we would't be chatting here.

    – Raül
    Aug 20 '18 at 15:37
















0














You need to create:



app/i18n/<yourCustomName>/es_ES
app/i18n/<yourCustomName>/en_EN


Once created add a registration.php, language.xml, and a es_ES.csv or en_EN.csv in each folder.



Inside each 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>es_ES</code>
<vendor><vendor></vendor>
<package>es_es</package>
<sort_order>10</sort_order>
<use vendor="<vendor>" package="es_es" />
</language>


Once you have these done and the .csv have data inside (make sure you try and find them online).



Then you go and create storeviews:



enter image description here



You should have Default WebSite and Default Store and Default StoreView (Or the Italian ones). So when creating 2 new storeviews, they should be childs of the default Store.



Hopefully I will have answered the questions.






share|improve this answer
























  • Ok if i understood well i have to create two language packages or install theme from a vendor (like mageplaza). Then i need to create two store views with the language code. My answer is: i have to create a language code for the urls also for the italian view( the default one): Example: spanish: website.com/es english: website.com/en italian : website.com or website.com/it? If the second case i the right how can i redirect the old to the new one? magento does it or i need to write them in .htacces?

    – baronebirra
    Aug 20 '18 at 13:19













  • Well, the way I explained it so you have the same web, but the user would have at the top left or top right a comboBox where they can choose with which language do they want to see the web. You need to add them to your code, but not to vendor. If you want to create different websites, it's a different story.

    – Raül
    Aug 20 '18 at 14:55











  • Sorry, i explained it in the wrong way. I wanted to say that i would download language packages from mageplaza for the views

    – baronebirra
    Aug 20 '18 at 14:56











  • i think that i do not have enogh point to chat

    – baronebirra
    Aug 20 '18 at 15:07











  • Oke, no problem. It was just so we would't be chatting here.

    – Raül
    Aug 20 '18 at 15:37














0












0








0







You need to create:



app/i18n/<yourCustomName>/es_ES
app/i18n/<yourCustomName>/en_EN


Once created add a registration.php, language.xml, and a es_ES.csv or en_EN.csv in each folder.



Inside each 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>es_ES</code>
<vendor><vendor></vendor>
<package>es_es</package>
<sort_order>10</sort_order>
<use vendor="<vendor>" package="es_es" />
</language>


Once you have these done and the .csv have data inside (make sure you try and find them online).



Then you go and create storeviews:



enter image description here



You should have Default WebSite and Default Store and Default StoreView (Or the Italian ones). So when creating 2 new storeviews, they should be childs of the default Store.



Hopefully I will have answered the questions.






share|improve this answer













You need to create:



app/i18n/<yourCustomName>/es_ES
app/i18n/<yourCustomName>/en_EN


Once created add a registration.php, language.xml, and a es_ES.csv or en_EN.csv in each folder.



Inside each 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>es_ES</code>
<vendor><vendor></vendor>
<package>es_es</package>
<sort_order>10</sort_order>
<use vendor="<vendor>" package="es_es" />
</language>


Once you have these done and the .csv have data inside (make sure you try and find them online).



Then you go and create storeviews:



enter image description here



You should have Default WebSite and Default Store and Default StoreView (Or the Italian ones). So when creating 2 new storeviews, they should be childs of the default Store.



Hopefully I will have answered the questions.







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 20 '18 at 12:03









RaülRaül

536118




536118













  • Ok if i understood well i have to create two language packages or install theme from a vendor (like mageplaza). Then i need to create two store views with the language code. My answer is: i have to create a language code for the urls also for the italian view( the default one): Example: spanish: website.com/es english: website.com/en italian : website.com or website.com/it? If the second case i the right how can i redirect the old to the new one? magento does it or i need to write them in .htacces?

    – baronebirra
    Aug 20 '18 at 13:19













  • Well, the way I explained it so you have the same web, but the user would have at the top left or top right a comboBox where they can choose with which language do they want to see the web. You need to add them to your code, but not to vendor. If you want to create different websites, it's a different story.

    – Raül
    Aug 20 '18 at 14:55











  • Sorry, i explained it in the wrong way. I wanted to say that i would download language packages from mageplaza for the views

    – baronebirra
    Aug 20 '18 at 14:56











  • i think that i do not have enogh point to chat

    – baronebirra
    Aug 20 '18 at 15:07











  • Oke, no problem. It was just so we would't be chatting here.

    – Raül
    Aug 20 '18 at 15:37



















  • Ok if i understood well i have to create two language packages or install theme from a vendor (like mageplaza). Then i need to create two store views with the language code. My answer is: i have to create a language code for the urls also for the italian view( the default one): Example: spanish: website.com/es english: website.com/en italian : website.com or website.com/it? If the second case i the right how can i redirect the old to the new one? magento does it or i need to write them in .htacces?

    – baronebirra
    Aug 20 '18 at 13:19













  • Well, the way I explained it so you have the same web, but the user would have at the top left or top right a comboBox where they can choose with which language do they want to see the web. You need to add them to your code, but not to vendor. If you want to create different websites, it's a different story.

    – Raül
    Aug 20 '18 at 14:55











  • Sorry, i explained it in the wrong way. I wanted to say that i would download language packages from mageplaza for the views

    – baronebirra
    Aug 20 '18 at 14:56











  • i think that i do not have enogh point to chat

    – baronebirra
    Aug 20 '18 at 15:07











  • Oke, no problem. It was just so we would't be chatting here.

    – Raül
    Aug 20 '18 at 15:37

















Ok if i understood well i have to create two language packages or install theme from a vendor (like mageplaza). Then i need to create two store views with the language code. My answer is: i have to create a language code for the urls also for the italian view( the default one): Example: spanish: website.com/es english: website.com/en italian : website.com or website.com/it? If the second case i the right how can i redirect the old to the new one? magento does it or i need to write them in .htacces?

– baronebirra
Aug 20 '18 at 13:19







Ok if i understood well i have to create two language packages or install theme from a vendor (like mageplaza). Then i need to create two store views with the language code. My answer is: i have to create a language code for the urls also for the italian view( the default one): Example: spanish: website.com/es english: website.com/en italian : website.com or website.com/it? If the second case i the right how can i redirect the old to the new one? magento does it or i need to write them in .htacces?

– baronebirra
Aug 20 '18 at 13:19















Well, the way I explained it so you have the same web, but the user would have at the top left or top right a comboBox where they can choose with which language do they want to see the web. You need to add them to your code, but not to vendor. If you want to create different websites, it's a different story.

– Raül
Aug 20 '18 at 14:55





Well, the way I explained it so you have the same web, but the user would have at the top left or top right a comboBox where they can choose with which language do they want to see the web. You need to add them to your code, but not to vendor. If you want to create different websites, it's a different story.

– Raül
Aug 20 '18 at 14:55













Sorry, i explained it in the wrong way. I wanted to say that i would download language packages from mageplaza for the views

– baronebirra
Aug 20 '18 at 14:56





Sorry, i explained it in the wrong way. I wanted to say that i would download language packages from mageplaza for the views

– baronebirra
Aug 20 '18 at 14:56













i think that i do not have enogh point to chat

– baronebirra
Aug 20 '18 at 15:07





i think that i do not have enogh point to chat

– baronebirra
Aug 20 '18 at 15:07













Oke, no problem. It was just so we would't be chatting here.

– Raül
Aug 20 '18 at 15:37





Oke, no problem. It was just so we would't be chatting here.

– Raül
Aug 20 '18 at 15:37


















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%2f238920%2fmagento-multi-language-store%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

What other Star Trek series did the main TNG cast show up in?

Berlina muro

Berlina aerponto