Making WordPress.org

Changeset 9209


Ignore:
Timestamp:
10/19/2019 11:15:06 AM (5 years ago)
Author:
ocean90
Message:

Translate: Update exclude list for core POT files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-make-core-pot.php

    r8640 r9209  
    8282            'wp-admin/*',
    8383            'wp-content/themes/*',
     84            'wp-content/plugins/akismet/*',
     85            '*.js.map', // TODO: Currently not parsable, https://wordpress.slack.com/archives/C02RP4T41/p1541003227208000.
     86            // External libraries.
     87            'wp-includes/ID3/*',
     88            'wp-includes/IXR/*',
     89            'wp-includes/pomo/*',
     90            'wp-includes/random_compat/*',
     91            'wp-includes/Requests/*',
     92            'wp-includes/SimplePie/*',
     93            'wp-includes/Text/*',
     94            'wp-includes/sodium_compat/*',
     95            'wp-includes/atomlib.php',
     96            'wp-includes/class-IXR.php',
     97            'wp-includes/class-json.php',
     98            'wp-includes/class-phpass.php',
     99            'wp-includes/class-phpmailer.php',
    84100            'wp-includes/class-pop3.php',
    85             'wp-content/plugins/akismet/*',
    86             // External JavaScript libaries.
     101            'wp-includes/class-requests.php',
     102            'wp-includes/class-simplepie.php',
     103            'wp-includes/class-smtp.php',
     104            'wp-includes/class-snoopy.php',
     105            'wp-includes/rss.php',
    87106            'wp-includes/js/codemirror/*',
    88107            'wp-includes/js/crop/*',
     
    95114            'wp-includes/js/thickbox/*',
    96115            'wp-includes/js/tw-sack.js',
    97             '*.js.map', // TODO: Currently not parsable, https://wordpress.slack.com/archives/C02RP4T41/p1541003227208000.
    98116        ];
    99117
     
    150168        }
    151169
     170        $admin_exclude = [
     171            'wp-admin/includes/continents-cities.php',
     172            'editor.min.js', // Explicitly excluded as it's causing a memory leak: https://github.com/wp-cli/i18n-command/issues/185
     173            // External libraries.
     174            'wp-admin/includes/class-ftp*',
     175            'wp-admin/includes/class-pclzip.php',
     176        ];
     177
     178        $admin_exclude = array_merge( $admin_exclude, $admin_network_files );
     179
    152180        $command  = 'i18n make-pot ' . escapeshellarg( $this->source );
    153181        $command .= ' ' . escapeshellarg( $this->destination . '/wordpress-admin.pot' );
    154         $command .= ' --exclude=' . escapeshellarg( implode( ',', array_merge( [ 'wp-admin/includes/continents-cities.php' ], $admin_network_files ) ) );
     182        $command .= ' --exclude=' . escapeshellarg( implode( ',', $admin_exclude ) );
    155183        $command .= ' --include="wp-admin/*"';
    156184        $command .= ' --merge=' . escapeshellarg( $hello_dolly_pot );
Note: See TracChangeset for help on using the changeset viewer.