Skip Navigation

[Resolved] Missing texts for translation in CRED forms

This support ticket is created 7 years, 4 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 – 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)

Author
Posts
#548753
add-line-cred.png
pictures-translation-cred.png
new-category-cancel-cred.png

Hi,

in CRED forms there are missing texts for translation in .po file:

1) If you add another image, there is Delete **** repetition and also Add new text.
2) If you add new category there is Cancel with red cross which also cannot be translated.
3) Same as point 1) but new text line Add new is connected with name of the line.

If you look to wp-cred.po file there are similar texts, but they dont´t belong to them.

You needed list of translation as I have read in topic https://toolset.com/forums/topic/do-i-have-to-translate-with-wpml/

#548799
delete-image-cred.png

I have found one missing text to be translated:
4) If you upload image, you can delete it - so there is text delete

#549325

Dear Dave,

Thanks for the feedback, it is already in our to-do list, our developers are working on it, currently I suggest you try the solution in another thread:
https://toolset.com/forums/topic/i-want-to-change-the-delete-button-text-for-a-repeating-image-field/#post-362316

#550364

Hi,

thanks for the link, but there is missing the delete text as I wrote in previous post. Do you have a filter for it?

#550594

I assume we are talking about the title "delete" of your post:
https://toolset.com/forums/topic/missing-texts-for-translation-in-cred-forms/#post-548799
You can translate it with wordpress built-in filter hook "gettext", for example:

add_filter('gettext', 'my_delete_func', 10, 3);
function my_delete_func($translated_text, $text, $domain){
	if($text == 'delete' && $domain == 'wp-cred'){
		$translated_text = "my delete text";
	}
	return $translated_text;
}

More help:
https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext

#550708

Thanks, it works great. But I hope the developers will update it. It seems by the other posts that this problem lasts for more than 1.5 year.