Video tutorials
Language Files & Child Theme Installation
To translate the WpRentals theme, you need to modify two sets of translation files:
- Theme files: themes/wprentals-child/languages
- Plugin files: plugins/wprentals-core/languages
Why Use a Child Theme?
We recommend installing and using the child theme to prevent your theme translations from being lost when updating the main theme.
Plugin translations will need to be backed up and restored after each theme / plugin update if there are custom changes to made in your installation.
Installing the Child Theme:
- Download “All Files and Documentation” from your buyer account → Downloads.
- Unzip the package and find wprentals-child.zip.
- Install the parent theme first (wprentals.zip). Installation Guide
- Then, install wprentals-child.zip in the same way.
- Activate the child theme.
Translating with Loco Translate
Step-by-Step Instructions
- Install the Loco Translate plugin.
- Install and activate wprentals-child.zip.
- Set your desired language in Settings → General.
Install the Loco Translate plugin.
Install and activate wprentals-child.zip.
Set your desired language in Settings → General.
For Theme Translation:
- Go to Loco Translate → Themes.
- Select WpRentals Child Theme.
- Add a New Language or edit an existing one.
For Plugin Translation:
- Go to Loco Translate → Plugins.
- Select WpRentals – Theme Core Functionality.
- Add a New Language.
Translation Process:
- Ensure you select the correct language.
- Search for the words you want to rename and translate them.
- Save your changes.
Translate with POEDIT
- 1. Download and install POEdit (the free version is sufficient).
- 2. Open the following .po files
- Theme files: themes/wprentals-child/languages/wprentals.po
- Plugin files: plugins/wprentals-core/languages/wprentals-core.po
- Set the .po language according to your site’s language (Admin → Settings → General).
- Translate the required text strings.
5. Save the files and rename them using the correct language code (e.g. de_DE.po for german) See this link for the proper name.
- Upload the renamed .po and . mo files to the following locations:
- – themes/wprentals-child-po/languages/ folder
- – plugins/wprentals-core/languages/ folder
After uploading, you should have:
- wprentals.po and wprentals.mo (original files)
- Your newly translated .po and .mo files
Translate Theme Options Labels
Some labels are managed directly in the Theme Options panel:
Property Page section labels – Edit via Admin → Theme Options → Listing Page → Listings Page Text Labels.
- Property Custom Fields: Edit via Listing Custom Fields.
- Advanced Search – some of the custom fields labels are set in Theme Options – Search tabs
Update languages files after theme and core plugin updates
When the theme is updated, new terms may be added. Follow this guide to update your translation files:
How to Update Translations After a Theme Update