X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/c8f0c882234a3fbd900c6bc10611224be6ea88d3..7412e221c316e23e3def1d3057e39a1584dfa1d6:/fixup-docbook-translated.rb
diff --git a/fixup-docbook-translated.rb b/fixup-docbook-translated.rb
index 775fc36..d933346 100644
--- a/fixup-docbook-translated.rb
+++ b/fixup-docbook-translated.rb
@@ -38,11 +38,11 @@ if 'es' == lang
# Some formatting issues we need to modify
attrib_text.gsub!(/Paul y Sarah/, 'Paul y Sarah')
- attrib_text.gsub!(/Merkley (CEO.*)/, 'Merkley
' % attrib_text) + title.after('%s
' % attrib_text) log 1, 'Moved: %s' % attrib_text end end @@ -50,6 +50,8 @@ end if legal = File.open('extra/%s/legal_info.xml' % lang, 'r').read rescue nil log 0, 'Replace legal info by the information assembled by our publisher' xml.search('colophon').first.inner_html = legal +else + log 0, ' -!- Not including the %s legal_info text' % lang end # Doing this the dirty, non-DocBooky way: I'm adding a large ' % colophon) +else + log 0, ' -!- Not including the %s colophon text' % lang end%s