Make WordPress Core

Changeset 31314


Ignore:
Timestamp:
01/31/2015 07:51:03 PM (10 years ago)
Author:
ocean90
Message:

i18n tools: Tabs, not spaces for indentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/i18n/makepot.php

    r27399 r31314  
    238238            'project' => 'wp-core', 'output' => $output,
    239239            'extract_not_gettexted' => true,
    240                         'not_gettexted_files_filter' => array( $this, 'is_not_ms_file' ),
     240            'not_gettexted_files_filter' => array( $this, 'is_not_ms_file' ),
    241241        ) );
    242242    }
     
    247247        return $this->wp_generic( $dir, array(
    248248            'project' => 'wp-frontend', 'output' => $output,
    249             'includes' => array(), 'excludes' => array( 'wp-admin/.*', 'wp-content/themes/.*' ),
     249            'includes' => array(),
     250            'excludes' => array( 'wp-admin/.*', 'wp-content/themes/.*' ),
    250251            'default_output' => 'wordpress.pot',
    251252        ) );
     
    264265        $result = $this->wp_generic( $dir, array(
    265266            'project' => 'wp-admin', 'output' => $output,
    266             'includes' => array( 'wp-admin/.*' ), 'excludes' => array( 'wp-admin/includes/continents-cities\.php', 'wp-admin/network/.*', 'wp-admin/network.php' ),
     267            'includes' => array( 'wp-admin/.*' ),
     268            'excludes' => array( 'wp-admin/network/.*', 'wp-admin/network.php' ),
    267269            'default_output' => 'wordpress-admin.pot',
    268270        ) );
     
    271273            return false;
    272274
    273                 $potextmeta = new PotExtMeta;
    274                 $result = $potextmeta->append( "$dir/wp-content/plugins/akismet/akismet.php", $output );
     275        $potextmeta = new PotExtMeta;
     276        $result = $potextmeta->append( "$dir/wp-content/plugins/akismet/akismet.php", $output );
    275277        if ( ! $result )
    276278            return false;
     
    278280        if ( ! $result )
    279281            return false;
    280                 /* Adding non-gettexted strings can repeat some phrases */
    281                 $output_shell = escapeshellarg($output);
    282                 system("msguniq $output_shell -o $output_shell");
     282
     283        /* Adding non-gettexted strings can repeat some phrases */
     284        $output_shell = escapeshellarg( $output );
     285        system( "msguniq $output_shell -o $output_shell" );
    283286
    284287        $common_pot = $this->tempnam( 'common.pot' );
     
    310313        $result = $this->wp_generic( $dir, array(
    311314            'project' => 'wp-network-admin', 'output' => $output,
    312             'includes' => array( 'wp-admin/network/.*', 'wp-admin/network.php' ), 'excludes' => array(),
     315            'includes' => array( 'wp-admin/network/.*', 'wp-admin/network.php' ),
     316            'excludes' => array(),
    313317            'default_output' => 'wordpress-admin-network.pot',
    314318        ) );
     
    338342        $ms_result = $this->wp_generic( $dir, array(
    339343            'project' => 'wp-ms', 'output' => $output,
    340             'includes' => $this->ms_files, 'excludes' => array(),
     344            'includes' => $this->ms_files,
     345            'excludes' => array(),
    341346            'default_output' => 'wordpress-ms.pot',
    342347            'extract_not_gettexted' => true,
     
    360365        return $this->wp_generic( $dir, array(
    361366            'project' => 'wp-tz', 'output' => $output,
    362             'includes' => array($continents_path), 'excludes' => array(),
     367            'includes' => array( $continents_path ),
     368            'excludes' => array(),
    363369            'default_output' => 'wordpress-continents-cities.pot',
    364370        ) );
Note: See TracChangeset for help on using the changeset viewer.