class method self.load_path

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

self.load_path()

Allow clients to register paths providing translation data sources. 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. So for the SimpleBackend clients may register translation files like this:

I18n.load_path << 'path/to/locale/en.yml'
Source
# File activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb, line 61
    def load_path
      @@load_path ||= []
    end

Defined in activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb line 61 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n

Type at least 2 characters to search.

↑↓ navigate · open · esc close