Hi,
Please use this code after replacing the text
function sf_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'STRING 1' :
$translated_text = __( 'DANISH TEXT 1', $domain );
break;
}
case 'STRING 2' :
$translated_text = __( 'DANISH TEXT 2', $domain );
break;
}
case 'STRING 3' :
$translated_text = __( 'DANISH TEXT 3', $domain );
break;
}
case 'STRING 4' :
$translated_text = __( 'DANISH TEXT 4', $domain );
break;
}
case 'STRING 5' :
$translated_text = __( 'DANISH TEXT 5', $domain );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'sf_text_strings', 20, 3 );
Thanks
Mohammad