When creating your custom language, you can map it to a similar, supported language. This allows you automatically translate your content into the supported language. Then, when reviewing the translations, you only need to make minor changes instead of translating it all from scratch.
For example, let’s say we use the custom language Swiss German on our site. This is not a supported language for any of our translation engines. However, we can map this to the closest supported language, German.
By mapping the languages together, we can automatically translate the content into German and make only a few changes to make it sound right in Swiss German.
If you do not map a custom language to a supported language, you will not be able to use WPML’s automatic translation or spell check features.
How to Map a Custom Language to a Supported Language
You can add a custom language mapping in 3 places:
In the Setup Wizard
When setting up your site’s languages for the first time, you can decide the mapping as you create your custom language.
In the Languages Settings
Go to WPML → Languages and click Edit Languages. Here, you can see a column with a dropdown menu where you can choose the language mapping for each of your site’s languages.
In the Automatic Translation Settings
Go to WPML → Translation Management and click the Automatic Translation tab. Click Language Mappings.
Click the Pencil icon to add or edit the supported language for each of your site’s languages.
Important Considerations When Mapping Languages
We do not recommend using automatic translation or Translate Everything mode with certain custom language setups:
When a custom, secondary language is mapped to your site’s default language
When multiple secondary languages are mapped to the same supported language
Mapping a Custom, Secondary Language To Your Site’s Default Language
Example: A site with a default language of English and a secondary language of British English, mapped to English
Currently, it is not possible to automatically translate your content because your original language and target language are the same. Automatic translation only works when translating between two different supported languages.
Mapping Multiple Secondary Languages to the Same Supported Language
Example: A site with secondary languages of French and Canadian French, both mapped to French
When you have multiple secondary languages that are mapped to the same language, you are essentially creating identical translation jobs: the same content from the same default language to the same target language.
Normally, WPML’s translation memory can help you save automatic translation credits by remembering and applying translations that were already generated in other places on your site. However, when jobs are created at the same time, the translation memory from one custom language is not yet available for the other. This means it uses automatic translation credits for the translation into each custom language, despite the fact that the translations are the same.
In this case, we do not recommend using Translate Everything mode, and if you want to use automatic translation, we recommend sending the content to translation separately for each custom language. This will allow WPML to use translation memory so you are not charged for the same translations multiple times.