Skip Navigation

[Resolved] Translate plugin strings

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 2 years ago.

Assisted by: Luo Yang.

Author
Posts
#2497623

Tell us what you are trying to do?
Translate plugins strings such as buttons, labels, placeholders etc. on frontend. We would like to use a free solution to translate a bunch of strings from Toolset Forms plugin and Toolset Types plugin. Can you point me on a free solution like LocoTranslate or similar?

Is there any documentation that you are following?
no

Is there a similar example that we can see?
no

What is the link to your site?
hidden link

#2498035

Hello,

The best solution is WPML plugin(it is not a free plugin), see our document:
https://wpml.org/documentation/related-projects/toolset/

And you can follow WordPress document to translate Toolset plugins:
https://developer.wordpress.org/plugins/internationalization/localization/

For example, for Toolset Types plugin, the po file is in your plugin folder:
\plugins\types\vendor\toolset\types\embedded\locale\types.po
Toolset Forms plugin:
t\plugins\cred-frontend-editor\library\toolset\cred\embedded\locale\orig\wp-cred.po

#2498375

Thank you Luo for your valuable support.
Our website is single language and we don't want to use WPML.

1. We would like to try Loco Translate but we are wondering if you have some tips or documentation to set Loco Translate properly(this plugin has more than 1Million active install and it should be a lightweight solution for those who want only translate strings).

2. At the moment we downloaded the .POT files and we edited it with POEDIT. Then we uploaded the italian version and it works like expected. By the way this solution is not user friendly and we are scared about loosing the changes we made after Toolset Updates.
If we choose to go ahead with this 2. solution, can you point us to the best way to protect the changes we made to the .mo files uploaded into \plugins\cred-frontend-editor\library\toolset\cred\embedded\locale\orig\wp-cred.po?

#2498677

Q1) No, there isn't existed tips or documentation to set Loco Translate in Toolset side.
You might check it with Loco Translate support.

Q2) And you can follow WordPress document to load the mo file where you want to store:
https://developer.wordpress.org/reference/functions/load_textdomain/