Skip to content
Snippets Groups Projects
Verified Commit cfacbed7 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #2609256 by sleitner, rkoller, smustgrave, vegantriathlete, quietone,...

Issue #2609256 by sleitner, rkoller, smustgrave, vegantriathlete, quietone, benjifisher, AaronMcHale, worldlinemine: Add warning message to import translations after enabling Interface Translation

(cherry picked from commit 5a0ad9b6)
parent 476e65a1
No related branches found
No related tags found
9 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest,!6720Revert "Issue #3358581 by pfrenssen, _tarik_, a.dmitriiev, smustgrave:...
Pipeline #98142 passed with warnings
Pipeline: drupal

#98158

    Pipeline: drupal

    #98154

      Pipeline: drupal

      #98151

        +1
        ...@@ -21,6 +21,12 @@ function locale_install() { ...@@ -21,6 +21,12 @@ function locale_install() {
        \Drupal::configFactory()->getEditable('locale.settings')->set('translation.path', $directory)->save(); \Drupal::configFactory()->getEditable('locale.settings')->set('translation.path', $directory)->save();
        } }
        \Drupal::service('file_system')->prepareDirectory($directory, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS); \Drupal::service('file_system')->prepareDirectory($directory, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS);
        $t_args = [
        ':translate_status' => base_path() . 'admin/reports/translations/check?destination=' . urlencode(base_path() . 'admin/reports/translations'),
        ];
        $message = t('Check <a href=":translate_status">available translations</a> for your language(s).', $t_args);
        \Drupal::messenger()->addStatus($message);
        } }
        /** /**
        ......
        <?php
        declare(strict_types=1);
        namespace Drupal\Tests\locale\Functional;
        use Drupal\Tests\BrowserTestBase;
        /**
        * Test installation of Locale module.
        *
        * @group locale
        */
        class LocaleInstallTest extends BrowserTestBase {
        /**
        * {@inheritdoc}
        */
        protected static $modules = [
        'system',
        'file',
        'language',
        ];
        /**
        * {@inheritdoc}
        */
        protected $defaultTheme = 'stark';
        /**
        * Tests Locale install message.
        */
        public function testLocaleInstallMessage(): void {
        $admin_user = $this->drupalCreateUser([
        'access administration pages',
        'administer modules',
        ]);
        $this->drupalLogin($admin_user);
        $edit = [];
        $edit['modules[locale][enable]'] = 'locale';
        $this->drupalGet('admin/modules');
        $this->submitForm($edit, 'Install');
        $this->assertSession()->statusMessageContains('available translations', 'status');
        }
        }
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment