ap_tinymce_translations()

Description #

Tinymce translations.

Changelog #

VersionDescription
4.1.5Introduced.

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;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment