Portfolio Designer plugin is language compatible, thus can be translated into multiple languages. You can use POEdit plugin for translation.
- Step 1. Install Poedit tool and open it
- Step 2. Open .POT file from /wp-content/plugins/portfolio-designer/languages/ that you want to translate
- Step 3. Now, click on “Save”
- Step 4. A popup will appear, enter your Language code ( Ex :- “ca_CA” for English (Canada)) in language option
- Step 5. Then select source path tab and you have to modify this path to full path of your plugin that you want to translate.
Select path - Step 6. Then press ok button.
- Step 7. Then give file name like this portfolio-designer-ca_CA.po for English (Canada) language.
- Step 8. Then save file inside language folder in plugin that you want to translate and all strings are appear in your poedit editor
.pot file editin in Poedit tool - Step 9. Select your string that you want to translate and in bottom side there are two options one is Source Text and another one is Translation
Translate string - Step 10. Source Text keep as it is and in Translation section enter your translated string of selected string that you want to translate and then save it.
- Step 11. Repeat step 10 untill your all strings to be translate.
- Step 12. Now you will get two separate files – a .po file and a .mo file.Note : When you save the files, you must name them according to your language code. Find a list of language codes at WordPress in your Language. For example, the language code for English (Canada) is ca_CA, so you would save the translated files as ca_CA.po and ca_CA.mo.
PO MO file - Step 13. Then go to wp-config.php file then enter the below code.
define('WPLANG', 'Your language code');
for Ex.(ca_CA for English (Canada)) then save it. - Step 14. Select language from admin side, Go to Dashboard » Settings » General in that check Site Language options.
- Step 15. Check language prefix in front end, view HTML.
Language Prefix