*** empty log message ***
authorgc <gc>
Sun, 2 Mar 2008 22:39:55 +0000 (22:39 +0000)
committergc <gc>
Sun, 2 Mar 2008 22:39:55 +0000 (22:39 +0000)
bin/booh-backend

index 6a1d3507042f558d081a657a24cbe3191dbfe7d1..eafb94df2f94c3b306b8c3d95b6d8fbd128daa9f 100755 (executable)
@@ -690,7 +690,7 @@ def save_html(html, base_filename)
         html = html.join("\n")
     end
     if $multi_languages
         html = html.join("\n")
     end
     if $multi_languages
-        for language in ($multi_languages[0] + $multi_languages[1]).uniq
+        for language in ($multi_languages[0] + [ $multi_languages[1] ]).uniq
             bindtextdomain("booh", { :locale => "#{language}.UTF-8" })
             ios = File.open("#{base_filename}.#{language}.html", "w")
             ios.write(html.gsub(/@@(.*?)@@/) { _($1) })
             bindtextdomain("booh", { :locale => "#{language}.UTF-8" })
             ios = File.open("#{base_filename}.#{language}.html", "w")
             ios.write(html.gsub(/@@(.*?)@@/) { _($1) })
@@ -1161,6 +1161,7 @@ def walk_source_dir
                             i.gsub!(/~~multiplepagesstuff~~/, mstuff.gsub('%nojs', '-nojs'))
                         end
                         substitute_html_sizes(i, sizeobj, 'thumbnails', "-nojs-#{pagecount}")
                             i.gsub!(/~~multiplepagesstuff~~/, mstuff.gsub('%nojs', '-nojs'))
                         end
                         substitute_html_sizes(i, sizeobj, 'thumbnails', "-nojs-#{pagecount}")
+                        substitute_pathtobase(i, xmldir)
                     end
                     save_html(final_html_nojs, "#{dest_dir}/thumbnails-#{size2js(sizeobj['name'])}-nojs-#{pagecount}")
                     pagecount += 1
                     end
                     save_html(final_html_nojs, "#{dest_dir}/thumbnails-#{size2js(sizeobj['name'])}-nojs-#{pagecount}")
                     pagecount += 1