The theme can be translated in any language with POEDIT.
This help will show:
- How to translate the theme with POEDIT
- Get translations from our clients and translate from child theme
- How to translate strings that are not included in the po file.
- What to check if POEDIT translation does not apply.
- How to update the translation .po after a theme update
How to translate the theme with POEDIT
1. Download and install POEdit. Get the free version. You do not need Pro version
2. The language files can be found in wpresidence/languages.
Open the .po file and set the language according to the language set in admin-Settings-General
3. Start adding the translated words for each theme string.
4. After the translation is done, you need to SAVE and rename both .po and .mo files with the proper name (for example de_DE.po). If the file name is not right the translation will not work. See this link for the proper name.
4. Upload the translated and renamed .po and . mo files in wp-content/themes/wpresidence/languages/ folder. You should have now wpresidence.po, wpresidence.mo + your new language po and mo. Check if the language file has the correct name – help here: http://wpcentral.io/internationalization/
Get translations from our clients and translate from child theme
33 languages are added (these are 100% translations machine done): Arabic, Bulgarian, Czech, German, Greek, Spanish, French, Hebrew, Hindi, Croatian, Hungarian, Indonesian, Islenka, Italian, Japanese, Korean, Dutch,Nederlands (België), Polish, Portuguese, Romania, Russian, Slovak, Slovenščina, Serbian, Spanish, Svenska, Russian, Thai, Turkish, Urdu – PAKISTAN, Vietnamese, Simplified Chinese
Step1. Download “All files and documentation” from your buyer account on theme forest
Step 2. Unzip the folder you download
Step3: Upload the wpresidence-child-po theme and activate it. Set the WordPress language in Settings
Step4: Edit the po files inside the child theme with poedit and upload them in wpresidence-child-po/languages via FTP or upload Loco Translate plugin and edit the .po via wp-admin interface. Save the edits
How to translate strings that are not included in the po file.
THERE ARE SEVERAL ITEMS THAT TRANSLATE FROM THEME OPTIONS:
a. For Property Details, Property Features, Property Address
These labels are managed from Admin – Theme Options – Listing labels.
b. For Property Features & Amenities –
Please go and edit them in Admin – Theme Options – Listing Custom Fields
c. For Property Fields – custom fields –
NOTE: Some default properties fields are managed from POEDIT (Address fields, Bedrooms, Rooms, Bathrooms, Size, Property Size). The rest are managed from admin.
d. For Advanced Search labels – custom fields,
Managed from Options – Advanced Search
Note 1: If you don’t have custom advanced search enabled, all fields are translated in POEDIT.
Note 2: Dropdowns (All Cities, All Areas, All Types, All Listings – are managed only from POEDIT).
Update the .po translation after a theme update
Step1: Open up your existing language PO file with Poedit software.
Step2. Go to
Catalog and select
Update from POT file
Step3. First, change the file type option to
All Files, then select the new wpresidence.po PO file from latest theme update folder
Step 4. Once the import is completed, all the new string from the new PO file will be added and your existing (translated) string will remain intact as well.
Step5. Finally, proceed to translate all the new string into your preferred language. Save. Move the updated .po and .mo language file back to wpresidence/languages or to child theme languages folder.
LOCO TRANSLATE PLUGIN
You can use Loco Translate to translate the theme to your own language from wp-admin.