# I18n controller-view

**URL:** <https://www.ruby-forum.com/t/i18n-controller-view/182298>\
**Category:** Rails I18n\
**Created:** [January 26, 2010, 9:45am UTC](https://www.ruby-forum.com/t/i18n-controller-view/182298 "2010-01-26T09:45:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![furoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/8e8cbc/32.png) [@furoh](https://www.ruby-forum.com/u/furoh)\
**Post date:** [January 26, 2010, 9:45am UTC](https://www.ruby-forum.com/t/i18n-controller-view/182298/1 "2010-01-26T09:45:30Z")

</div>

hello, could you tell me why this doesn’t work?

controller:

flash[:success] = t(‘flash.added’, :item =\> t(‘dictionary.challenge’))

en.yml

dictionary:  
challenge: Challenge

flash:  
added: {{item}} has been successfully created.

---

<div class="post-metadata">

**Author:** ![furoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/8e8cbc/32.png) [@furoh](https://www.ruby-forum.com/u/furoh)\
**Post date:** [January 26, 2010, 10:20am UTC](https://www.ruby-forum.com/t/i18n-controller-view/182298/2 "2010-01-26T10:20:29Z")

</div>

On Tue, Jan 26, 2010 at 09:45, Kot M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> hello, could you tell me why this doesn’t work?

“Doesn’t work” is too unspecific. State your Rails version, if you use  
the built-in i18n or the gem (what version?) and how it doesn’t work,  
specifically. What do you see, what did you expect to see instead? Any  
exception backtraces.

> flash:  
> added: {{item}} has been successfully created.

One thought off the top of my head is that perhaps you need to quote  
the added value when it includes curly braces, but that’s a wild  
guess.

So try

flash:  
added: “{{item}} has been successfully created.”
