I am trying to: Use CRED to allow people to upload images and it was using the WordPress build in translated Buttons for upload, delete etc. Now they all appear in englisch rather than german
Hi, just a quick update to let you know this issue has been escalated to our developers. I will keep you posted here as I receive more information.
Any updates on this matter?
Hello, no I do not see that the updated translations have been added to the software yet. I'll keep you posted here as I receive more information from our developers.
Hi,
any updates with the latest Versions / Releases?
Best
Philipp
It looks like the translation files have not yet been updated in the latest releases. You can try using some custom code to change the button text. You can add this code to a new snippet in Toolset > Settings > Custom Code:
add_filter( 'gettext', 'change_cred_button_texts', 20, 3 );
function change_cred_button_texts( $translated_text, $text, $domain ) {
if ( !is_admin() ) {
if( $text == 'Clear value' && $domain == 'wp-cred' ) {
return 'Clear value in German';
}
if( $text == 'Upload or select image' && $domain == 'wp-cred' ) {
return 'Upload or select image in German';
}
}
return $translated_text;
}
My issue is resolved now. Thank you!