All of our Themes are able to be translated into any language. The following instructions are given as guidance. You have two ways to translate theme.
Loco translate plugin (recommended)
Upload plugin Loco translate, now you can translate your plugins from admin panel. For this, open plugin page. Go to Loco translate Themes . You can see here all themes. Click on Rehub Theme. Then Click on New Language . Save your file in Other Locations (
/languages/themes/rehub_framework-< locale >.po), because you will not lose file after update in such case. Even if you find your language in existed, I recommend to Copy it in new file and save to global folder, old file – delete.
No need to translate all strings. Just translate those which you need on site.
If you use one of child themes, sometimes you can find strings in Child theme localization file instead of Main theme (rehubchild localization file)
How to update translation
After new theme update, go to Theme localizations. Click on Edit template .
Then, click on Sync button , then save. Then, return to your localization file and also click on Sync button button and save. Now, new strings will be added from new theme
Why some strings are not available in localization file?
Sometimes you can find one common problem – some strings are not available in your localization file.
To fix this, go to Loco Translate – Settings and find option Skip PHP files larger than. Set value as 300k, save. Then, make synchronization of files as described above.
Second way of translation is using POEDIT
- Download and install POEDIT
- Connect to your site and open
- Download the
rehub_framework.potfile and open it with POEDIT.
- Translate file and save it as your language string. Example, french –
fr_FR.po, danish –
- Two files will be generated after saving, with .PO and .MO extensions.
- Rename and Upload the .MO and .PO files into
/wp-content/languages/themes/rehub_framework-locale.po. Use your locale name instead of “locale” suffix in name.
To update localization – Open POEDITOR, open your .PO file and click on “update from .POT file”, then open theme
/folder/lang/ folder and choose
How to change words if your language is English
Many of buyers ask me how to change some words in theme if they have the same default language as theme. Secret is that you can change it with the same way as translation theme. You just need to create English language localization as described above for Loco translation plugin. So, just create new language and choose English. There are also GB and USA English, you can find which of them is in use on your site in Settings – general