This project is archived and is in readonly mode.

#3415 ✓resolved
Lukas Spee

I18n: interpolation does not conform to documented behaviour

Reported by Lukas Spee | October 22nd, 2009 @ 07:03 PM

The behaviour of I18n::Backend::Simple#interpolate is documented as:

interpolate "file {{file}} opened by \{{user}}", :file => 'test.txt', :user => 'Mr. X' # => "file test.txt opened by {{user}}"

its actual behaviour, however, is:

interpolate "file {{file}} opened by \{{user}}", :file => 'test.txt', :user => 'Mr. X' # => "file test.txt opened by user"

(so it removes the curly braces)

This patch makes the method work conform its documentation).

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Tags

Pages