add_default_locale_path(File.join(Irc::Bot::Config.datadir, "../locale/%{locale}/LC_MESSAGES/%{name}.mo"))
+ GetText.cached = false
bindtextdomain 'rbot'
module GetText
log "gettext loaded"
rescue LoadError, GetTextVersionError
- warn "failed to load ruby-gettext package: #{$!}; translations are disabled"
+ warning "failed to load ruby-gettext package: #{$!}; translations are disabled"
# undefine GetText, in case it got defined because the error was caused by a
# wrong version
args[0]
end
+ def bindtextdomain_to(*args)
+ end
+
# the following extension to String#% is from ruby-gettext's string.rb file.
# it needs to be included in the fallback since the source already use this form