Issue #2388925 by xjm, preshetin: British again invade config sync

8.0.x
Alex Pott 2014-12-11 17:57:18 +01:00
parent 6031d0bb00
commit a198ce636c
8 changed files with 11 additions and 11 deletions

View File

@ -560,7 +560,7 @@ class ConfigImporter {
$operation = $this->getNextExtensionOperation();
if (!empty($operation)) {
$this->processExtension($operation['type'], $operation['op'], $operation['name']);
$context['message'] = t('Synchronising extensions: @op @name.', array('@op' => $operation['op'], '@name' => $operation['name']));
$context['message'] = t('Synchronizing extensions: @op @name.', array('@op' => $operation['op'], '@name' => $operation['name']));
$processed_count = count($this->processedExtensions['module']['install']) + count($this->processedExtensions['module']['uninstall']);
$processed_count += count($this->processedExtensions['theme']['uninstall']) + count($this->processedExtensions['theme']['install']);
$context['finished'] = $processed_count / $this->totalExtensionsToProcess;
@ -857,8 +857,8 @@ class ConfigImporter {
case 'update':
if (!$target_exists) {
$this->logError($this->t('Update target "@name" is missing.', array('@name' => $name)));
// Mark as processed so that the synchronisation continues. Once the
// the current synchronisation is complete it will show up as a
// Mark as processed so that the synchronization continues. Once the
// the current synchronization is complete it will show up as a
// create.
$this->setProcessedConfiguration($collection, $op, $name);
return FALSE;

View File

@ -304,7 +304,7 @@ abstract class ConfigEntityBase extends Entity implements ConfigEntityInterface
}
if (!$this->isSyncing()) {
// Ensure the correct dependencies are present. If the configuration is
// being written during a configuration synchronisation then there is no
// being written during a configuration synchronization then there is no
// need to recalculate the dependencies.
$this->calculateDependencies();
}

View File

@ -262,7 +262,7 @@ class StorageComparer implements StorageComparerInterface {
if (isset($this->sourceData[$collection][$name]['uuid']) && $this->sourceData[$collection][$name]['uuid'] != $this->targetData[$collection][$name]['uuid']) {
// The entity has the same file as an existing entity but the UUIDs do
// not match. This means that the entity has been recreated so config
// synchronisation should do the same.
// synchronization should do the same.
$recreates[] = $name;
}
else {

View File

@ -216,7 +216,7 @@ class ModuleInstaller implements ModuleInstallerInterface {
->setSourceStorage($source_storage);
}
else {
// If we're not in a config synchronisation reset the source storage
// If we're not in a config synchronization reset the source storage
// so that the extension install storage will pick up the new
// configuration.
$config_installer->resetSourceStorage();

4
core/modules/config/src/Form/ConfigSync.php Normal file → Executable file
View File

@ -353,7 +353,7 @@ class ConfigSync extends FormBase {
* @param \Drupal\Core\Config\ConfigImporter $config_importer
* The batch config importer object to persist.
* @param string $sync_step
* The synchronisation step to do.
* The synchronization step to do.
* @param $context
* The batch context.
*/
@ -375,7 +375,7 @@ class ConfigSync extends FormBase {
/**
* Finish batch.
*
* This function is a static function to avoid serialising the ConfigSync
* This function is a static function to avoid serializing the ConfigSync
* object unnecessarily.
*/
public static function finishBatch($success, $results, $operations) {

View File

@ -10,7 +10,7 @@ namespace Drupal\config\Tests;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Provides test assertions for testing config entity synchronisation.
* Provides test assertions for testing config entity synchronization.
*
* Can be used by test classes that extend \Drupal\simpletest\WebTestBase or
* \Drupal\simpletest\KernelTestBase.

View File

@ -35,7 +35,7 @@ class LanguageConfigOverrideImportTest extends WebTestBase {
// Uninstall the language module and its dependencies so we can test
// enabling the language module and creating overrides at the same time
// during a configuration synchronisation.
// during a configuration synchronization.
\Drupal::service('module_installer')->uninstall(array('language'));
// Ensure that the current site has no overrides registered to the
// ConfigFactory.

View File

@ -13,7 +13,7 @@ use Drupal\Core\Config\Entity\ConfigEntityStorage;
use Drupal\simpletest\WebTestBase;
/**
* Tests importing renamed node type via configuration synchronisation.
* Tests importing renamed node type via configuration synchronization.
*
* @group node
*/