This project is archived and is in readonly mode.
Array#to_sentence raises with missing translations
-
DHH
- Assigned user set to Sven Fuchs
-
abriening
Just wanted to clarify, this does not raise with the I8n.default_exception_handler but makes ugly logs and error messages.
irb(main):002:0> require 'activesupport.rb' => true irb(main):003:0> [1,2,3].to_sentence => "1, 2, and 3" irb(main):004:0> [1,2,3].to_sentence :locale => :de => "1translation missing: de, support, array, words_connector2translation missing: de, support, array, last_word_connector3"This was raising with my overridden exception_handler didn't realize this till after I posted this ticket.
Either way Rails' internal errors and logging shouldn't be localized.
-
abriening
- Tag changed from activesupport, array, duration, i18n, to_sentence to activesupport, array, duration, i18n, patch, to_sentence
Adding a new patch.
Includes changes from commit ff1afb, #1847.
Note this patch assumes that you are either using the old :connector and :skip_last_comma options or the new options but not both.
I also followed the guidelines this time :)
-
Repository
- State changed from new to resolved
(from [6de83562f91028629bd24447aa521bc72ef8277a]) Force all internal calls to Array#to_sentence to use English [#2010 state:resolved] http://github.com/rails/rails/co...
