Skip Navigation

[Resolved] User form "User Saved"

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 2 voices.

Last updated by Minesh 8 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2687603

2 issues:

1. Again I fight with these translations/texts of Toolset user forms. Now everything else is translated ok, but for some reason after saving the user edit form the text "User Saved" can't be translated or modified. At least I don't know where it can be changed.

I use this snippet:

add_filter('gettext', 'mycustom_func', 10, 3);
function mycustom_func($translated_text, $text, $domain){

if($text == 'Username or Email'){
$translated_text = 'This works fine';
}
elseif( strpos( $text, 'User Saved') !== false ){
$translated_text = 'This doesn't work';
}
return $translated_text;

}

2. User forms also behave unstable. When I change setting, the whole form (wizard) is resetted to default. Everytime I have to re-modify the fields. I could use the code, not wizard, but it's there and it should work, so...

#2687616

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

As per our support policy, we entertain only one question per ticket. I will work on the translation text issue with this ticket.

Can you please share where you added your user form as well as I need access details to check how you configure the form. In addition to that I would like to know where you added the code to translate the text?

*** 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.

#2687632

Minesh
Supporter

Languages: English (English )

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

In what language you want to translate the "User Saved"? Can you please share translated text with me?

#2687663

As can be seen in the snippet in use, you can use for example "Tiedot tallennettu". This is in the snippet:

...
elseif( strpos( $text, 'User Saved') !== false ){
$translated_text = 'Tiedot tallennettu';
}
...

#2687671

Minesh
Supporter

Languages: English (English )

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

On your edit form page:
- hidden link

Try to navigate to "Messages" section and what if you try to replace value of "User saved Message" with your desired value and save the form. I hope this will fix the issue.

#2687682

Ah yes, of course! How did I miss that! Perhaps because it's confusing to have the translations in different places... Anyway thank you very much!