Created
March 7, 2018 17:12
-
-
Save Benunc/fde931f248e42dbee62c58baabb3cfff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_give_german_text_switcher( $translations, $text, $domain ) { | |
if ( $domain == 'give' && $text == '<span class="income">%1$s</span> of <span class="goal-text">%2$s</span> raised' ) { | |
$translations = __( '<span class="income">%1$s</span> von <span class="goal-text">%2$s</span> erreicht', 'give' ); | |
} | |
return $translations; | |
} | |
add_filter( 'gettext', 'my_give_german_text_switcher', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment