Answers.Body: <p>This is definitely a bug in Craft.  Doesn't just affect Matrix, but any relational field as well (Assets, Users, etc.)</p>
  
  <p>It's not an super-easy fix, but as a workaround, you can re-save the entry in the original locale (before making any edits in the new) and the content will get duplicated over.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-31T19:04:57.113Z
Answers.Text: Can I use [ResaveAllElementsTask](https://buildwithcraft.com/classreference/tasks/ResaveAllElementsTask) to help with this?
Answers.UserDisplayName: Marion Newlevant
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-11-01T02:16:30.463Z
Answers.Text: Nope... that calls the ResaveElements task which is where the issue is.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-03T18:56:20.107Z
Answers.Text: So, has this been fixed? Because what is happening now, is that I make one of the asset fields in the matrix translatable, and the next time the element is saved (long after the locale was added), the translatable asset is now only set in the one locale.
Answers.UserDisplayName: Marion Newlevant
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-03T19:13:11.030Z
Answers.Text: Did you re-save the entry in the original locale first?
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-03T19:18:41.737Z
Answers.Text: sequence of events: add locale, save multiple times in multiple locales, make asset in matrix field translatable, save in any locale (including the 'original') - and that asset is set only in the locale in which it was saved.
Answers.UserDisplayName: Marion Newlevant
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-03T19:22:11.490Z
Answers.Text: Unless I'm misunderstanding that seems like a different problem than the original post, no?
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-03T19:25:42.400Z
Answers.Text: Thought we might well be hitting the same bug, but since this isn't first save, the workaround isn't working. Has that been fixed?
Answers.UserDisplayName: Marion Newlevant
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-03T19:26:44.973Z
Answers.Text: The original issue hasn't been addressed, no. If you think this is a new bug, submit a ticket w/database and the steps to reproduce and we'll look into it.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-29T12:15:08.847Z
Answers.Text: I'm still experiencing the issue mentioned in the original question. Adding a new locale to an existing site doesn't copy over matrix content. On re-saving the original locale it does then copy over. Looks like the issue was fixed a while back though? https://github.com/craftcms/cms/issues/16
Answers.UserDisplayName: Luke Pearce
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-29T19:30:09.077Z
Answers.Text: @LukePearce Only fixed for Craft 3 and not likely to be backported.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-06T00:28:08.387Z
Answers.Text: @BradBell Thanks for the fix. All the content is copied over BUT the Matrix fields. Is there a way even that gets copied over?
Answers.UserDisplayName: user6999
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-29T22:24:04.243Z
Answers.LastActivityDate: 2014-10-29T22:24:04.243Z
Answers.UserDisplayName: Brad Bell
Body: <p>I am attempting to add a second locale to a site with existing content, much of that content in matrix fields.</p>
  
  <p>Following the documentation for <a href="http://buildwithcraft.com/docs/localization-guide" rel="nofollow">Setting Up a Localized Site</a>, I have defined the locale, enabled all sections for this locale (and the original one), set up the configuration and the index.php files. What I have not yet done is mark any field as translatable.</p>
  
  <p>What I was expecting is that entries in the new locale would be initialized with content from the original locale. And this has happened, <em>except</em> that the matrix fields have not been duplicated, so the entries in the new locale do not have any of that matrix content.</p>
  
  <p>This is very similar to <a href="https://craftcms.stackexchange.com/questions/1709/how-do-i-get-matrix-elements-to-copy-their-content-across-language-locales">How do I get Matrix elements to copy their content across language Locales?</a>. The answer there is "don't mark matrix fields as translatable", which I haven't done, so not sure why this isn't working for me.</p>
  
  <p>Any clues?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-23T23:13:53.840Z
Comments.Text: Maybe it helps if you set one field of your entry type as translatable (not the Matrix), but this is just a guess.
Comments.UserDisplayName: carlcs
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-24T06:22:01.297Z
Comments.Text: @carlcs No, that didn't help: neither setting a different field in the entry type, or a sub-field in the matrix made any difference. The task to copy content across locales seems to run when you add a new locale, and when you save a section after enabling the new locale in that section. My `craft_content` table is multi-lingual, but the `craft_matrixcontent_xxx` ones are frustratingly not.
Comments.UserDisplayName: Marion Newlevant
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-24T06:40:09.387Z
Comments.Text: Marion, you're probably better off solving this directly with P&T. This other Q/A you're referring to got them to find a temporary workaround. Only that it doesn't work for you. Hopefully they can help you out or tell you that they fix the bug.
Comments.UserDisplayName: carlcs
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-29T11:04:16.400Z
Comments.Text: @MarionNewlevant This sounds like a bug. Can you please send us a ticket from your dashboard, so we can look into it?
Comments.UserDisplayName: Brandon Kelly
Tags: <localization>
Title: Added Locale, matrix content not copied
ThreadText: # Added Locale, matrix content not copied
  
  (Asked by: username_0 on 2014-10-23)
  
  I am attempting to add a second locale to a site with existing content, much of that content in matrix fields.
  
  Following the documentation for [Setting Up a Localized Site](http://buildwithcraft.com/docs/localization-guide), I have defined the locale, enabled all sections for this locale (and the original one), set up the configuration and the index.php files. What I have not yet done is mark any field as translatable.
  
  What I was expecting is that entries in the new locale would be initialized with content from the original locale. And this has happened, *except* that the matrix fields have not been duplicated, so the entries in the new locale do not have any of that matrix content.
  
  This is very similar to [How do I get Matrix elements to copy their content across language Locales?](https://craftcms.stackexchange.com/questions/1709/how-do-i-get-matrix-elements-to-copy-their-content-across-language-locales). The answer there is "don't mark matrix fields as translatable", which I haven't done, so not sure why this isn't working for me.
  
  Any clues?
  
  **Tags:** localization
  
  > **Comments:**
  > **username_1**: Maybe it helps if you set one field of your entry type as translatable (not the Matrix), but this is just a guess.  
  > **username_0**: @username_1 No, that didn't help: neither setting a different field in the entry type, or a sub-field in the matrix made any difference. The task to copy content across locales seems to run when you add a new locale, and when you save a section after enabling the new locale in that section. My `craft_content` table is multi-lingual, but the `craft_matrixcontent_xxx` ones are frustratingly not.  
  > **username_1**: username_0, you're probably better off solving this directly with P&T. This other Q/A you're referring to got them to find a temporary workaround. Only that it doesn't work for you. Hopefully they can help you out or tell you that they fix the bug.  
  > **username_2**: @username_0 This sounds like a bug. Can you please send us a ticket from your dashboard, so we can look into it?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2014-10-29. Score: 2 | Accepted answer
  
  This is definitely a bug in Craft. Doesn't just affect Matrix, but any relational field as well (Assets, Users, etc.)
  
  It's not an super-easy fix, but as a workaround, you can re-save the entry in the original locale (before making any edits in the new) and the content will get duplicated over.
  
  > **Comments:**
  > **username_0**: Can I use [ResaveAllElementsTask](https://buildwithcraft.com/classreference/tasks/ResaveAllElementsTask) to help with this?  
  > **username_3**: Nope... that calls the ResaveElements task which is where the issue is.  
  > **username_0**: So, has this been fixed? Because what is happening now, is that I make one of the asset fields in the matrix translatable, and the next time the element is saved (long after the locale was added), the translatable asset is now only set in the one locale.  
  > **username_3**: Did you re-save the entry in the original locale first?  
  > **username_0**: sequence of events: add locale, save multiple times in multiple locales, make asset in matrix field translatable, save in any locale (including the 'original') - and that asset is set only in the locale in which it was saved.  
  > **username_3**: Unless I'm misunderstanding that seems like a different problem than the original post, no?  
  > **username_0**: Thought we might well be hitting the same bug, but since this isn't first save, the workaround isn't working. Has that been fixed?  
  > **username_3**: The original issue hasn't been addressed, no. If you think this is a new bug, submit a ticket w/database and the steps to reproduce and we'll look into it.  
  > **username_4**: I'm still experiencing the issue mentioned in the original question. Adding a new locale to an existing site doesn't copy over matrix content. On re-saving the original locale it does then copy over. Looks like the issue was fixed a while back though? https://github.com/craftcms/cms/issues/16  
  > **username_3**: @username_4 Only fixed for Craft 3 and not likely to be backported.  
  > **username_5**: @username_3 Thanks for the fix. All the content is copied over BUT the Matrix fields. Is there a way even that gets copied over?  
  
  ---
  
  