Multi-country and multi-language website in Drupal 8 - internationalization

I’m trying to create a Drupal 8 website with multi-country selection and more languages available for each Country.
For example, the visitor can select Belgium as his Country, then he should be able to select one of the languages related to Belgium: French and German, plus English (which should be available for all Countries).
I’ve installed two modules: Domain Access and Country Path.
Domain Access allow me to define different domains and sub-domains like fr.domain.com, it.domain.com, etc.
Using Country Path I should be able to create different path for the same domain based on Country selection, like domain.com/france, domain.com/italy etc. But unfortunately it’s not working properly…
Using sub-domains is not possible for my project and, even configuring Country Path, if I go to domain.com/france I always get a page not found error.
What I need in the end is this path/url structure: domain/country/language, like for example domain.com/belgium/fr or domain.com/belgium/en.
Do you had any experience with this situation? Any idea or suggestion about modules to try or core configurations that can solve this?

You should definitely try Internationalization module.
It will provide you with content translation,different path for the same domain based on Country selection and language switcher block.
default looking language switcher

Related

Refinerycms multiple languages dependent on TLD

I want to create a website with the refinerycms and now I have a question.
I have 4 domains for my website.
mydomain.at
mydomain.de
mydomain.ch
mydomain.com
In the beginning there only will be a german translation.
Now my question:
Option 1:
I do a redirect to mydomain.com and "map" the domains to:
mydomain.com/de-at
mydomain.com/de-de
mydomain.com/de-ch
dependent on the country where the website is called.
Option 2:
I do not make a redirect an just show the content in the TLD. I just do a redirect dependent on the country, where the website is called.
For example website gets called in Germany over mydomain.at => I will redirect to mydomain.de
Now my question: How could I implement one of these options within the scope of the refinerycms?
I know the refinerycms-i18n gem and I also know the frontend locales and the normal "stuff". But I did not find anything about "multiple-same-languages" like "de-at", "de-de" and "de-ch". Because in the end all these translations are only one german translation, but the customer wants to specify the "sub-language" to make it more personal..
Anybody an idea?

joomla site with regional differences

I have a Joomla site which is based in one country (US). We've been tasked to create a UK/GB version of the site which has it's own domain, but shares the same common pages/posts/backend. About 75% of the pages are the same on both versions but there will be a few sections (like About and Contact) where they are different to account for regional differences.
Example
US site (www.example.com) has
Home About Services Contact UK Site (www.example.co.uk) has 3 pages
(2 different, 1 the same)
Home (The same as US, but the URL should be www.example.co.uk) About
(Different content, the URL should be www.example.co.uk/about)
Services (The same as US, but URL should be
www.example.co.uk/services) Contact (Different content, the URL
should be www.example.co.uk/contact)
How do I go about setting up the UK/GB version of the site which use the same backend and most of the same content from the base site, but has a few page differences and different domain?
I think you should somehow rely on the multilingual feature of Joomla! (http://multilingual-joomla-demo.cloudaccess.net/multi-lingual-steps-by-steps.html)
Define for example languages for US / UK. Pages that are identical for both, just leave the language setting to "All".
For the rest specify the language.
Hope this helps.

One Magento, One Catalog, Multple Domains, Multi Language, Shared Shopping Cart, SSL on Checkout

This is what I’m trying to achieve on our dedicated server (Direct Admin):
1 Magento (1.6.2.0)
1 catalog
3 domains
domain.nl (is main and has the magento files)
domain.de (is domain alias, not Virtual Host, has no files at all)
domain.se (is domain alias, not Virtual Host, has no files at all)
3 languages
Dutch
German
Swedish
Shared Shopping Cart
SSL on Chekout
Let’s say a Dutch visitor is typing “product X” in Google and finds his product on our German site (domain.de). He adds it to the cart and likes to continue in Dutch. So he clicks the Dutch flag and should be able to checkout on domain.nl.
I tried a couple of things with the language. One way I had 3 websites, 1 for each domain and all with 3 stores, one for each language. So 9 stores and views in total. This was the only way I could get the flags showing. But most of the time the flag image was not showing because the code of the view had to be the 2 letter country code, which can only used once. And when I changed language (thus domain), the cart was not shared.
The other way I had 1 Website with 3 stores, one store and view for each language/domain. But in this case the language selector (flags) where not showing at all.
I’ve been reading allot about this. But all the (mostly old) topics or article I found are about a single subject and so different from each other that I cannot combine them into one.
Thanks for any help!!
Cheers,
Robert
I have played with this concept a bit and I believe this is how you would do it. Under Magento Admin->System->Manage Stores you would set up the following.
One Website (most likely Main Website)
One Store
Three Store Views (One for each language)
Then you will swing into System->Configuration. Select each specific language in the "Current Configuration Scope" then change General->Web->Unsecure->Base URL and General->Web->Secure->Base URL to the URL you want to use for each store. i.e. Your German configuration should not use the Website Setting and should be set to domain.de instead.
For each of your virtual hosts, configure them to all point to your single Magento install. When they come in with the specific URL Magento should route them to the proper language version and, if they select a flag, it should change to the other URL for that language.
Give this a try and let me know what your results are. I have only lightly played with this and have referenced these topics. I agree with you that this is an area that sometimes has too many ways it can be configured and not enough recommended ways.
http://www.magentocommerce.com/boards/viewthread/227246/
http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/navigation/multiple-website-setup

Is it possible to change Magento backend language for one user only?

We got multi-lingual team, and couple of members do not speak each others languages. Is it possible to set Magento backend in separate languages for corresponding users?
each user can choose a language with the localization drop down at the left bottom of every admin pages
You should find that this module from AOE allows you to save the user's preferred language for the admin interface: https://github.com/AOEmedia/Aoe_BackendDefaultLanguage
Once the user has logged in, navigate to System>My Account and the last field (select drop-down) is language).
I don't know how it is in the pay version of magento, but it seems that the community edition has only the ability to change the backend language to one language regardless of who is logged in. Maybe you code this feature by yourself or you keep the english language.

Have Magento respond to several domains with the same store

I would like to have my magento install respond to two different domains, e.g.
a.mydomain.com and
b.anotherdomain.com
I need magento to respond with the same store, showing the same customers, the same catalog, same prices, etc.
The difference, of course, is that when the store is accessed through a.mydomain.com all the links and urls should use this domain as baseurl, and when it is accessed through b.anotherdomain.com all links and urls should use b.anotherdomain.com as baseurl.
Is there any way to do so? All the documentation I've found so far deal with having different stores on the same magento instance, while what I need here is to have the same store respond to two different URLs.
Thank you!
Everything I know of Magento says it was designed to prevent exactly this from happening so as not to be penalised by search engines for duplicate content.
You can, however, have multiple stores that share customers and catalog and products and prices and so on, but represent a separate domain each. In System > Manage Stores add several Stores for a single website and use the same root category for them all. Then in System > Configuration > Web assign the various domains.
easy enough, just set them both to use the same store code (or just default)
have a look in index.php
you can set the $mageRunCode to be whatever you want, you don't have to use the server environment variables method they have there, look at earlier versions of Magento to see the index.php file there.
see this old article of ours
http://www.edmondscommerce.co.uk/magento/magento-multistore-setup-in-a-nutshell/

Resources