Can you create an Entry with content only for a specific Locale? For instance, I have U.S. English (en_us)
and German (de)
locales setup for a section. I want to create entries, but only populate one locale. Is this possible?
$entry = new EntryModel();
$entry->getContent()->title = 'Testing Locale';
$entry->sectionId = '14';
$entry->typeId = '16';
$entry->locale = 'de';
$entry->localeEnabled = true;
$entry->setContentFromPost(array('plainTextField' => 'Test'));
craft()->entries->saveEntry($entry);
The resulting code above creates the entry fine, but content is present for both locales. Is this expected behaviour?