Hello, I know this is pretty old post, but I have decided to answer it anyway as I found a very easy solution to this problem. Im using Catch Fire, but I suppose this fix will work on other themes too.
Copy content-gallery.php from your Catch Theme to Child-Theme and edit it as follows.
In content-gallery.php locate
`<p><em><?php printf( _n( ‘This gallery contains <a %1$s>%2$s photo</a>.’, ‘This gallery contains <a %1$s>%2$s photos</a>.’, $total_images, ‘catch-flames’ ),
‘href=”‘ . esc_url( get_permalink() ) . ‘” title=”‘ . sprintf( esc_attr__( ‘Permalink to %s’, ‘catch-flames’ ), the_title_attribute( ‘echo=0’ ) ) . ‘” rel=”bookmark”‘,
number_format_i18n( $total_images )
); ?></em></p>`
and delete
esc_url( get_permalink() ) . '
so it looks like this
<p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'catch-flames' ),
'href="' . " title="' . sprintf( esc_attr__( 'Permalink to %s', 'catch-flames' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
number_format_i18n( $total_images )
); ?></em></p>
PS: I really like those themes! Great job guys!