Age | Commit message (Collapse) | Author |
|
|
|
method_defined? doesn't search in private methods, and :bound_targets is
private, so change it to respond_to?(method, include_private=true)
|
|
When LANGUAGE env var is set to empty value, it breaks
gettext in ruby, so we unset it if it's empty.
|
|
Since in 1.9 methods arrays have symbols instead of strings, fix it by
changing into respond_to? and method_defined?
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
This reverts commit 33c336af346dc08b4f4f4951dd6eae7150cef481.
|
|
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
|
|
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.
|
|
|
|
1.8.0-1.10.0
|
|
|
|
This ensures that locale files are found regardless of rubygems being loaded or not
|
|
loading the module
|
|
|
|
|
|
loaded
and fallback is done
- updated comments in load_gettext.rb
- moved requires in relevant code sections
|
|
added Nn_ dummy replacement
|
|
|
|
|
|
modified a few files to allow translated messages
created gettext template file
initialized gettext files for Japanese and Simplified Chinese
|