*** empty log message ***
authorgc <gc>
Mon, 3 Mar 2008 23:01:30 +0000 (23:01 +0000)
committergc <gc>
Mon, 3 Mar 2008 23:01:30 +0000 (23:01 +0000)
bin/booh-backend

index 46a84b5657213fe4e0b89955cec7882b5f78e55b..230d23de375d4c1dc80f88da915dc33fbda0b5db 100755 (executable)
@@ -658,7 +658,9 @@ def find_translation_for_file(file, msg)
     if $multi_languages
         if file =~ /\.(\w\w)\.html$/
             bindtextdomain("booh", { :locale => "#{$1}.UTF-8" })
-            return _(msg)
+            retval = _(msg)
+            bindtextdomain("booh")
+            return retval
         else
             die "Internal error: cannot find multi language suffix of file '#{file}'"
         end
@@ -695,6 +697,7 @@ def save_html(html, base_filename)
             ios = File.open("#{base_filename}.#{language}.html", "w")
             ios.write(html.gsub(/@@(.*?)@@/) { _($1) })
             ios.close
+            bindtextdomain("booh")
         end
     else
         ios = File.open("#{base_filename}.html", "w")