default_content icon indicating copy to clipboard operation
default_content copied to clipboard

Support x-default as a language code.

Open Berdir opened this issue 11 years ago • 0 comments

Right now, if you have exported default content with a specific langcode like en, and then install with a different langcode, your entities will exist but all their field values will be lost as they're stored in a translation for a non-existing language, or something.

This can be avoided by setting the language to und.

I'm wondering if it would make sense to support an explicit x-default in the exported files, not sure what's the best way to deal with it, the easiest might be string placements on "x-default", or maybe a larger pattern before unserializing it, but also hacky.

Berdir avatar Dec 05 '14 08:12 Berdir