A front-end form entry gives error "Permission denied". I tried to translate this with php function (below) but none of the $domain I have tried will change the text to Finnish. Can you give me a hint as to which $domain it should be, which is giving this error
---
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Permission denied' :
$translated_text = __( 'Ei pääsyä ilman kirjautumista!', 'cred-frontend-editor' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 20, 3 );
---
Interestingly that did not help. In my experience this method works when the string is correct. Is there any chance the string "Permission denied" is written in some other way in the wp-cred domain?
Thanks,
Saku