If your language is not included in Omniverse’s predefined translations, or if you want to customize certain texts, you can use the Loco Translate plugin. Loco Translate makes it easy to translate or modify theme and plugin texts without touching code.
1. Install the Loco Translate Plugin #
If you haven’t installed Loco Translate yet:
- Go to Plugins → Add New from the WordPress Dashboard.
- Search for “Loco Translate”.
- Install and activate the plugin.
2. Create a New Custom Translation #
Follow these steps to create a new translation for your language:
- Go to Loco Translate → Themes. You will see a list of installed themes. Click on Omniverse.
- On the preferences page, click “New Language”.
- Select your desired language from the “Choose a Language” dropdown.
- Choose a location to save the translation file.
- Important: Select Custom (languages/loco/themes).
- This location is safe from automatic theme updates and has priority over other locations.
- Click Start Translating.
- Select the English string at the top, then enter your translation in the bottom editor pane.
- Continue translating strings as needed, then click Save.
3. Customize a Predefined Translation #
If your language is already available in Omniverse’s predefined translations, you can override it to make minor adjustments:
- Go to Loco Translate → Themes → Omniverse.
- Select your predefined language and click Copy.
- On the next screen:
- Choose Custom (languages/loco/themes) as the location.
- Enable Copy target translations to include all predefined strings for easy customization.
- After creating the custom translation file, search for the texts you want to modify, make your changes, and click Save.
4. Synchronize Your Translation After a Theme Update #
After updating Omniverse and downloading the latest translations, you should synchronize your custom translation to include any new or updated strings:
- Go to Loco Translate → Themes → Omniverse.
- Select your custom translation.
- Click the Sync button.
Depending on your custom translation source, synchronization will scan either:
omniverse/languages/omniverse.pot(original theme file), orwp-content/languages/themes/omniverse-*.po(latest downloaded translations)
This ensures that your translation remains up-to-date while keeping your customizations intact.