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}'"
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")