Changeset 27618
- Timestamp:
- 03/19/2014 07:17:07 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r27534 r27618 518 518 $mce_translation = array( 519 519 // Default TinyMCE strings 520 'Cut' => __('Cut'), 521 'Header 2' => __('Header 2'), 522 'Your browser doesn\'t support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.' => __('Your browser does not support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.'), 523 'Div' => __('Div'), 524 'Paste' => __('Paste'), 525 'Close' => __('Close'), 526 'Pre' => __('Pre'), 520 'New document' => __( 'New document' ), 521 'Formats' => _x( 'Formats', 'TinyMCE' ), 522 'Headers' => _x( 'Headers', 'TinyMCE' ), 523 'Header 1' => __( 'Heading 1' ), 524 'Header 2' => __( 'Heading 2' ), 525 'Header 3' => __( 'Heading 3' ), 526 'Header 4' => __( 'Heading 4' ), 527 'Header 5' => __( 'Heading 5' ), 528 'Header 6' => __( 'Heading 6' ), 529 530 /* translators: block tags */ 531 'Blocks' => _x( 'Blocks', 'TinyMCE' ), 532 'Paragraph' => __( 'Paragraph' ), 533 'Blockquote' => __( 'Blockquote' ), 534 'Div' => _x( 'Div', 'HTML tag' ), 535 'Pre' => _x( 'Pre', 'HTML tag' ), 536 537 'Inline' => _x( 'Inline', 'HTML elements' ), 538 'Underline' => __( 'Underline' ), 539 'Strikethrough' => __( 'Strikethrough' ), 540 'Subscript' => __( 'Subscript' ), 541 'Superscript' => __( 'Superscript' ), 542 'Clear formatting' => __( 'Clear formatting' ), 543 'Bold' => __('Bold'), 544 'Italic' => __('Italic'), 545 'Code' => _x( 'Code', 'editor button' ), 546 'Source code' => __( 'Source code' ), 547 548 'Align center' => __('Align center'), 527 549 'Align right' => __('Align right'), 528 'New document' => __('New document'), 529 'Blockquote' => __('Blockquote'), 550 'Align left' => __( 'Align left' ), 551 'Justify' => __('Justify'), 552 'Increase indent' => __('Increase indent'), 553 'Decrease indent' => __('Decrease indent'), 554 555 'Cut' => __( 'Cut' ), 556 'Copy' => __( 'Copy' ), 557 'Paste' => __( 'Paste' ), 558 'Select all' => __( 'Select all' ), 559 'Undo' => __( 'Undo' ), 560 'Redo' => __( 'Redo' ), 561 562 'Ok' => __( 'OK' ), 563 'Cancel' => __( 'Cancel' ), 564 'Close' => __( 'Close' ), 565 'Visual aids' => __( 'Visual aids' ), 566 567 'Bullet list' => __( 'Bulleted list' ), 530 568 'Numbered list' => __('Numbered list'), 531 'Increase indent' => __('Increase indent'), 532 'Formats' => __('Formats'), 533 'Headers' => __('Headers'), 534 'Select all' => __('Select all'), 535 'Header 3' => __('Header 3'), 536 'Blocks' => __('Blocks'), 537 'Undo' => __('Undo'), 538 'Strikethrough' => __('Strikethrough'), 539 'Bullet list' => __('Bullet list'), 540 'Header 1' => __('Header 1'), 541 'Superscript' => __('Superscript'), 542 'Clear formatting' => __('Clear formatting'), 543 'Subscript' => __('Subscript'), 544 'Header 6' => __('Header 6'), 545 'Redo' => __('Redo'), 546 'Paragraph' => __('Paragraph'), 547 'Ok' => __('Ok'), 548 'Bold' => __('Bold'), 549 'Code' => __('Code'), 550 'Italic' => __('Italic'), 551 'Align center' => __('Align center'), 552 'Header 5' => __('Header 5'), 553 'Decrease indent' => __('Decrease indent'), 554 'Header 4' => __('Header 4'), 555 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' => __('Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.'), 556 'Underline' => __('Underline'), 557 'Cancel' => __('Cancel'), 558 'Justify' => __('Justify'), 559 'Inline' => __('Inline'), 560 'Copy' => __('Copy'), 561 'Align left' => __('Align left'), 562 'Visual aids' => __('Visual aids'), 563 'Lower Greek' => __('Lower Greek'), 564 'Square' => __('Square'), 565 'Default' => __('Default'), 566 'Lower Alpha' => __('Lower Alpha'), 567 'Circle' => __('Circle'), 568 'Disc' => __('Disc'), 569 'Upper Alpha' => __('Upper Alpha'), 570 'Upper Roman' => __('Upper Roman'), 571 'Lower Roman' => __('Lower Roman'), 572 'Name' => __('Name'), 573 'Anchor' => __('Anchor'), 574 'You have unsaved changes are you sure you want to navigate away?' => __('You have unsaved changes are you sure you want to navigate away?'), 575 'Restore last draft' => __('Restore last draft'), 576 'Special character' => __('Special character'), 577 'Source code' => __('Source code'), 578 'Right to left' => __('Right to left'), 579 'Left to right' => __('Left to right'), 580 'Emoticons' => __('Emoticons'), 581 'Robots' => __('Robots'), 582 'Document properties' => __('Document properties'), 583 'Title' => __('Title'), 584 'Keywords' => __('Keywords'), 585 'Encoding' => __('Encoding'), 586 'Description' => __('Description'), 587 'Author' => __('Author'), 588 'Fullscreen' => __('Fullscreen'), 589 'Horizontal line' => __('Horizontal line'), 590 'Horizontal space' => __('Horizontal space'), 569 'Square' => _x( 'Square', 'list style' ), 570 'Default' => _x( 'Default', 'list style' ), 571 'Circle' => _x( 'Circle', 'list style' ), 572 'Disc' => _x('Disc', 'list style' ), 573 'Lower Greek' => _x( 'Lower Greek', 'list style' ), 574 'Lower Alpha' => _x( 'Lower Alpha', 'list style' ), 575 'Upper Alpha' => _x( 'Upper Alpha', 'list style' ), 576 'Upper Roman' => _x( 'Upper Roman', 'list style' ), 577 'Lower Roman' => _x( 'Lower Roman', 'list style' ), 578 579 // Anchor plugin 580 'Name' => _x( 'Name', 'Name of link anchor (TinyMCE)' ), 581 'Anchor' => _x( 'Anchor', 'Link anchor (TinyMCE)' ), 582 'Anchors' => _x( 'Anchors', 'Link anchors (TinyMCE)' ), 583 584 // Fullpage plugin 585 'Document properties' => __( 'Document properties' ), 586 'Robots' => __( 'Robots' ), 587 'Title' => __( 'Title' ), 588 'Keywords' => __( 'Keywords' ), 589 'Encoding' => __( 'Encoding' ), 590 'Description' => __( 'Description' ), 591 'Author' => __( 'Author' ), 592 593 // Media, image plugins 591 594 'Insert/edit image' => __('Insert/edit image'), 592 595 'General' => __('General'), … … 601 604 'Insert image' => __('Insert image'), 602 605 'Insert date/time' => __('Insert date/time'), 603 'Remove link' => __('Remove link'),604 'Url' => __('Url'),605 'Text to display' => __('Text to display'),606 'Anchors' => __('Anchors'),607 'Insert link' => __('Insert link'),608 'New window' => __('New window'),609 'None' => __('None'),610 'Target' => __('Target'),611 'Insert/edit link' => __('Insert/edit link'),612 606 'Insert/edit video' => __('Insert/edit video'), 613 607 'Poster' => __('Poster'), … … 616 610 'Insert video' => __('Insert video'), 617 611 'Embed' => __('Embed'), 618 'Nonbreaking space' => __('Nonbreaking space'), 619 'Page break' => __('Page break'), 620 'Paste as text' => __('Paste as text'), 621 'Preview' => __('Preview'), 622 'Print' => __('Print'), 623 'Save' => __('Save'), 624 'Could not find the specified string.' => __('Could not find the specified string.'), 625 'Replace' => __('Replace'), 626 'Next' => __('Next'), 627 'Whole words' => __('Whole words'), 628 'Find and replace' => __('Find and replace'), 629 'Replace with' => __('Replace with'), 630 'Find' => __('Find'), 631 'Replace all' => __('Replace all'), 612 613 // Each of these have a corresponding plugin 614 'Special character' => __( 'Special character' ), 615 'Right to left' => _x( 'Right to left', 'editor button' ), 616 'Left to right' => _x( 'Left to right', 'editor button' ), 617 'Emoticons' => __( 'Emoticons' ), 618 'Nonbreaking space' => __( 'Nonbreaking space' ), 619 'Page break' => __( 'Page break' ), 620 'Paste as text' => __( 'Paste as text' ), 621 'Preview' => __( 'Preview' ), 622 'Print' => __( 'Print' ), 623 'Save' => __( 'Save' ), 624 'Fullscreen' => __( 'Fullscreen' ), 625 'Horizontal line' => __( 'Horizontal line' ), 626 'Horizontal space' => __( 'Horizontal space' ), 627 'Restore last draft' => __( 'Restore last draft' ), 628 629 // Spelling, search/replace plugins 630 'Could not find the specified string.' => __( 'Could not find the specified string.' ), 631 'Replace' => _x( 'Replace', 'find/replace' ), 632 'Next' => _x( 'Next', 'find/replace' ), 633 /* translators: previous */ 634 'Prev' => _x( 'Prev', 'find/replace' ), 635 'Whole words' => _x( 'Whole words', 'find/replace' ), 636 'Find and replace' => __('Find and replace' ), 637 'Replace with' => _x('Replace with', 'find/replace' ), 638 'Find' => _x( 'Find', 'find/replace' ), 639 'Replace all' => _x( 'Replace all', 'find/replace' ), 632 640 'Match case' => __('Match case'), 633 'Prev' => __('Prev'), 634 'Spellcheck' => __('Spellcheck'), 635 'Finish' => __('Finish'), 636 'Ignore all' => __('Ignore all'), 637 'Ignore' => __('Ignore'), 638 'Insert row before' => __('Insert row before'), 639 'Rows' => __('Rows'), 640 'Height' => __('Height'), 641 'Paste row after' => __('Paste row after'), 642 'Alignment' => __('Alignment'), 643 'Column group' => __('Column group'), 644 'Row' => __('Row'), 645 'Insert column before' => __('Insert column before'), 646 'Split cell' => __('Split cell'), 647 'Cell padding' => __('Cell padding'), 648 'Cell spacing' => __('Cell spacing'), 649 'Row type' => __('Row type'), 650 'Insert table' => __('Insert table'), 651 'Body' => __('Body'), 652 'Caption' => __('Caption'), 653 'Footer' => __('Footer'), 654 'Delete row' => __('Delete row'), 655 'Paste row before' => __('Paste row before'), 656 'Scope' => __('Scope'), 657 'Delete table' => __('Delete table'), 658 'Header cell' => __('Header cell'), 659 'Column' => __('Column'), 660 'Cell' => __('Cell'), 661 'Header' => __('Header'), 662 'Cell type' => __('Cell type'), 663 'Copy row' => __('Copy row'), 664 'Row properties' => __('Row properties'), 665 'Table properties' => __('Table properties'), 666 'Row group' => __('Row group'), 667 'Right' => __('Right'), 668 'Insert column after' => __('Insert column after'), 669 'Cols' => __('Cols'), 641 'Spellcheck' => __( 'Check Spelling' ), 642 'Finish' => _x( 'Finish', 'spellcheck' ), 643 'Ignore all' => _x( 'Ignore all', 'spellcheck' ), 644 'Ignore' => _x( 'Ignore', 'spellcheck' ), 645 646 // TinyMCE tables 647 'Insert table' => __( 'Insert table' ), 648 'Delete table' => __( 'Delete table' ), 649 'Table properties' => __( 'Table properties' ), 650 'Row properties' => __( 'Table row properties' ), 651 'Cell properties' => __( 'Table cell properties' ), 652 653 'Row' => __( 'Row' ), 654 'Rows' => __( 'Rows' ), 655 'Column' => _x( 'Column', 'table column' ), 656 'Cols' => _x( 'Cols', 'table columns' ), 657 'Cell' => _x( 'Cell', 'table cell' ), 658 'Header cell' => __( 'Header cell' ), 659 'Header' => _x( 'Header', 'table header' ), 660 'Body' => _x( 'Body', 'table body' ), 661 'Footer' => _x( 'Footer', 'table footer' ), 662 663 'Insert row before' => __( 'Insert row before' ), 670 664 'Insert row after' => __('Insert row after'), 665 'Insert column before' => __( 'Insert column before' ), 666 'Insert column after' => __( 'Insert column after' ), 667 'Paste row before' => __( 'Paste table row before' ), 668 'Paste row after' => __( 'Paste table row after' ), 669 'Delete row' => __( 'Delete row' ), 670 'Delete column' => __('Delete column'), 671 'Cut row' => __('Cut table row' ), 672 'Copy row' => __( 'Copy table row' ), 673 'Merge cells' => __( 'Merge table cells' ), 674 'Split cell' => __( 'Split merged table cells' ), 675 676 'Height' => __( 'Height' ), 671 677 'Width' => __('Width'), 672 'Cell properties' => __('Cell properties'), 673 'Left' => __('Left'), 674 'Cut row' => __('Cut row'), 675 'Delete column' => __('Delete column'), 676 'Center' => __('Center'), 677 'Merge cells' => __('Merge cells'), 678 'Insert template' => __('Insert template'), 679 'Templates' => __('Templates'), 680 'Background color' => __('Background color'), 681 'Text color' => __('Text color'), 682 'Show blocks' => __('Show blocks'), 683 'Show invisible characters' => __('Show invisible characters'), 684 'Words: {0}' => __('Words: {0}'), 685 'Insert' => __('Insert'), 686 'File' => __('File'), 687 'Edit' => __('Edit'), 678 'Caption' => __( 'Caption' ), 679 'Alignment' => __( 'Alignment' ), 680 'Left' => __( 'Left' ), 681 'Center' => __( 'Center' ), 682 'Right' => __( 'Right' ), 683 684 'Row group' => __( 'Row group' ), 685 'Column group' => __( 'Column group' ), 686 'Row type' => __( 'Row type' ), 687 'Cell type' => __( 'Cell type' ), 688 'Cell padding' => __( 'Cell padding' ), 689 'Cell spacing' => __( 'Cell spacing' ), 690 'Scope' => _x( 'Scope', 'table cell scope attribute' ), 691 692 'Insert template' => _x( 'Insert template', 'TinyMCE' ), 693 'Templates' => _x( 'Templates', 'TinyMCE' ), 694 695 'Background color' => __( 'Background color' ), 696 'Text color' => __( 'Text color' ), 697 'Show blocks' => _x( 'Show blocks', 'editor button' ), 698 'Show invisible characters' => __( 'Show invisible characters' ), 699 700 /* translators: word count */ 701 'Words: {0}' => sprintf( __( 'Words: %s' ), '{0}' ), 702 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.' => __('Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.'), 688 703 'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help' => __('Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help'), 689 'Tools' => __('Tools'), 690 'View' => __('View'), 691 'Table' => __('Table'), 692 'Format' => __('Format'), 704 'You have unsaved changes are you sure you want to navigate away?' => __( 'The changes you made will be lost if you navigate away from this page.' ), 705 'Your browser doesn\'t support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.' => __('Your browser does not support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.'), 706 707 // TinyMCE menus 708 'Insert' => _x( 'Insert', 'TinyMCE menu' ), 709 'File' => _x( 'File', 'TinyMCE menu' ), 710 'Edit' => _x( 'Edit', 'TinyMCE menu' ), 711 'Tools' => _x( 'Tools', 'TinyMCE menu' ), 712 'View' => _x( 'View', 'TinyMCE menu' ), 713 'Table' => _x( 'Table', 'TinyMCE menu' ), 714 'Format' => _x( 'Format', 'TinyMCE menu' ), 693 715 694 716 // WordPress strings … … 702 724 $mce_locale = self::$mce_locale; 703 725 726 /** 727 * Filter translated strings prepared for TinyMCE. 728 * 729 * @since 3.9.0 730 * 731 * @param array $mce_translation Key/value pairs of strings. 732 * @param string $mce_locale Locale. 733 */ 704 734 $mce_translation = apply_filters( 'wp_mce_translation', $mce_translation, $mce_locale ); 705 735 706 736 foreach ( $mce_translation as $key => $value ) { 707 if ( strpos( $value, '&' ) !== false )737 if ( false !== strpos( $value, '&' ) ) { 708 738 $mce_translation[$key] = html_entity_decode( $value, ENT_QUOTES, 'UTF-8' ); 739 } 709 740 } 710 741
Note: See TracChangeset
for help on using the changeset viewer.