this is not a thematic question, but I managed to track down the answer. digging around in wordpress' includes folder, i first looked at default-widgets.php which defines the default WP_Widget_Tag_Cloud function.
in that function you'll see:
wp_tag_cloud( apply_filters('widget_tag_cloud_args', array('taxonomy' => $current_taxonomy) ) );
bam a filter! ok so what parameters does wp_tag_cloud accept?
http://codex.wordpress.org/Function_Reference/wp_tag_cloud
topic_count_text_callback looks promising
so we can filter in a new callback... except we don't know what that callback should look like. i did a search across all of the wp-includes folder to find the original function default_topic_count_text which turns out to be in the category-template.php file.
so i copied the whole thing into my functions.php and renamed it.
here is the full thing. tested and working for me.
//point tag cloud to use our callback
function tag_cloud_args($args) {
$my_args = array(
'topic_count_text_callback' => 'my_tag_text_callback',
);
return wp_parse_args( $my_args, $args );
}
add_filter('widget_tag_cloud_args', 'tag_cloud_args');
//here is the original callback, renamed and with topics changed to pictures
function my_tag_text_callback( $count ) {
return sprintf( _n('%s picture', '%s pictures', $count), number_format_i18n( $count ) );
}
you just inspired me to make my first contribution to the Codex. whoa! geek alert!