Top "Rails-i18n" questions

Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff.

Rails I18n validation deprecation warning

I just updated to rails 4.0.2 and I'm getting this warning: [deprecated] I18n.enforce_available_locales will default to true …

ruby-on-rails ruby ruby-on-rails-4 deprecated rails-i18n
i18n Pluralization

I want to be able to translate pluralized strings in i18n in rails. A string can be : You have 2 …

ruby-on-rails internationalization rails-i18n pluralize plural
Rails: How to make Date strftime aware of the default locale?

I have my default locale set in the environment.rb as de (German). I also see all the error messages …

ruby-on-rails ruby localization rails-i18n strftime
How to use the I18n fallback features in Rails 3

I am getting an "translation missing" error message from Rails 3: activerecord: notices: messages: success: create: "Something was created" models: user: …

ruby-on-rails ruby-on-rails-3 internationalization rails-i18n fallback
Rails I18n, check if translation exists?

Working on a rails 3 app where I want to check if a translation exists before outputting it, and if it …

ruby-on-rails internationalization rails-i18n
How to retrieve all translations from yml files in Rails I18n

I'm guessing that rails stores all the parsed translations yml files in a sort of array/hash. Is there a …

ruby-on-rails internationalization yaml rails-i18n
Access translation file (i18n) from inside rails model

What I have in my model is: def body_color_enum [ ['Aqua', '#009c9c'], ['Grey', '#6d6e71'], […

ruby-on-rails ruby localization translation rails-i18n
Rails: Remove missing translation errors

I am using internationalization for english (en) and french (fr), I have used en.yml for limited use and most …

ruby-on-rails ruby-on-rails-3 internationalization rails-i18n
How to pass arguments in I18n.translate

I18n.translate can translate error.messages like this: I18n.translate('error.messages.taken') -> has already been …

ruby-on-rails rails-i18n
How to use I18n from controller in Rails

I have a PetsController in which a flash message is setted. Something like this: class PetsController ... def treat_dog #do …

ruby-on-rails controller internationalization rails-i18n