How to use this for a multilingual blog
We recommend using WPML for a multilingual blog. You will need these plugins active to follow the instructions:
- WPML Multilingual CMS
- WPML String Translation
Another option is to use the Polylang plugin.
This documentation is for templates using "Modern Mode" only.
Creating a template for all our languages
You want to create a different recipe template for all the languages on your blog using the Template Editor. The main difference between those templates will usually just be the translation of the labels. For this example we've created a template for English and one for Dutch:
On the WP Recipe Maker > Settings > Recipe Template page, set the Default Recipe Template to the one you've created for your main language:
Now all recipes will be using this custom template.
Showing a different template per language
Next step is to make sure a different template gets displayed for a different language.
Important: make sure to save the settings and open a recipe on your actual website first. Otherwise you might not see the string you need to translate.
Translating can be done on the WPML > String Translation page. You'll need to change the translation for the string named "Setting - default_recipe_template_modern". You can't search by string name, however, so it's easiest to search for the slug of the default recipe template you have set.
When you've found it, click on the blue "translations" link and set a different template slug for the other language(s). Make sure to mark "Translation is complete" and hit that Save button.
Now a different recipe template (with different labels) should get used for different languages.
Translating can be done on the Languages > Strings translations page. You'll need to change the translation for the string named "Setting - default_recipe_template_modern" like in this example:
After saving a different recipe template (with different labels) should get used for different languages.