// Gettext to Change Text in WordPress
function filter_gettext($translation, $text, $domain) {
$translations = &get_translations_for_domain( $domain );
if ( $text == 'Media' ): return $translations->translate( 'Resources' ); endif;
if ( $text == 'Media Library' ): return $translations->translate( 'Resource Library' ); endif;
if ( $text == 'Upload New Media' ): return $translations->translate( 'Add a New Resource' ); endif;
return $translation;
}
add_filter('gettext', 'filter_gettext', 10, 3);
// Change the Media Icon
function replace_media_library_icon() {
echo '<style type="text/css">
#icon-upload { background: url("images/icons32.png?ver=20100531") no-repeat -312px -5px; }
#adminmenu .menu-icon-media div.wp-menu-image { background: url("images/menu.png?ver=20100531") no-repeat -151px -33px; }
#adminmenu .menu-icon-media:hover div.wp-menu-image, #adminmenu .menu-icon-media.wp-has-current-submenu div.wp-menu-image { background: url("images/menu.png?ver=20100531") no-repeat -151px -1px; }
</style>';
}
add_action('admin_print_styles', 'replace_media_library_icon', 50, 3);
|