*** empty log message ***
[booh] / bin / booh-backend
index cb7b61968d30a26c9a9f1e986311ae4e3b09ccd7..0e2c5bb295a656e44566f69e70629f0c0a4a255f 100755 (executable)
@@ -662,7 +662,7 @@ def find_translation_for_file(file, msg)
         if file =~ /\.(\w\w)\.html$/
             bindtextdomain("booh", { :locale => "#{$1}.UTF-8" })
             retval = _(msg)
-            bindtextdomain("booh", { :locale => $default_locale })
+            Locale.set_current($default_locale)
             return retval
         else
             die "Internal error: cannot find multi language suffix of file '#{file}'"
@@ -700,7 +700,7 @@ def save_html(html, base_filename)
             ios = File.open("#{base_filename}.#{language}.html", "w")
             ios.write(html.gsub(/@@(.*?)@@/) { _($1) })
             ios.close
-            bindtextdomain("booh", { :locale => $default_locale })
+            Locale.set_current($default_locale)
         end
     else
         ios = File.open("#{base_filename}.html", "w")