Magento multi Language store
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/
- How to handle the current store view ?
- It is necessary to add the it code to the italian view?
- If yes, How to handle the old urls (without the store code).
magento2.2 url-rewrite language
add a comment |
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/
- How to handle the current store view ?
- It is necessary to add the it code to the italian view?
- If yes, How to handle the old urls (without the store code).
magento2.2 url-rewrite language
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
add a comment |
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/
- How to handle the current store view ?
- It is necessary to add the it code to the italian view?
- If yes, How to handle the old urls (without the store code).
magento2.2 url-rewrite language
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/
- How to handle the current store view ?
- It is necessary to add the it code to the italian view?
- If yes, How to handle the old urls (without the store code).
magento2.2 url-rewrite language
magento2.2 url-rewrite language
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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:
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.
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
|
show 3 more comments
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:
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.
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
|
show 3 more comments
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:
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.
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
|
show 3 more comments
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:
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.
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:
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.
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
|
show 3 more comments
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
|
show 3 more comments
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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