Skip Navigation

[Resolved] Whats forms text domain

This thread is resolved. Here is a description of the problem and solution.

Problem: I am trying to translate specific messages in the Toolset Forms plugin without using the WPML plugin, and I need help finding the correct text domain for gettext filter usage.

Solution: Use the Toolset Forms plugin's dynamic text domain which depends on the ID of your form. For example, if the ID is 1553, the text domain would be "toolset-forms-1553". To find the ID for default forms like [wpv-forgot-password-form], check the same location where custom form IDs are listed, or use the WordPress "gettext" filter directly if you prefer not to use a text domain.

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.

This topic contains 3 replies, has 2 voices.

Last updated by tobiasB-4 7 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2695273

Tell us what you are trying to do?

I want to translate the "Check your email for the confirmation link" (which appears above the form when you have sent the reset email) and the "Your password has been reset" (which appears above the form when the password is reset). Both made out of the [wpv-forgot-password-form]. I want to do this using gettext filter but I have problem finding correct text domain, as I am assuming the Forms plugin handles this.

As I dont have much to translate I dont want to use the WPML plugin.

BR Tobias

#2695288

Christopher Amirian
Supporter

Languages: English (English )

Hi Tobias,

The Toolset Forms plugin creates a dynamic text domain depending on the ID of the form that you use.

For example, if the ID of the form is 1553, then the text domain will be:

toolset-forms-1553

Thanks.

#2695300

Hi Christopher

Ok . So it’s the same for the form made out of the shortcode I mention above?

BR
Tobias

#2695708

Hi again

Where can I find the ID for the [wpv-forgot-password-form]? I know where to find the ID of the custom forms but not the default ones.

BR

Tobias

#2695989

Hi

I manage to fix it with the WordPress filter hook “gettext” without using text domain.

Thank you anyway.