Sha256: 2d4b99e0734b50e0971a51e4ab7bf2296351c2af854d5223bf55b4b218021ee5

Contents?: true

Size: 921 Bytes

Versions: 8

Compression:

Stored size: 921 Bytes

Contents

# Use this setup block to configure all options available in i18nline.
I18nline.setup do |config|

  # A helper method available in your views so we can ask if there is a current user.
  config.current_user_method = "current_user"

  # A method your current_user has to respond to affirmatively to be able to
  # interact with i18nline administration features, like inline markers and
  # translation management views.
  # This method will be tried in the instance returned by the 'current_user' helper
  # specified above: current_user.can_translate?
  config.can_translate_method = "can_translate?"

  # A route available in your application to redirect the user to login
  # when he tries to access to protected views. This route should be
  # available on your 'rake routes'.
  config.login_route = "/login"

  # Missing translations will be generated for this locales.
  config.enabled_locales = %w(en es it pt)
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
i18nline-0.0.8.alpha test/dummy/config/initializers/i18nline.rb
i18nline-0.0.7.alpha test/dummy/config/initializers/i18nline.rb
i18nline-0.0.6.alpha test/dummy/config/initializers/i18nline.rb
i18nline-rails-0.0.5.alpha test/dummy/config/initializers/i18nline.rb
i18nline-0.0.5.alpha test/dummy/config/initializers/i18nline.rb
i18nline-0.0.4.alpha test/dummy/config/initializers/i18nline.rb
i18nline-0.0.3.alpha test/dummy/config/initializers/i18nline.rb
i18nline-0.0.2.alpha test/dummy/config/initializers/i18nline.rb