[PATCH conductor] BZ 804620 for master branch

Jirka Tomasek jtomasek at redhat.com
Wed Apr 4 10:42:25 UTC 2012


On 04/02/2012 06:41 PM, jzigmund at redhat.com wrote:
> This patchset contains bugfixes of BZ 804620, they aren't applied in master,
> because it had not any translated dictionaries before.
>
NACK. The bugs described in the BZ was existent just because the 
activerecord translations were not present for other langs than English. 
The translation in forms is not needed. model attributes get translated 
automatically by rails, taking the strings from 
config/locales/activerecord/somelang.yml

Same thing can be used also on other places than forms by caling eg.

Person <http://apidock.com/rails/Person>.human_attribute_name 
<http://apidock.com/rails/ActiveRecord/Base/human_attribute_name/class>("first_name") 
# => "First name"

( http://apidock.com/rails/ActiveRecord/Base/human_attribute_name/class)

using activerecord translations clears up views a great deal and also 
clears translation files.

Jirka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/aeolus-devel/attachments/20120404/cc43bdab/attachment.html>


More information about the aeolus-devel mailing list