Ticket #31179: 31179.patch
File 31179.patch, 2.3 KB (added by , 10 years ago) |
---|
-
tools/i18n/makepot.php
237 237 return $this->wp_generic( $dir, array( 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 } 243 243 … … 246 246 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(), 'excludes' => array( 'wp-includes/class-pop3\.php', 'wp-admin/.*', 'wp-content/themes/.*' ), 250 250 'default_output' => 'wordpress.pot', 251 251 ) ); 252 252 } … … 263 263 264 264 $result = $this->wp_generic( $dir, array( 265 265 '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' ), 266 'includes' => array( 'wp-admin/.*' ), 267 'excludes' => array( 'wp-admin/includes/continents-cities\.php', 'wp-admin/network/.*', 'wp-admin/network.php' ), 267 268 'default_output' => 'wordpress-admin.pot', 268 269 ) ); 269 270 270 271 if ( ! $result ) 271 272 return false; 272 273 273 274 274 $potextmeta = new PotExtMeta; 275 $result = $potextmeta->append( "$dir/wp-content/plugins/akismet/akismet.php", $output ); 275 276 if ( ! $result ) 276 277 return false; 277 278 $result = $potextmeta->append( "$dir/wp-content/plugins/hello.php", $output ); 278 279 if ( ! $result ) 279 280 return false; 280 /* Adding non-gettexted strings can repeat some phrases */281 $output_shell = escapeshellarg($output);282 system("msguniq $output_shell -o $output_shell");283 281 282 /* Adding non-gettexted strings can repeat some phrases */ 283 $output_shell = escapeshellarg($output); 284 system("msguniq $output_shell -o $output_shell"); 285 284 286 $common_pot = $this->tempnam( 'common.pot' ); 285 287 if ( ! $common_pot ) 286 288 return false;