ap_tinymce_translations()
Description #
Tinymce translations.
Source #
File: includes/mce-languages.php
function ap_tinymce_translations() { $strings = array( 'i18n_insert_image' => __( 'Insert media', 'anspress-question-answer' ), 'i18n_insert_media' => __( 'Insert Media (AnsPress)', 'anspress-question-answer' ), 'i18n_close' => __( 'Close', 'anspress-question-answer' ), 'i18n_select_file' => __( 'Select File', 'anspress-question-answer' ), 'i18n_browse_from_computer' => __( 'Browse from computer', 'anspress-question-answer' ), 'i18n_image_title' => __( 'Image title', 'anspress-question-answer' ), 'i18n_media_preview' => __( 'Media preview', 'anspress-question-answer' ), 'i18n_insert_code' => __( 'Insert code', 'anspress-question-answer' ), 'i18n_insert_codes' => __( 'Insert codes (AnsPress)', 'anspress-question-answer' ), 'i18n_insert' => __( 'Insert', 'anspress-question-answer' ), 'i18n_inline' => __( 'Inline?', 'anspress-question-answer' ), 'i18n_insert_your_code' => __( 'Insert your code.', 'anspress-question-answer' ), ); $locale = _WP_Editors::$mce_locale; $translated = 'tinyMCE.addI18n("' . $locale . '.anspress", ' . wp_json_encode( $strings ) . ");\n"; return $translated; }
Expand full source code Collapse full source code View on GitHub: includes/mce-languages.php:25
Add your comment