本文整理汇总了PHP中_WP_Editors::translation方法的典型用法代码示例。如果您正苦于以下问题:PHP _WP_Editors::translation方法的具体用法?PHP _WP_Editors::translation怎么用?PHP _WP_Editors::translation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类_WP_Editors
的用法示例。
在下文中一共展示了_WP_Editors::translation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_translation
private static function get_translation()
{
if (empty(self::$translation)) {
self::$translation = array('New document' => __('New document'), 'Formats' => _x('Formats', 'TinyMCE'), 'Headings' => _x('Headings', 'TinyMCE'), 'Heading 1' => array(__('Heading 1'), 'access1'), 'Heading 2' => array(__('Heading 2'), 'access2'), 'Heading 3' => array(__('Heading 3'), 'access3'), 'Heading 4' => array(__('Heading 4'), 'access4'), 'Heading 5' => array(__('Heading 5'), 'access5'), 'Heading 6' => array(__('Heading 6'), 'access6'), 'Blocks' => _x('Blocks', 'TinyMCE'), 'Paragraph' => array(__('Paragraph'), 'access7'), 'Blockquote' => array(__('Blockquote'), 'accessQ'), 'Div' => _x('Div', 'HTML tag'), 'Pre' => _x('Pre', 'HTML tag'), 'Preformatted' => _x('Preformatted', 'HTML tag'), 'Address' => _x('Address', 'HTML tag'), 'Inline' => _x('Inline', 'HTML elements'), 'Underline' => array(__('Underline'), 'metaU'), 'Strikethrough' => array(__('Strikethrough'), 'accessD'), 'Subscript' => __('Subscript'), 'Superscript' => __('Superscript'), 'Clear formatting' => __('Clear formatting'), 'Bold' => array(__('Bold'), 'metaB'), 'Italic' => array(__('Italic'), 'metaI'), 'Code' => array(__('Code'), 'accessX'), 'Source code' => __('Source code'), 'Font Family' => __('Font Family'), 'Font Sizes' => __('Font Sizes'), 'Align center' => array(__('Align center'), 'accessC'), 'Align right' => array(__('Align right'), 'accessR'), 'Align left' => array(__('Align left'), 'accessL'), 'Justify' => array(__('Justify'), 'accessJ'), 'Increase indent' => __('Increase indent'), 'Decrease indent' => __('Decrease indent'), 'Cut' => array(__('Cut'), 'metaX'), 'Copy' => array(__('Copy'), 'metaC'), 'Paste' => array(__('Paste'), 'metaV'), 'Select all' => array(__('Select all'), 'metaA'), 'Undo' => array(__('Undo'), 'metaZ'), 'Redo' => array(__('Redo'), 'metaY'), 'Ok' => __('OK'), 'Cancel' => __('Cancel'), 'Close' => __('Close'), 'Visual aids' => __('Visual aids'), 'Bullet list' => array(__('Bulleted list'), 'accessU'), 'Numbered list' => array(__('Numbered list'), 'accessO'), 'Square' => _x('Square', 'list style'), 'Default' => _x('Default', 'list style'), 'Circle' => _x('Circle', 'list style'), 'Disc' => _x('Disc', 'list style'), 'Lower Greek' => _x('Lower Greek', 'list style'), 'Lower Alpha' => _x('Lower Alpha', 'list style'), 'Upper Alpha' => _x('Upper Alpha', 'list style'), 'Upper Roman' => _x('Upper Roman', 'list style'), 'Lower Roman' => _x('Lower Roman', 'list style'), 'Name' => _x('Name', 'Name of link anchor (TinyMCE)'), 'Anchor' => _x('Anchor', 'Link anchor (TinyMCE)'), 'Anchors' => _x('Anchors', 'Link anchors (TinyMCE)'), 'Document properties' => __('Document properties'), 'Robots' => __('Robots'), 'Title' => __('Title'), 'Keywords' => __('Keywords'), 'Encoding' => __('Encoding'), 'Description' => __('Description'), 'Author' => __('Author'), 'Insert/edit image' => array(__('Insert/edit image'), 'accessM'), 'General' => __('General'), 'Advanced' => __('Advanced'), 'Source' => __('Source'), 'Border' => __('Border'), 'Constrain proportions' => __('Constrain proportions'), 'Vertical space' => __('Vertical space'), 'Image description' => __('Image description'), 'Style' => __('Style'), 'Dimensions' => __('Dimensions'), 'Insert image' => __('Insert image'), 'Insert date/time' => __('Insert date/time'), 'Insert/edit video' => __('Insert/edit video'), 'Poster' => __('Poster'), 'Alternative source' => __('Alternative source'), 'Paste your embed code below:' => __('Paste your embed code below:'), 'Insert video' => __('Insert video'), 'Embed' => __('Embed'), 'Special character' => __('Special character'), 'Right to left' => _x('Right to left', 'editor button'), 'Left to right' => _x('Left to right', 'editor button'), 'Emoticons' => __('Emoticons'), 'Nonbreaking space' => __('Nonbreaking space'), 'Page break' => __('Page break'), 'Paste as text' => __('Paste as text'), 'Preview' => __('Preview'), 'Print' => __('Print'), 'Save' => __('Save'), 'Fullscreen' => __('Fullscreen'), 'Horizontal line' => __('Horizontal line'), 'Horizontal space' => __('Horizontal space'), 'Restore last draft' => __('Restore last draft'), 'Insert/edit link' => array(__('Insert/edit link'), 'metaK'), 'Remove link' => array(__('Remove link'), 'accessS'), 'Color' => __('Color'), 'Custom color' => __('Custom color'), 'Custom...' => _x('Custom...', 'label for custom color'), 'No color' => __('No color'), 'Could not find the specified string.' => __('Could not find the specified string.'), 'Replace' => _x('Replace', 'find/replace'), 'Next' => _x('Next', 'find/replace'), 'Prev' => _x('Prev', 'find/replace'), 'Whole words' => _x('Whole words', 'find/replace'), 'Find and replace' => __('Find and replace'), 'Replace with' => _x('Replace with', 'find/replace'), 'Find' => _x('Find', 'find/replace'), 'Replace all' => _x('Replace all', 'find/replace'), 'Match case' => __('Match case'), 'Spellcheck' => __('Check Spelling'), 'Finish' => _x('Finish', 'spellcheck'), 'Ignore all' => _x('Ignore all', 'spellcheck'), 'Ignore' => _x('Ignore', 'spellcheck'), 'Add to Dictionary' => __('Add to Dictionary'), 'Insert table' => __('Insert table'), 'Delete table' => __('Delete table'), 'Table properties' => __('Table properties'), 'Row properties' => __('Table row properties'), 'Cell properties' => __('Table cell properties'), 'Border color' => __('Border color'), 'Row' => __('Row'), 'Rows' => __('Rows'), 'Column' => _x('Column', 'table column'), 'Cols' => _x('Cols', 'table columns'), 'Cell' => _x('Cell', 'table cell'), 'Header cell' => __('Header cell'), 'Header' => _x('Header', 'table header'), 'Body' => _x('Body', 'table body'), 'Footer' => _x('Footer', 'table footer'), 'Insert row before' => __('Insert row before'), 'Insert row after' => __('Insert row after'), 'Insert column before' => __('Insert column before'), 'Insert column after' => __('Insert column after'), 'Paste row before' => __('Paste table row before'), 'Paste row after' => __('Paste table row after'), 'Delete row' => __('Delete row'), 'Delete column' => __('Delete column'), 'Cut row' => __('Cut table row'), 'Copy row' => __('Copy table row'), 'Merge cells' => __('Merge table cells'), 'Split cell' => __('Split table cell'), 'Height' => __('Height'), 'Width' => __('Width'), 'Caption' => __('Caption'), 'Alignment' => __('Alignment'), 'H Align' => _x('H Align', 'horizontal table cell alignment'), 'Left' => __('Left'), 'Center' => __('Center'), 'Right' => __('Right'), 'None' => _x('None', 'table cell alignment attribute'), 'V Align' => _x('V Align', 'vertical table cell alignment'), 'Top' => __('Top'), 'Middle' => __('Middle'), 'Bottom' => __('Bottom'), 'Row group' => __('Row group'), 'Column group' => __('Column group'), 'Row type' => __('Row type'), 'Cell type' => __('Cell type'), 'Cell padding' => __('Cell padding'), 'Cell spacing' => __('Cell spacing'), 'Scope' => _x('Scope', 'table cell scope attribute'), 'Insert template' => _x('Insert template', 'TinyMCE'), 'Templates' => _x('Templates', 'TinyMCE'), 'Background color' => __('Background color'), 'Text color' => __('Text color'), 'Show blocks' => _x('Show blocks', 'editor button'), 'Show invisible characters' => __('Show invisible characters'), 'Words: {0}' => sprintf(__('Words: %s'), '{0}'), '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.') . "\n\n" . __('If you’re looking to paste rich content from Microsoft Word, try turning this option off. The editor will clean up text pasted from Word automatically.'), 'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help' => __('Rich Text Area. Press Alt-Shift-H for help.'), 'Rich Text Area. Press Control-Option-H for help.' => __('Rich Text Area. Press Control-Option-H for help.'), '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.'), '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 keyboard shortcuts or your browser’s edit menu instead.'), 'Insert' => _x('Insert', 'TinyMCE menu'), 'File' => _x('File', 'TinyMCE menu'), 'Edit' => _x('Edit', 'TinyMCE menu'), 'Tools' => _x('Tools', 'TinyMCE menu'), 'View' => _x('View', 'TinyMCE menu'), 'Table' => _x('Table', 'TinyMCE menu'), 'Format' => _x('Format', 'TinyMCE menu'), 'Toolbar Toggle' => array(__('Toolbar Toggle'), 'accessZ'), 'Insert Read More tag' => array(__('Insert Read More tag'), 'accessT'), 'Insert Page Break tag' => array(__('Insert Page Break tag'), 'accessP'), 'Read more...' => __('Read more...'), 'Distraction-free writing mode' => array(__('Distraction-free writing mode'), 'accessW'), 'No alignment' => __('No alignment'), 'Remove' => __('Remove'), 'Edit ' => __('Edit'), 'Paste URL or type to search' => __('Paste URL or type to search'), 'Apply' => __('Apply'), 'Link options' => __('Link options'), 'Keyboard Shortcuts' => array(__('Keyboard Shortcuts'), 'accessH'), 'Default shortcuts,' => __('Default shortcuts,'), 'Additional shortcuts,' => __('Additional shortcuts,'), 'Focus shortcuts:' => __('Focus shortcuts:'), 'Inline toolbar (when an image, link or preview is selected)' => __('Inline toolbar (when an image, link or preview is selected)'), 'Editor menu (when enabled)' => __('Editor menu (when enabled)'), 'Editor toolbar' => __('Editor toolbar'), 'Elements path' => __('Elements path'), 'Ctrl + Alt + letter:' => __('Ctrl + Alt + letter:'), 'Shift + Alt + letter:' => __('Shift + Alt + letter:'), 'Cmd + letter:' => __('Cmd + letter:'), 'Ctrl + letter:' => __('Ctrl + letter:'), 'Letter' => __('Letter'), 'Action' => __('Action'), 'Warning: the link has been inserted but may have errors. Please test it.' => __('Warning: the link has been inserted but may have errors. Please test it.'), 'To move focus to other buttons use Tab or the arrow keys. To return focus to the editor press Escape or use one of the buttons.' => __('To move focus to other buttons use Tab or the arrow keys. To return focus to the editor press Escape or use one of the buttons.'), 'When starting a new paragraph with one of these formatting shortcuts followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.' => __('When starting a new paragraph with one of these formatting shortcuts followed by a space, the formatting will be applied automatically. Press Backspace or Escape to undo.'), 'The following formatting shortcuts are replaced when pressing Enter. Press Escape or the Undo button to undo.' => __('The following formatting shortcuts are replaced when pressing Enter. Press Escape or the Undo button to undo.'), 'The next group of formatting shortcuts are applied as you type or when you insert them around plain text in the same paragraph. Press Escape or the Undo button to undo.' => __('The next group of formatting shortcuts are applied as you type or when you insert them around plain text in the same paragraph. Press Escape or the Undo button to undo.'));
}
/**
* Link plugin (not included):
* Insert link
* Target
* New window
* Text to display
* The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?
* The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?
* Url
*/
return self::$translation;
}