How to change default language name
-
I’m trying to change “English” to “english” using such code:
add_filter( 'trp_beautify_language_name', 'trpc_change_language_name', 10, 3 ); function trpc_change_language_name ($name, $code, $english_or_native ){ if ( $code == 'en_US' ){ // replace with the code of the language to change return 'english'; // replace with your desired language name } return $name; }
Instead I get:
The snippet has been deactivated due to an error on line 9: Cannot redeclare function trpc_change_language_name.
How to do this smoothly?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to change default language name’ is closed to new replies.