When a new theme version is released, the translation .po files must be updated to include new terms added in:
- wp_content/themes/wprentals/languages/wprentals.po
- wp_content/plugins/wprentals-core/lanaguages/wprentals-core.po
Update with Loco Translate Plugin the WpRentals Theme Language Files
- Install Loco Translate Plugin
- Go to Loco Translate –> Themes
- Select WpRentals Child Theme (keep translations in the child theme to prevent loss after updates).
- Help to install child theme – https://help.wprentals.org/article/how-to-activate-child-theme/
- Save Template File in Loco Translate → Advanced
- Sync translations
- Search for terms, edit, and save.
Update with Loco Translate the WpRentals Plugin Translations
- Go to Loco Translate → Plugins
- Select WpRentals – Theme Core Functionality
- Save Template File in Loco Translate → Advanced as languages/wprentals-core.pot or languages/wprentals-core.po
- Edit and Sync translations
- Translate the new terms and save
Update with POEDIT (free version)
Download and install Poedit.
Open existing .po files:
- wp_content/themes/wpresidence/languages/wprentals.po
- wp_content/plugins/wpresidence-core/lanaguages/wprentals-core.po
Go to Catalog → Update from POT file
Change file type to All Files and select:
- the new wprentals.po PO file from wprentals/languages/wprentals.po
- the new wprentals-core.po PO file from plugins/wprentals-core/lanaguages/wprentals-core.po
All new strings will reflect in your language po.
Translate new strings and save.
- wp_content/themes/wprentals/languages/wprentals.po – theme language file
- wp_content/plugins/wprentals-core/lanaguages/wprentals-core.po – plugin language file