# I18n full\_message testing problem

**URL:** <https://www.ruby-forum.com/t/i18n-full-message-testing-problem/179094>\
**Category:** Rails\
**Created:** [November 17, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/i18n-full-message-testing-problem/179094 "2009-11-17T14:45:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@benol](https://www.ruby-forum.com/u/benol)\
**Post date:** [November 17, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/i18n-full-message-testing-problem/179094/1 "2009-11-17T14:45:20Z")

</div>

Hi.

Rails version 2.3.4

----------- Running a functional test: --------------

Exception: translation missing: pl, activerecord, errors, models, user,  
attributes, email, email\_short  
app/views/users/new.pl.html.erb:3

```
1: <h1>Rejestracja nowego uÅ¼ytkownika</h1>
2:
3: <%= error_messages_for :user %>
4: <% form_for :user, :url => users_path do |f| -%>
5:
6: <p><label for="login">Nazwa uÅ¼ytkownika

```

\<%=req\_field%\>

```
app/views/users/new.pl.html.erb:3
app/controllers/users_controller.rb:59:in `create'
/test/functional/users_controller_test.rb:91:in `create_user'
/test/functional/users_controller_test.rb:53:in

```

`test_should_require_email_on_signup' /test/functional/users_controller_test.rb:52:in`test\_should\_require\_email\_on\_signup’  
/usr/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' /usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in`each’  
/usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' /usr/lib/ruby/1.8/test/unit/testsuite.rb:34:in`run’  
/usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' /usr/lib/ruby/1.8/test/unit/testsuite.rb:33:in`run’  
/usr/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in  
`run_suite' /home/wojtek/workspace_galileo/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:117:in`start\_mediator’  
/home/wojtek/workspace\_galileo/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:62:in  
`start’  
/home/wojtek/workspace\_galileo/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:328

-------------- My model users.rb ------------------

validates\_length\_of :email, :within =\> 3…100, :too\_short =\>  
:email\_short, :too\_long =\> :email\_long

--------- My translations in pl.yml -------------  
The below works when i use the application the standard way through WWW.  
this does not get read only within test envifronment.

pl:  
(…)  
activerecord:  
(…)  
errors:  
(…)  
full\_messages:  
email\_short: “my message 1 {{count}}”  
email\_long: “my message 2 {{count}}”

(…)

---------------- QUESTION -------------------------

How do I avoid this testing error? I am not using this translation node  
" pl, activerecord, errors, models, user, attributes, email,  
email\_short" but a full\_mesage instead (cos I need a specific message,  
not a {attribute} {message} pair, it will not work in my language).

Any help appreciated.

---

<div class="post-metadata">

**Author:** ![benol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bb73d2/32.png) [@benol](https://www.ruby-forum.com/u/benol)\
**Post date:** [November 18, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/i18n-full-message-testing-problem/179094/2 "2009-11-18T19:15:12Z")

</div>

This is an issue with “translator” plugin.  
After uninstalling the plugin everything works fine.
