Changeset 31314
- Timestamp:
- 01/31/2015 07:51:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/i18n/makepot.php
r27399 r31314 238 238 'project' => 'wp-core', 'output' => $output, 239 239 'extract_not_gettexted' => true, 240 240 'not_gettexted_files_filter' => array( $this, 'is_not_ms_file' ), 241 241 ) ); 242 242 } … … 247 247 return $this->wp_generic( $dir, array( 248 248 '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/.*' ), 250 251 'default_output' => 'wordpress.pot', 251 252 ) ); … … 264 265 $result = $this->wp_generic( $dir, array( 265 266 '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' ), 267 269 'default_output' => 'wordpress-admin.pot', 268 270 ) ); … … 271 273 return false; 272 274 273 274 275 $potextmeta = new PotExtMeta; 276 $result = $potextmeta->append( "$dir/wp-content/plugins/akismet/akismet.php", $output ); 275 277 if ( ! $result ) 276 278 return false; … … 278 280 if ( ! $result ) 279 281 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" ); 283 286 284 287 $common_pot = $this->tempnam( 'common.pot' ); … … 310 313 $result = $this->wp_generic( $dir, array( 311 314 '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(), 313 317 'default_output' => 'wordpress-admin-network.pot', 314 318 ) ); … … 338 342 $ms_result = $this->wp_generic( $dir, array( 339 343 'project' => 'wp-ms', 'output' => $output, 340 'includes' => $this->ms_files, 'excludes' => array(), 344 'includes' => $this->ms_files, 345 'excludes' => array(), 341 346 'default_output' => 'wordpress-ms.pot', 342 347 'extract_not_gettexted' => true, … … 360 365 return $this->wp_generic( $dir, array( 361 366 'project' => 'wp-tz', 'output' => $output, 362 'includes' => array($continents_path), 'excludes' => array(), 367 'includes' => array( $continents_path ), 368 'excludes' => array(), 363 369 'default_output' => 'wordpress-continents-cities.pot', 364 370 ) );
Note: See TracChangeset
for help on using the changeset viewer.