functions.php – translation undo
-
Hello all,
I added a custom code in functions.php and I messed it out..
I translated some words from english to greek but I when I switch the language in English (TranslatePresse) I see the works in greek too. So I am trying to find a way to undo these custom functions that I added.
Do you have any idea ?Thank you
function multi_change_translate_text( $translated ) { $text = array( '?ρε? καταστηματο?' => 'Store Hours', 'ρυθμ?σει? ?ρε? καταστηματο?' => 'Store Hours Settings', 'Enable Store Hours' => 'ss', 'Enable Store Hours' => 'ss', ); $translated = str_ireplace( array_keys( $text ), $text, $translated ); return $translated; } add_filter( 'gettext', 'multi_change_translate_text', 20 );
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘functions.php – translation undo’ is closed to new replies.