On 04/02/2012 06:41 PM, jzigmund(a)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"
(
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