WordPress — How to translate themes and plugins for free and quickly?

Ngoc My Truong
3 min readNov 5, 2023

--

Hello everyone, today I’d like to introduce you to how I translate any Theme or Plugin into Vietnamese or any other language VERY QUICKLY and completely for FREE.

Find the .po or .pot file within the theme or plugin.

In each theme or plugin, there is typically a provided .po or .pot file containing all the text used in the theme or plugin. (In my example, it’s the Guide theme)

file .pot

Convert the .pot file to a CSV file

Now, we need to convert this .pot file to a CSV file. There are many tools available for this purpose. Personally, I often use this website: [convert pot to csv](https://dichthuatphuongdong.com/tienich/po2csv.html)

Use Google Sheets for translation

  1. Upload the recently converted CSV file to Google Sheets.
  2. Select the first row of the second column.
  3. Use the GOOGLETRANSLATE function for translation.
  4. Then, simply drag down to the last row and wait for the translation process to complete.
GOOGLETRANSLATE function

Convert the translated CSV file back to a .pot file

Continue using the tool to convert it back to the original .pot file. I often use this website:

[convert csv to pot](https://convertio.co/vn/csv-pot/)

Poedit

After having the translated .pot file, you may need to fine-tune some phrases to ensure they fit correctly. At this point, you can download the software called [Poedit](https://convertio.co/vn/csv-pot/). Here, you can review sentences and make adjustments as needed.

Poedit
Edit text in Poedit

Reached the destination!

After thoroughly fine-tuning with Poedit, select ‘Save As’. Here, it’s important to note three things:

  • If it’s a theme, save the file in wp-content/languages/themes/
  • If it’s a plugin, save the file in wp-content/languages/plugins/
  • The file name should be the theme or plugin name followed by the language code. For example, in my case, it would be guide-vi

After saving, you will see two files generated: .po and .mo. If you want to edit the text, you can open the .po file with Poedit or edit directly within the .po file.

2 files .po and .mo

Conclusion

That’s it, no need to worry about finding a good and affordable translation plugin anymore. Just use any language Google can translate, and you’re good to go! 😄 I hope this solution saves you a lot of time.

--

--

Responses (1)