Conflict when translating
-
If you translate the name “Learndash” the control panel does not appear. Not sure the root of the issue but test using the snipped below.
function translate_text( $translated ) { // The first parameter is the original text, the second parameter is the changed text. $translated = str_ireplace( 'LearnDash', 'Something Else', $translated ); // Returns the translated text return $translated; } add_filter( 'gettext', 'translate_text' ); add_filter( 'ngettext', 'translate_text' );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Conflict when translating’ is closed to new replies.