Skip Navigation

[Waiting for user feedback] No translation at some fields: This field is required

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 4 replies, has 1 voice.

Last updated by Minesh 1 week, 3 days ago.

Assisted by: Minesh.

Author
Posts
#2810042
required-field.jpg

I am using a Post Form to add products and it works fine, except for a missing translation for "This field is required". At some form fields the German translation from the messages settings is visible. At others it simply isn´t; there´s still the English message.

#2810057

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

That is strange.

What if you try to add gettext hook and check if that help you to resolve your issue.

Here is a related ticket that might help you:
- https://toolset.com/forums/topic/cant-translate-labels-in-english/page/2/

#2810392

Hi,

thanks for getting back.

I am not sure, how to use the gettext hook. I had a look at the related ticket and added the following to the functions.php with a snippets plugin. But that did not help:

---

add_filter( 'gettext', function( $translated_text, $text, $domain ) {

if($text == 'This field is required' && $domain == 'wp-cred'){
$translated_text = "Dies ist ein Pflichtfeld.";
}
return $translated_text;
}, 10, 3 );

---

Regards,
Jens

#2810393
required-field-code.jpg

And here´s the code for the error message, if that´s helpful.

#2810398

Minesh
Supporter

Languages: English (English )

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

Can you please share problem URL and admin access details and let me check what's going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.