instance method load_translations

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

load_translations(*filenames)

Accepts a list of paths to translation files. Loads translations from plain Ruby (*.rb) or YAML files (*.yml). See #load_rb and #load_yml for details.

Parameters

filenames rest
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb, line 19
      def load_translations(*filenames)
        filenames = I18n.load_path.flatten if filenames.empty?
        filenames.each { |filename| load_file(filename) }
      end

Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb line 19 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n::Backend::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close