<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>

CC BY-SA 3.0
2014-10-31T19:04:57.113Z
Can I use [ResaveAllElementsTask](https://buildwithcraft.com/classreference/tasks/ResaveAllElementsTask) to help with this?
Marion Newlevant
CC BY-SA 3.0
2014-11-01T02:16:30.463Z
Nope... that calls the ResaveElements task which is where the issue is.
Brad Bell
CC BY-SA 3.0
2015-03-03T18:56:20.107Z
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.
Marion Newlevant
CC BY-SA 3.0
2015-03-03T19:13:11.030Z
Did you re-save the entry in the original locale first?
Brad Bell
CC BY-SA 3.0
2015-03-03T19:18:41.737Z
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.
Marion Newlevant
CC BY-SA 3.0
2015-03-03T19:22:11.490Z
Unless I'm misunderstanding that seems like a different problem than the original post, no?
Brad Bell
CC BY-SA 3.0
2015-03-03T19:25:42.400Z
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?
Marion Newlevant
CC BY-SA 3.0
2015-03-03T19:26:44.973Z
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.
Brad Bell
CC BY-SA 3.0
2017-11-29T12:15:08.847Z
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
Luke Pearce
CC BY-SA 3.0
2017-11-29T19:30:09.077Z
@LukePearce Only fixed for Craft 3 and not likely to be backported.
Brad Bell
CC BY-SA 4.0
2018-09-06T00:28:08.387Z
@BradBell Thanks for the fix. All the content is copied over BUT the Matrix fields. Is there a way even that gets copied over?
user6999
CC BY-SA 3.0
2014-10-29T22:24:04.243Z
2014-10-29T22:24:04.243Z
Brad Bell
<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>

CC BY-SA 3.0
2014-10-23T23:13:53.840Z
Maybe it helps if you set one field of your entry type as translatable (not the Matrix), but this is just a guess.
carlcs
CC BY-SA 3.0
2014-10-24T06:22:01.297Z
@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.
Marion Newlevant
CC BY-SA 3.0
2014-10-24T06:40:09.387Z
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.
carlcs
CC BY-SA 3.0
2014-10-29T11:04:16.400Z
@MarionNewlevant This sounds like a bug. Can you please send us a ticket from your dashboard, so we can look into it?
Brandon Kelly
<localization>
Added Locale, matrix content not copied
# 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**: @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.  
> **username_1**: 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.  
> **username_2**: @MarionNewlevant 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**: @LukePearce Only fixed for Craft 3 and not likely to be backported.  
> **username_5**: @BradBell Thanks for the fix. All the content is copied over BUT the Matrix fields. Is there a way even that gets copied over?  

---

