svenfuchs/globalize3 — Issue #79: Why is original table's column set to current locale's translation?
Author: ncri
Created: 2011-10-27 06:19:13+00:00
State: open

When I set a translated column of a model, its original column is also set.
This seems not neccessary to me. Is there any reason why it is done?

Example:

```
ruby-1.9.2-p290 > I18n.locale = :'de-CH'
=> :"de-CH"

ruby-1.9.2-p290 > j = Job.find 1138
=> # j.name = 'Test de-ch'
=> "Test de-ch"

ruby-1.9.2-p290 > j.save!
(0.2ms) BEGIN
(0.6ms) UPDATE "jobs" SET "name" = 'Test de-ch', "updated_at" = '2011-10-27 06:14:25.613120' WHERE "jobs"."id" = 1138
Job::Translation Load (0.5ms) SELECT "job_translations".* FROM "job_translations" WHERE "job_translations"."job_id" = 1138 AND "job_translations"."locale" = 'de-CH' LIMIT 1
(0.7ms) UPDATE "job_translations" SET "name" = 'Test de-ch', "updated_at" = '2011-10-27 06:14:25.621191' WHERE "job_translations"."id" = 137
Job::Translation Load (0.4ms) SELECT "job_translations".* FROM "job_translations" WHERE "job_translations"."id" = $1 LIMIT 1 [["id", 1625]]
Job::Translation Load (0.2ms) SELECT "job_translations".* FROM "job_translations" WHERE "job_translations"."id" = $1 LIMIT 1 [["id", 1624]]
Job::Translation Load (0.2ms) SELECT "job_translations".* FROM "job_translations" WHERE "job_translations"."id" = $1 LIMIT 1 [["id", 137]]
(1.1ms) COMMIT
=> true

```