[Rails-core] Localization ideas/proposal

Hammed Malik
Wed, 09 Nov 2005 12:39:11 -0000

Hi Joshua,

Looking forward to what you come up with. A suggestion:

On 8 Nov 2005 19:16:49 -0000, jmharvey.19309139@bloglines.com <
jmharvey.19309139@bloglines.com> wrote:
>
> To translate certain fields of a model (the
> ''model level'' ActiveRecord translations):
>
> 1. Don''t include those fields
> in the model table.


I think it would be better to include the fields that require localization
in the original table. The advantage of this is that the values in these
fields could become the ''fallback'' values if a localization
for a value
doesn''t exist for the specified locale or if a locale isn''t
specified.

Another advantage would be that it''ll be possible to drop your plugin
into
an existing app and get the localization features without changing anything
(dropping columns).
Hammed
-------------- next part --------------
An HTML attachment was scrubbed...