Make WordPress Core

Ticket #43732: 43732.diff

File 43732.diff, 2.6 KB (added by arcturusink, 7 years ago)

More instructions

  • src/index.php

     
    2727// Die with an error message
    2828$die  = sprintf(
    2929                /* translators: %1$s: WordPress, %2$s: src, %3$s: build */
    30                         __( 'You seem to be running %1$s from the %2$s directory. %1$s needs to be built and run from the %3$s directory before we can get started.' ),
     30                        __( 'You seem to be running %1$s from the %2$s directory. %1$s needs to be built and run from the %3$s directory before we can get started' ),
    3131                        'WordPress',
    3232                        '<code>src</code>',
    3333                        '<code>build</code>'
     
    3434                ) . '</p>';
    3535$die .= '<p>' . sprintf(
    3636        /* translators: %s: WordPress */
    37                 __( 'You can build %s by running:' ),
     37                __( 'You can build %s by:' ),
    3838                'WordPress'
    3939        ) . '</p>';
    40 $die .= '<p><code>npm install && grunt build</code></p>';
    4140$die .= '<p>' . sprintf(
    42         /* translators: %1$s: NPM URL, %2$s: Grunt URL */
    43                 __( 'This requires <a href="%1$s">NPM</a> and <a href="%2$s">Grunt</a>. <a href="%3$s">Read more about setting up your local development environment</a>.' ),
    44                 'https://www.npmjs.com/',
    45                 'https://gruntjs.com/',
    46                 __( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' )
     41        /* translators: %1$s: Node.js URL, %2$s: WordPress, %3$s: $ npm install, %4$s: $ npm -v, %5$s: $ npm install -g grunt-cli, %6$s: $ grunt build, %7$s: node_modules, %8$s: build*/
     42                __( '-  Visiting and downloading <a href="%1$s">Node.js</a>. Go through its installer <br>
     43                        -       Go to the directory where your %2$s source code is located using the command line or terminal <br>
     44                        -       Type in  %3$s in your command line/terminal. Wait for it to finish installing <br>
     45                        -       Type in %4$s. A version number should be displayed if npm was installed correctly <br>
     46                        -       Type in %5$s to install grunt <br>
     47                        -       Type in  %6$s. Wait for it to finish <br>
     48                        -       If all is successful, two new directories should appear: %7$s and %8$s
     49                        ' ),
     50                'https://nodejs.org/en/',
     51                'WordPress',
     52                '<code>$ npm install</code>',
     53                '<code>$ npm -v</code>',
     54                '<code>$ npm install -g grunt-cli</code>',
     55                '<code>$ grunt build</code>',
     56                '<code>node_modules</code>',
     57                '<code>build</code>'
    4758        ) . '</p>';
     59$die .= '<p>' . sprintf(
     60        /* translators: %1$s: src, %2$s: $ grunt */
     61                __( 'Any changes you make for development purposes should be made in the %1$s directory. Afterwards, however, type in %2$s in the root directory. It will update the contents of the build directory' ),
     62                '<code>src</code>',
     63                '<code>$ grunt</code>'
     64        ) . '</p>';
    4865
    4966wp_die( $die, __( 'WordPress &rsaquo; Error' ) );
     67 No newline at end of file