Skip Navigation

[Closed] Prepare my custom translation file

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

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

Supporter timezone: Asia/Kolkata (GMT+05:30)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Raja Mohammed 4 years, 3 months ago.

Assisted by: Raja Mohammed.

Author
Posts
#1830537

Dear Sir/Madam,

Thanks for Shane's support, I refer to his reply https://toolset.com/forums/topic/translate-the-form-message/, I want to have my custom translation file for the Toolset Form, I read this article and it recommends the translation file should be named as
{plugin-domain}-{locale}.po
{plugin-domain}-{locale}.mo

May I know what the Toolset Form's plugin domain?

best regards,

Kelvin.

#1831903

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello there,

The text domain for the Toolset forms is wp-cred.

As an additional information you can skip the part “Setup Your Plugin To Use Translation Files“ from the article. As the step is already handled by the Toolset. Adding the translation files to the language folders would suffice.

Regards
Raja

#1834707

Dear Raja Mohammed,

Thanks for your reply. How can I check my current locale? I tried to save wp-cred-zh_TW.po and wp-cred-zh_TW.mo to /wp-content/languages/wp-cred or /wp-content/languages/plugins but doesn't work.

Please advise how I can fix it.

Best regards,

Kelvin.

#1835125

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello Kelvin

Can you please let me know the strings that you are trying to translated, I see a issue related to the Message string translation which is already reported here https://toolset.com/forums/topic/forms-messages-translation-not-working-as-expected/

Based on the string that you are trying to translate i can look up for solutions on any escalated issues.

Kind regards
Raja

#1845453

Dear Raja Mohammed,

Yes I read this https://toolset.com/forums/topic/forms-messages-translation-not-working-as-expected/, I have the same question to the translation issue, my site has only one language, I don't want to have the WPML even I have the lifetime license. I don't know where the string the User Form and Post Form keep. Is it possible to have the custom .po file?

Best regards,

Kelvin

#1845485

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I have gone though the escalated ticket and related discussion in detail.

It is not possible to have a a custom .po file for the front end forms as it looks for translation files in the path wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/languages the language file should be in .mo format.

Alternatively you can use plugins like loco translate which can help you modify the existing translation of the the form fields and generate .mo files that can be used in the Toolset language path mentioned above.

#1845487

Dear Raja Mohammed,

Yes I can make the .mo file, please advise whether there is a .po file for me to do the translation.

Best regards,

Kelvin

#1845597
Screenshot 2020-11-16 at 5.47.24 PM.png
Screenshot 2020-11-16 at 5.49.00 PM.png
Screenshot 2020-11-16 at 5.46.25 PM.png

Dear Raja Mohammed,

I visit the folder wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/languages but can't find any .po file, how can I do the translation?

I use web inspector to check my site is currently selected the zh_TW as the default language, I find there is views-zh_TW.mo file but I don't think it is translated. The error message is still in English.

Please advise how I can do the translation without installing the WPML.

#1845885

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As far as i see it is not possible to add a translation using custom .po file for the wp-cred.

These are dynamic strings that are stored and retried from database.

I hope the form is created with Chinese as default site langauge in that case the form notification strings in the back end should by default display the available Chinese translations by the time the form creation is completed.

Please share a screenshot of the notification strings below the form, Does it display all the notification string in Chinese or English?

The topic ‘[Closed] Prepare my custom translation file’ is closed to new replies.