Skip to content

Instantly share code, notes, and snippets.

@Benunc
Created March 7, 2018 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Benunc/fde931f248e42dbee62c58baabb3cfff to your computer and use it in GitHub Desktop.
Save Benunc/fde931f248e42dbee62c58baabb3cfff to your computer and use it in GitHub Desktop.
<?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