diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-08-13 11:42:02 +0200 |
---|---|---|
committer | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-08-13 11:42:02 +0200 |
commit | 78677cf6af339a6e23a93a45c905d6d1545ccc33 (patch) | |
tree | 1bf3c9f5b1292d9e2f14505c2148b2164566fc48 /activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb | |
parent | aae9f916590b8ce2c84a9e404584de95b1705766 (diff) | |
download | rails-78677cf6af339a6e23a93a45c905d6d1545ccc33.tar.gz rails-78677cf6af339a6e23a93a45c905d6d1545ccc33.tar.bz2 rails-78677cf6af339a6e23a93a45c905d6d1545ccc33.zip |
update activesupport/vendor i18n gem
Diffstat (limited to 'activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb')
-rwxr-xr-x | activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb index 86005553c0..5c6c4eb783 100755 --- a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb +++ b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb @@ -56,8 +56,14 @@ module I18n backend.populate(&block) end - def load_translations(filename) - backend.load_translations filename + # Allows client libraries to pass arguments that specify a source for + # translation data to be loaded by the backend. The backend defines + # acceptable sources. + # E.g. the provided SimpleBackend accepts a list of paths to translation + # files which are either named *.rb and contain plain Ruby Hashes or are + # named *.yml and contain YAML data.) + def load_translations(*args) + backend.load_translations *args end # Stores translations for the given locale in the backend. |