diff --git tools/i18n/makepot.php tools/i18n/makepot.php
index 75b95e1..1af79a2 100644
|
|
|
class MakePOT { |
| 171 | 171 | $placeholders = array_merge( $meta, $placeholders ); |
| 172 | 172 | $meta['output'] = $this->realpath_missing( $output_file ); |
| 173 | 173 | $placeholders['year'] = date( 'Y' ); |
| 174 | | $placeholder_keys = array_map( create_function( '$x', 'return "{".$x."}";' ), array_keys( $placeholders ) ); |
| | 174 | $placeholder_keys = array_map( array( $this, 'wrap_placeholder' ), array_keys( $placeholders ) ); |
| 175 | 175 | $placeholder_values = array_values( $placeholders ); |
| 176 | 176 | foreach($meta as $key => $value) { |
| 177 | 177 | $meta[$key] = str_replace($placeholder_keys, $placeholder_values, $value); |
| … |
… |
class MakePOT { |
| 195 | 195 | return true; |
| 196 | 196 | } |
| 197 | 197 | |
| | 198 | private function wrap_placeholder( $x ) { |
| | 199 | return "{{$x}}"; |
| | 200 | } |
| | 201 | |
| 198 | 202 | public function wp_generic($dir, $args) { |
| 199 | 203 | $defaults = array( |
| 200 | 204 | 'project' => 'wp-core', |