Yummy Docs


The plugin can be fully translated to your language. First of all you will need to set the language in the WordPress dashboard settings screen at Settings → General → Site Language.

Do not save your translation over the default translation file, yummy.pot!

Translating with Loco Translate #

Loco Translate is a plugin which allows the translation made in the WordPress dashboard.

Install and activate the plugin, and go to Loco Translate. Now you will need to select which theme or plugin to translate. Obviously you are translating the Yummy plugin.

It may take a while for the next page to load. If you are just starting the translation choose New language. Choose your language from the dropdown, and click Start translating.

Now you can start translating the theme line by line. Click Save to save changes, and the translated strings appear on you site right away.

Translating with Poedit #

Poedit is a translation software which can be downloaded for free from Poedit.

Download and install Poedit. Now, open yummy.pot from the plugin's languages folder with Poedit.

When you save the file, you must name it according to your language code. As an example, for German the file name would be de_DE.po, for Spanish es_ES.po, and for Italian it_IT.po.

Translating URLs #

The plugin uses custom URL structure for single recipes, recipe post type archive and recipe taxonomies.

To finalize the translation you can translate these URLs at Settings → Permalinks.

Translating single sentence #

Sometimes you only need to translate a one or two sentenced in the plugin. In these cases it is easier to use a simple WordPress hook for translation. Use a plugin like Code Snippets, or add the code to your child theme.

function my_text_translate( $translated ) {
$translated = str_ireplace( 'Description', 'More Information', $translated );
return $translated;
add_filter( 'gettext', 'my_text_translate' );