summaryrefslogtreecommitdiff
path: root/lib/rbot/load-gettext.rb
AgeCommit message (Collapse)Author
2012-07-14Update gettext supportGiuseppe Bilotta
Somewhere along the line between 2.0.0 and 2.2.1 gettext switched from locale to lang for the hash key name. Support both.
2012-03-04RubyGems obsoleted *and* b0rked all_load_path, try to work around itGiuseppe Bilotta
2011-01-12Limit Comparable inclusion to ArrayGiuseppe Bilotta
Including Comparable at the top level causes infinite recursions in Ruby 1.9.2
2010-07-05load-gettext: cope with ruby gettext 2.1.0Giuseppe Bilotta
2009-09-06ruby 1.9: fix method_defined?franz
method_defined? doesn't search in private methods, and :bound_targets is private, so change it to respond_to?(method, include_private=true)
2009-08-26gettext: fix empty LANGUAGE env varfranz
When LANGUAGE env var is set to empty value, it breaks gettext in ruby, so we unset it if it's empty.
2009-08-26ruby 1.9: fix *methods.include?franz
Since in 1.9 methods arrays have symbols instead of strings, fix it by changing into respond_to? and method_defined?
2009-06-06* (gettext) relaxed check for bound_target() existancedmitry kim
2009-04-20gettext: support version 2Giuseppe Bilotta
GetText version 2 has some significant difference from earlier version. * different syntax to set the default locale path * different syntax to set non-cached mode * different way to handle bound targets Most of the changes are relative to significant functionality split between the GetText submodules (LocalePath, TextDomain etc), so most of the changes are just a matter of moving the defines where appropriate. The bound_targets patch needed to cope with anonymous modules is not needed with gettext >= 2.0.0
2008-07-11do not crash when GetText.cached= is not definedYaohan Chen
2008-06-23Set GetText.cached = false so that mo files are reloaded when setting localeYaohan Chen
2008-06-17* load-gettext: warn() -> warning()dmitry kim
2008-06-07recommit 33c336af346dc08b4f4f4951dd6eae7150cef481 po file per pluginYaohan Chen
each plugin uses its own po file, no change required for plugin source, Rakefile, plugin loader and gettext loader are modified to adjust to the change
2008-06-06Revert "each plugin uses its own po file"Yaohan Chen
This reverts commit 33c336af346dc08b4f4f4951dd6eae7150cef481.
2008-06-05each plugin uses its own po fileYaohan Chen
no modification in plugin source is needed, plugin loader is modified to automatically bind to the plugin's text domain updatepo task is modified to maintain per-plugin po file po files are updated and cleaned
2008-04-16gettext: support anonymous modules (and thus plugins) with newer gettextGiuseppe Bilotta
While older ruby-gettext raised when trying to bind for anonymous modules (such as the ones that wrap rbot plugins), newer versions just provide an empty array. This makes the previous fix (which used rescue) ineffective. Solve by rescuing with [] (so that older gettext behaves like the new one) and then adding Object if the list is indeed empty.
2008-03-11gettext: undefine GetText if we failed to load properlyGiuseppe Bilotta
2008-03-11load-gettext.rb: accept ruby-gettext version of 1.8.0 and above, not just ↵Yaohan Chen
1.8.0-1.10.0
2007-09-12namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*Giuseppe Bilotta
2007-08-27GetText: add Config.datadir-based locale search path.Giuseppe Bilotta
This ensures that locale files are found regardless of rubygems being loaded or not
2007-08-26Output gettext textdomain information when setting the language, not when ↵Giuseppe Bilotta
loading the module
2007-08-26Cleaner gettext debug information reportingGiuseppe Bilotta
2007-07-23* display installed version when gettext version is unsupportedYaohan Chen
2007-07-18- added version check for ruby/gettext, too low or high versions will not be ↵Yaohan Chen
loaded and fallback is done - updated comments in load_gettext.rb - moved requires in relevant code sections
2007-07-14added a warning message if retrieving gettext info failsYaohan Chen
added Nn_ dummy replacement
2007-07-12* (gettext) make us somewhat less dependent on gettext internalsDmitry Kim
2007-07-12* (gettext) work around failing current_textdomain_info()Dmitry Kim
2007-07-09integrated ruby-gettextYaohan Chen
modified a few files to allow translated messages created gettext template file initialized gettext files for Japanese and Simplified Chinese