Changeset 9064 for trunk/wp-includes/js/tinymce/langs/wp-langs.php
- Timestamp:
- 10/02/2008 04:30:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/langs/wp-langs.php
r8307 r9064 1 1 <?php 2 3 function mce_put_file( $path, $content ) { 4 if ( function_exists('file_put_contents') ) 5 return @file_put_contents( $path, $content ); 6 7 $newfile = false; 8 $fp = @fopen( $path, 'wb' ); 9 if ($fp) { 10 $newfile = fwrite( $fp, $content ); 11 fclose($fp); 12 } 13 return $newfile; 14 } 2 15 3 16 // escape text only if it needs translating … … 9 22 } 10 23 11 $ strings= 'tinyMCE.addI18n({' . $language . ':{24 $lang = 'tinyMCE.addI18n({' . $language . ':{ 12 25 common:{ 13 26 edit_confirm:"' . mce_escape( __('Do you want to use the WYSIWYG mode for this textarea?') ) . '", … … 439 452 }); 440 453 '; 441 ?> 454 455 // mce_put_file( ABSPATH . WPINC . '/js/tinymce/langs/wp-langs-' . $language . '.js', $lang );
Note: See TracChangeset
for help on using the changeset viewer.