# CRUD Localization using I18n

**URL:** <https://www.ruby-forum.com/t/crud-localization-using-i18n/167555>\
**Category:** Rails\
**Created:** [May 9, 2009, 9:47am UTC](https://www.ruby-forum.com/t/crud-localization-using-i18n/167555 "2009-05-09T09:47:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [May 9, 2009, 9:47am UTC](https://www.ruby-forum.com/t/crud-localization-using-i18n/167555/1 "2009-05-09T09:47:52Z")

</div>

Hi,  
I am using the I18n support for localization in a rather large  
application. My problem is that the same word is translated many times  
in the locales files in a not very CRUD way. For example many models  
has the attribute name that will be translated once for each model  
etc, when using the recommended active record keys.

I am also using keys for controllers, actions and views (as views  
controller action) that also results in many repetitions of the same  
translation.

How to handle that problem?  
A smart hierarchical systems of keys with a lookup function searching  
in higher levels when not found in lower ?  
What key systems are then used ? How do you then solve the problem  
with the same attribute ?

Note that in some situation the translations are context dependent, so  
the solution had to consider that possibility.

Any help would be appreciated.
