i.gsub!(/~~title~~/, xmldir.attributes['thumbnails-caption'] || utf8(File.basename(dir)))
i.gsub!(/~~thumbnails~~/, '<a href="thumbnails-' + sizeobj['name'] + '.html" id="thumbnails">' + utf8(_('return to thumbnails')) + '</a>')
i.gsub!(/~~theme~~/, $theme)
- i.gsub!(/~~current_size~~/, sizeobj['name'])
+ i.gsub!(/~~current_size~~/, size2js(sizeobj['name']))
substitute_html_sizes(i, sizeobj, 'image')
end
ios = File.open("#{dest_dir}/image-#{size2js(sizeobj['name'])}.html", "w")