end
end
+log 0, 'Including the Spanish version introduction'
+if intro = File.open('extra/es/intro_es.xml', 'r').read rescue nil
+ xml.search('preface').last.after( intro )
+else
+ log 0, ' -!- Introduction text not found or empty'
+end
+
log 0, 'replace images with translated versions'
xml.search('imagedata').each do |img|
# Included images are in the 'Pictures' directory. Translated images