{"action":"created","issue":{"url":"https://api.github.com/repos/infopark/reactor/issues/16","labels_url":"https://api.github.com/repos/infopark/reactor/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/infopark/reactor/issues/16/comments","events_url":"https://api.github.com/repos/infopark/reactor/issues/16/events","html_url":"https://github.com/infopark/reactor/issues/16","id":52243300,"number":16,"title":"Define equal values for different languages","user":{"login":"heikobornholdt","id":789788,"avatar_url":"https://avatars.githubusercontent.com/u/789788?v=3","gravatar_id":"","url":"https://api.github.com/users/heikobornholdt","html_url":"https://github.com/heikobornholdt","followers_url":"https://api.github.com/users/heikobornholdt/followers","following_url":"https://api.github.com/users/heikobornholdt/following{/other_user}","gists_url":"https://api.github.com/users/heikobornholdt/gists{/gist_id}","starred_url":"https://api.github.com/users/heikobornholdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heikobornholdt/subscriptions","organizations_url":"https://api.github.com/users/heikobornholdt/orgs","repos_url":"https://api.github.com/users/heikobornholdt/repos","events_url":"https://api.github.com/users/heikobornholdt/events{/privacy}","received_events_url":"https://api.github.com/users/heikobornholdt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-17T14:05:38Z","updated_at":"2015-01-14T18:21:23Z","closed_at":null,"body":"With the Tcl API I can create a new attribute an specify, for example that `title.de` and `title.en` have the equal value `Foo`.\r\nHow can I do this with a reactor migration?"},"comment":{"url":"https://api.github.com/repos/infopark/reactor/issues/comments/69964122","html_url":"https://github.com/infopark/reactor/issues/16#issuecomment-69964122","issue_url":"https://api.github.com/repos/infopark/reactor/issues/16","id":69964122,"user":{"login":"tomaszp-infopark","id":708543,"avatar_url":"https://avatars.githubusercontent.com/u/708543?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaszp-infopark","html_url":"https://github.com/tomaszp-infopark","followers_url":"https://api.github.com/users/tomaszp-infopark/followers","following_url":"https://api.github.com/users/tomaszp-infopark/following{/other_user}","gists_url":"https://api.github.com/users/tomaszp-infopark/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaszp-infopark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaszp-infopark/subscriptions","organizations_url":"https://api.github.com/users/tomaszp-infopark/orgs","repos_url":"https://api.github.com/users/tomaszp-infopark/repos","events_url":"https://api.github.com/users/tomaszp-infopark/events{/privacy}","received_events_url":"https://api.github.com/users/tomaszp-infopark/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T18:21:23Z","updated_at":"2015-01-14T18:21:23Z","body":"It is sadly a known issue, which would be extremely hard to resolve and even harder to create a backwards-compatible solution for.\r\n\r\nIn this case I would recommend the following:\r\n\r\n```ruby\r\ncreate_attribute :name => 'example', :type => 'string' do\r\n  set :title, {\"Kindergarten\"=>{:lang=>:en}, \"École Maternelle\"=>{:lang=>:fr}}\r\nend\r\nupdate_attribute :name => 'example' do\r\n  set :title, {\"Kindergarten\"=>{:lang=>:de}}\r\nend\r\n```\r\n\r\nwhich will result in:\r\n\r\n```\r\nroot@localhost:5782 test(CM)> attribute withName example description\r\n{\r\n    \"title.de\" = Kindergarten;\r\n    \"title.en\" = Kindergarten;\r\n    \"title.fr\" = \"École Maternelle\";\r\n    editField = {\r\n        length = 65;\r\n        type = textfield;\r\n    };\r\n    isSearchableInCM = 0;\r\n    isSearchableInTE = 0;\r\n    name = example3;\r\n    title = Kindergarten;\r\n    type = string;\r\n}\r\n```"}}