Commit 2c72fade authored by Srishti Bankar's avatar Srishti Bankar Committed by Tim Plunkett
Browse files

Issue #3315858 by srishtiiee, tim.plunkett: Make the micro copy for adding and...

Issue #3315858 by srishtiiee, tim.plunkett: Make the micro copy for adding and installing modules consistent with the general plan for Drupal Core
parent 0778370e
Loading
Loading
Loading
Loading
+0 −0

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+0 −0

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+6 −8
Original line number Diff line number Diff line
@@ -59,9 +59,9 @@
  }

  function getPopupMessage() {
    const download = Drupal.t('Download');
    const add = Drupal.t('Add');
    const composerText = Drupal.t(
      'The !use_composer_open recommended way to download any Drupal module!close is with !get_composer_open Composer!close.</a>',
      'The !use_composer_open recommended way to add any Drupal module!close is with !get_composer_open Composer!close.</a>',
      {
        '!close': '</a>',
        '!use_composer_open':
@@ -73,9 +73,7 @@
    const composerExistsText = Drupal.t(
      "If you already manage your Drupal application dependencies with Composer, run the following from the command line in your application's Composer root directory",
    );
    const infoText = Drupal.t(
      'This will download the module to your codebase.',
    );
    const infoText = Drupal.t('This will add the module to your codebase.');
    const composerDontWorkText = Drupal.t(
      "Didn't work? !learn_open Learn how to troubleshoot Composer!close",
      {
@@ -85,7 +83,7 @@
      },
    );
    const downloadModuleText = Drupal.t(
      'If you cannot use Composer, you may !dl_manually_open download the module manually through your browser!close',
      'If you cannot use Composer, you may !dl_manually_open add the module manually through your browser!close',
      {
        '!dl_manually_open':
          '<a href="https://www.drupal.org/docs/user_guide/en/extend-module-install.html#s-using-the-administrative-interface" target="_blank" rel="noreferrer">',
@@ -111,7 +109,7 @@
    const copied = Drupal.t('Copied!');
    const div = document.createElement('div');
    div.classList.add('window');
    div.innerHTML = `<h3>1. ${download}</h3>
    div.innerHTML = `<h3>1. ${add}</h3>
              <p>${composerText}</p>
              <p>${composerExistsText}:</p>
              <div id="download-cmd">
@@ -182,7 +180,7 @@
  {:else if project.composer_namespace !== ''}
    <span
      ><button on:click={openPopup} class="button button--primary"
        >{Drupal.t('Download')}</button
        >{Drupal.t('+ Add')}</button
      ></span
    >
  {/if}