Blog

πŸ”₯ Execute Gato Translate (Custom) bulk actions, integrate with ACF, Meta Box, and SEO plugins, WP-CLI, and more

Leonardo Losoviz
By Leonardo Losoviz Β·

Gato AI Translations for Polylang just dropped v14.0, packed with all the new features our users asked for!

Gato Translate (Custom)

You can now execute the Gato Translate action with custom settings, by using the new Gato Translate (Custom) bulk action.

Executing the Gato Translate (Custom) bulk action
Executing the Gato Translate (Custom) bulk action

This bulk action will redirect to a Custom Settings page, with options that you can override for that execution only (these settings will not be stored to the plugin settings).

Using custom settings is useful on many scenarios, such as:

βœ… Re-trigger Failed Translations

Re-trigger the translation for a language that failed without affecting other languages.

βœ… Use Different AI Models

Use a different AI model than the one configured in the plugin settings for specific translations.

βœ… Change Origin Language

Use a different language as the origin language (eg: translate content copied from a website in another language).

βœ… Experiment with Prompts

Experiment with a different prompt for the translation without changing the global settings.

Re-trigger failed translations

The most common use case for this feature is to re-trigger the translation for a language that failed without affecting other languages.

To do that, you can select the None (disable translation) option for each already-translated language, and click on the Execute 'Gato Translate' button:

Customizing the execution of the 'Gato Translate' action
Customizing the execution of the 'Gato Translate' action

(Big thanks to plugin's user HervΓ©, who contributed the code for the links to quickly set the value on the dropdowns πŸ‘)

We have also added an option to have the None (Disable Translation) option applied by default to all languages in the Custom Settings.

Apply None (Disable Translation) by default to all languages in the Custom Settings
Apply None (Disable Translation) by default to all languages in the Custom Settings

Automatic integration with Advanced Custom Fields and Meta Box

Previously, you had to manually configure the meta keys to synchronize and translate for each field group in Advanced Custom Fields (ACF) and Meta Box.

That was a bit cumbersome, and not very intuitive.

So we've fixed it! We have added a Gato Translate input to configure sync/translation directly using the UI of these plugins.

Editing a Field Group in ACF:

Configuring sync/translation for an ACF field group
Configuring sync/translation for an ACF field group

Check out the video below for a quick demo:

Integration with Advanced Custom Fields (ACF). Watch on YouTube

Editing a Custom Field in Meta Box:

Configuring sync/translation for a Meta Box custom field
Configuring sync/translation for a Meta Box custom field

Quick demo in the video below:

Integration with Meta Box. Watch on YouTube

Automatic integration with SEO plugins

In the past, you had to manually configure the meta keys to synchronize and translate for each SEO plugin.

Not anymore. The following SEO plugins are now integrated out of the box:

All in One SEO
Rank Math
SEO Simple Pack
SEOPress
Slim SEO
The SEO Framework
WP Meta SEO
Yoast SEO

And you can enable/disable the integration for each plugin in the Plugin Integration Configuration tab in Settings.

Enable/disable SEO plugin integrations in settings
Enable/disable SEO plugin integrations in settings

Demo using The SEO Framework in the video below:

Integration with SEO plugins. Watch on YouTube

Access new AI models immediately

Breaking change: You must provide the OpenRouter API key again.

You can now access the AI models from OpenRouter directly from the OpenRouter API. The list of models is updated daily.

That means that you do not need to wait for Gato AI Translations for Polylang to be updated to use the latest version of your favorite model, or to try out a fancy new model.

Do it immediately, the same day the model is released!

List of AI models available on OpenRouter
List of AI models available on OpenRouter

(Thanks again to HervΓ©, he also contributed the code for this new feature πŸ‘πŸ‘)

The UI now also displays information for the selected model, including price, context window, max tokens, and more.

Showing the details of an AI model available on OpenRouter
Showing the details of an AI model available on OpenRouter

And you can also filter the models by price, release date, and more.

Filtering the list of AI models available on OpenRouter
Filtering the list of AI models available on OpenRouter

Trigger translations via WP-CLI

You can trigger translations directly from the command line via WP-CLI, with a simple wp gatotranslate command.

Translating posts via WP-CLI
Translating posts via WP-CLI

Other improvements

Version 14.0 includes several other improvements and bug fixes, including:

  • Support OpenAI 5 models
  • Improved the prompt sent to the AI models
  • Sync the post's parent, translating the ID to that of the target language
  • Sync the menu_order property of the post
  • Translate arrays of arrays in meta (i.e. support Meta Box group type)
  • Added hooks to override the prompt sent to the AI models, variables and meta keys to sync/translate.
  • Identify CPTs registered via plugins (ACF, Meta Box, Custom Post Type UI), and set the "Automatically create translation entries" option to them by default
  • Support glossaries in DeepL
  • Trigger translations via PHP code

See the changelog for the full list of changes.

As always, enjoy! πŸ™


New plugins coming soon

Subscribe to receive a notification when the next plugin by Gato Plugins is released.