how to unlocalize theme/plugin?

The main problem is that you removed the sprintf. Replace the echo with sprintf and remove the (). Should be like this ‘logged_in_as’ => ‘<p class=”logged-in-as”>’. sprintf( ‘Logged in as <a href=”%1$s”>%2$s</a>. <a href=”%3$s” title=”Log out of this account”>Log out?</a>’, admin_url( ‘profile.php’ ), $user_identity, wp_logout_url( apply_filters( ‘the_permalink’, get_permalink( ) ) ) ). ‘</p>’, Be careful! … Read more

Include external po file for 3th party plugin to theme

If discussed plugin already uses load_plugin_textdomain() function to load its translations, usually it is enough to place <plugin_name>-<locale_code>.mo file to the wp-content/languages/plugins directory. If it doesn’t (or you can’t do it for some reason), you can use init hook to load its translation via your functions.php. Here is an example from one of my child … Read more