Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
|
@ -45,6 +45,10 @@ function locale_test_locale_translation_projects_alter(&$projects) {
|
|||
// translation update system will not go out to l.d.o to check.
|
||||
$projects['drupal']['server_pattern'] = 'translations://';
|
||||
|
||||
if (\Drupal::state()->get('locale.remove_core_project')) {
|
||||
unset($projects['drupal']);
|
||||
}
|
||||
|
||||
if (\Drupal::state()->get('locale.test_projects_alter')) {
|
||||
|
||||
// Instead of the default ftp.drupal.org we use the file system of the test
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
name: 'Locale Test Development Release'
|
||||
type: module
|
||||
description: 'Helper module to test the behaviour when the core verison is a development release.'
|
||||
package: Testing
|
||||
version: VERSION
|
||||
core: 8.x
|
||||
hidden: true
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Simulate a Drupal version.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Extension\Extension;
|
||||
|
||||
/**
|
||||
* Implements hook_system_info_alter().
|
||||
*
|
||||
* Change the core version number to a development one for testing.
|
||||
* 8.0.0-alpha102-dev is the simulated version.
|
||||
*/
|
||||
function locale_test_development_release_system_info_alter(&$info, Extension $file, $type) {
|
||||
if (isset($info['package']) && $info['package'] == 'Core') {
|
||||
$info['version'] = '8.0.0-alpha102-dev';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_locale_translation_projects_alter().
|
||||
*
|
||||
* Add a contrib module with a dev release to list of translatable modules.
|
||||
*/
|
||||
function locale_test_development_release_locale_translation_projects_alter(&$projects) {
|
||||
$projects['contrib'] = [
|
||||
'name' => 'contrib',
|
||||
'info' => array(
|
||||
'name' => 'Contributed module',
|
||||
'package' => 'Other',
|
||||
'version' => '12.x-10.4-unstable11+14-dev',
|
||||
'project' => 'contrib_module',
|
||||
'datestamp' => '0',
|
||||
'_info_file_ctime' => 1442933959,
|
||||
),
|
||||
'datestamp' => '0',
|
||||
'project_type' => 'module',
|
||||
'project_status' => TRUE,
|
||||
];
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
name: 'Locale Test Not Development Release'
|
||||
type: module
|
||||
description: 'The first release with the same major release number which is not a development release.'
|
||||
package: Testing
|
||||
version: VERSION
|
||||
core: 8.x
|
||||
hidden: true
|
|
@ -1,20 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Simulate a Drupal version.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Extension\Extension;
|
||||
|
||||
/**
|
||||
* Implements hook_system_info_alter().
|
||||
*
|
||||
* Change the core version number to a development one for testing.
|
||||
* 8.0.0-alpha102-dev is the simulated version.
|
||||
*/
|
||||
function locale_test_not_development_release_system_info_alter(&$info, Extension $file, $type) {
|
||||
if (isset($info['package']) && $info['package'] == 'Core') {
|
||||
$info['version'] = '8.0.0-alpha102-dev';
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
translatable_no_default: ''
|
||||
translatable_default_with_translation: 'Locale can translate'
|
||||
translatable_default_with_no_translation: 'Locale can not translate'
|
|
@ -0,0 +1,10 @@
|
|||
locale_test_translate.settings:
|
||||
type: config_object
|
||||
label: 'Test for locale translations'
|
||||
mapping:
|
||||
translatable_no_default:
|
||||
type: label
|
||||
translatable_default_with_translation:
|
||||
type: label
|
||||
translatable_default_with_no_translation:
|
||||
type: label
|
|
@ -8,3 +8,6 @@ msgstr ""
|
|||
|
||||
msgid "@site is currently under maintenance. We should be back shortly. Thank you for your patience."
|
||||
msgstr "Ons is tans besig met onderhoud op @site. Wees asseblief geduldig, ons sal binnekort weer terug wees."
|
||||
|
||||
msgid "Locale can translate"
|
||||
msgstr "Locale can translate Afrikaans"
|
||||
|
|
Reference in a new issue