Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2

This commit is contained in:
Pantheon Automation 2016-06-02 15:56:09 -07:00 committed by Greg Anderson
parent 9eae24d844
commit 28556d630e
1322 changed files with 6699 additions and 2064 deletions

View file

@ -139,7 +139,7 @@ class ExportForm extends FormBase {
$reader->setOptions($content_options);
$languages = $this->languageManager->getLanguages();
$language_name = isset($languages[$language->getId()]) ? $languages[$language->getId()]->getName() : '';
$filename = $language->getId() .'.po';
$filename = $language->getId() . '.po';
}
else {
// Template required.

View file

@ -192,4 +192,5 @@ class ImportForm extends FormBase {
$form_state->setRedirect('locale.translate_page');
}
}

View file

@ -93,4 +93,5 @@ class Gettext {
$report['seek'] = $reader->getSeek();
return $report;
}
}

View file

@ -20,4 +20,5 @@ class Locale {
public static function config() {
return \Drupal::service('locale.config_manager');
}
}

View file

@ -204,7 +204,6 @@ class LocaleConfigManager {
* The translatable array structure. A nested array matching the exact
* structure under of the default configuration for $name with only the
* elements that are translatable wrapped into a TranslatableMarkup.
* @see self::getTranslatableData().
* @param string $langcode
* The language code to process the array with.
*
@ -212,6 +211,8 @@ class LocaleConfigManager {
* Processed translatable data array. Will only contain translations
* different from source strings or in case of untranslatable English, the
* source strings themselves.
*
* @see self::getTranslatableData()
*/
protected function processTranslatableData($name, array $active, array $translatable, $langcode) {
$translated = array();

View file

@ -165,4 +165,5 @@ class LocaleProjectStorage implements LocaleProjectStorageInterface {
}
return $this->cache;
}
}

View file

@ -98,4 +98,5 @@ interface LocaleProjectStorageInterface {
* The number of saved items.
*/
public function countProjects();
}

View file

@ -42,9 +42,11 @@ class TranslationsStream extends LocalStream {
/**
* Implements Drupal\Core\StreamWrapper\StreamWrapperInterface::getExternalUrl().
* @throws \LogicException PO files URL should not be public.
* @throws \LogicException
* PO files URL should not be public.
*/
function getExternalUrl() {
throw new \LogicException('PO files URL should not be public.');
}
}

View file

@ -536,4 +536,5 @@ class StringDatabaseStorage implements StringStorageInterface {
protected function dbExecute($query, array $args = array()) {
return $this->connection->query($query, $args, $this->options);
}
}

View file

@ -176,4 +176,5 @@ interface StringStorageInterface {
* New string translation object.
*/
public function createTranslation($values = array());
}

View file

@ -112,7 +112,7 @@ class LocaleContentTest extends WebTestBase {
// Edit the content and ensure correct language is selected.
$path = 'node/' . $node->id() . '/edit';
$this->drupalGet($path);
$this->assertRaw('<option value="' . $langcode . '" selected="selected">' . $name . '</option>', 'Correct language selected.');
$this->assertRaw('<option value="' . $langcode . '" selected="selected">' . $name . '</option>', 'Correct language selected.');
// Ensure we can change the node language.
$edit = array(
'langcode[0][value]' => 'en',

View file

@ -638,4 +638,5 @@ msgstr "Deutsch"
EOF;
}
}

View file

@ -32,4 +32,5 @@ class LocaleLibraryAlterTest extends WebTestBase {
$js_assets = $this->container->get('asset.resolver')->getJsAssets($assets, FALSE)[1];
$this->assertTrue(array_key_exists('core/modules/locale/locale.datepicker.js', $js_assets), 'locale.datepicker.js added to scripts.');
}
}

View file

@ -147,4 +147,5 @@ class LocalePathTest extends WebTestBase {
$this->assertText($second_node->label(), 'Custom alias with prefix returns second node.');
}
}

View file

@ -444,4 +444,5 @@ msgid "Monday"
msgstr "Ponedjeljak"
EOF;
}
}

View file

@ -201,4 +201,5 @@ class LocaleStringTest extends WebTestBase {
'translation' => $this->randomMachineName(100),
))->save();
}
}

View file

@ -87,4 +87,5 @@ class LocaleTranslatedSchemaDefinitionTest extends WebTestBase {
$this->assertRaw('messages--status', 'No pending updates.');
$this->assertNoLinkByHref('fr/update.php/run', 'No link to run updates.');
}
}

View file

@ -205,7 +205,7 @@ class LocaleTranslationUiTest extends WebTestBase {
$this->assertNoText(t('No strings available.'), 'The translation has been removed');
}
/*
/**
* Adds a language and checks that the JavaScript translation files are
* properly created and rebuilt on deletion.
*/
@ -539,4 +539,5 @@ class LocaleTranslationUiTest extends WebTestBase {
$this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
$this->assertText($string->getString(), "Translation is marked as customized.");
}
}

View file

@ -301,4 +301,5 @@ EOF;
$db_translation = $db_translation == FALSE ? '' : $db_translation;
$this->assertEqual($translation, $db_translation, $message ? $message : format_string('Correct translation of %source (%language)', array('%source' => $source, '%language' => $langcode)));
}
}

View file

@ -106,4 +106,5 @@ class LocaleUpdateCronTest extends LocaleUpdateBase {
$this->assertTrue($current->timestamp > $initial->timestamp, 'Timestamp is updated');
$this->assertTrue($current->last_checked > $initial->last_checked, 'Last checked is updated');
}
}

View file

@ -28,4 +28,5 @@ class LocaleUpdateDevelopmentReleaseTest extends WebTestBase {
$this->verbose($projects['contrib']->info['version']);
$this->assertEqual($projects['contrib']->info['version'], '12.x-10.x', 'The branch of the contrib module dev release.');
}
}