No translation available – are you serious?
-
Hi,
thanks for the awesome plugin. With more than 1000k downloads, it is clearly a winner. How much was I surprised to learn that it is not gettext-ready. I don’t talk about bundeled translation files. But why is one of the most popular (and premium, btw) plugins not gettext-ready? I don’t care about the dashboard (my customers do), but why is the only frontend text string not translatable? I don’t get it, sorry.
Well, this is WordPress. So, we can easily find a solution. Just put something like this in your themes’s functions.php:
function wordfence_fix( $translated_text ) { if ( $translated_text == '<strong>ERROR</strong>: The username or password you entered is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?' ) { $translated_text = 'New Translation'; } return $translated_text; } add_filter( 'gettext', 'wordfence_fix', 20 );
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘No translation available – are you serious?’ is closed to new replies.