[Resolved] How to Add Multiple Domains Sharing the Same Language in WPML
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is trying to configure WPML for multiple domains (models118.de, models118.at, models118.ch) that share the same German language. The issue is that models118.at and models118.ch are treated as separate language domains instead of sharing the German content from models118.de. Solution: 1. Navigate to WPML-> Languages-> Edit Languages. 2. Ensure you have different locales set up, for example: * German (Germany): de_DE * German (Austria): de_AT * German (Switzerland): de_CH 3. Map these locales accordingly. 4. Click 'Save'. 5. Verify that the domains are added correctly. 6. Resave the permalinks. After these steps, the domains and languages should work correctly. To display the main domain content on the secondary domains without translating, you will need to either duplicate the content or use the fallback function.
If this solution does not resolve your issue or seems outdated, please check the related known issues and verify you have the latest versions of themes and plugins installed. If further assistance is needed, we recommend opening a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to configure WPML for multiple domains that share the same language. I have models118.de set up as the main domain for the German language. I also have two additional domains: models118.at (Austria) and models118.ch (Switzerland). These two domains should use the same German content as models118.de without requiring separate translations. I want models118.at and models118.ch to automatically use the German content from models118.de, with no need for duplicate translations. Users visiting models118.at or models118.ch should see exactly the same content as models118.de, but the domain should remain .at or .ch. I added models118.de as the primary domain for German and enabled the 'Different domain per language' option. I tried adding models118.at and models118.ch, but they are treated as separate language domains instead of sharing the German content from models118.de.
Symptoms:
models118.at and models118.ch are treated as separate language domains instead of sharing the German content from models118.de.
Questions:
What is the exact step-by-step process to configure models118.at and models118.ch to use the same German content as models118.de?
Do I need to configure these domains as aliases, or is there a WPML setting for this?
Should I modify anything in WPML settings, database, or use a special plugin to achieve this?
Do I need to configure anything specific on my server or DNS records?
Thanks for contacting WPML forums support. I'll be glad to help you today.
First of all, sorry for the late reply; it was due to a higher workload.
1) You can set your pages/posts to "Translatable – use translation if available or fallback to default language" in WPML-> Settings-> Post Types Translation section.
Kindly check this guide to know more about handling untranslated content.
2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.
Thank you for your response. However, I believe my issue is not fully addressed in your reply. Let me clarify the situation regarding question 1:
My primary language is English, and the main domain is models118.com.
I recently added a new domain, models118.co.uk, and attempted to assign English as its language (since it is also for an English-speaking audience).
I mapped this new domain to English in WPML. However, I receive an error message stating that I cannot create a new language that is the same as my default language.
The exact error from WPML states:
"These target languages do not support automatic translation: United Kingdom. To enable automatic translation, assign them to known languages."
These four points are my response to question 1.
My goal is to have models118.co.uk function as a localized version of the store in the UK while maintaining English as the language. How can I configure WPML to properly allow this setup without conflicts?
Additionally, I have attached the debug information as requested. Let me know how to proceed.
1- Go to WPML-> Languages-> Edit Languages
2- Make sure that you have different locals, for example:
* English: en_US
* English UK: en_GB
3- Map the two languages
4- Click Save
5- Make sure that the domains are added correctly
6- Resave the permalinks
After that, the domains and languages should work correctly.
In order to show the main domain content in the second domain without translating the content, you will need to duplicate the content or use the fallback function.
For the (These target languages do not support automatic translation) warning, you will not be able to automatically translate from the default language to the UK language, which is expected because both languages are English.