File: /var/www/concertium.com/public_html/wp-content/plugins/category-posts/tinymce-translations.php
<?php
/**
* Register translations.
*
* @package categoryposts.
*
* @since 4.7
*/
namespace categoryPosts;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( '_WP_Editors' ) ) {
require( ABSPATH . WPINC . '/class-wp-editor.php' );
}
/**
* Register translations for the tinymce shortcode creation button and dialog.
*
* @since 4.7
*/
function tinymce_translation() {
$strings = array(
'name' => __( 'Name', 'category-posts' ),
'tooltip' => __( 'Insert Category Posts shortcode', 'category-posts' ),
'title' => __( 'Category Posts Insert Shortcode', 'category-posts' ),
'hide_message' => __( 'Hide the button', 'category-posts' ),
'profiile_url' => get_edit_user_link() . '#' . __NAMESPACE__,
);
$locale = \_WP_Editors::$mce_locale;
$translated = 'tinyMCE.addI18n("' . $locale . '.category-posts", ' . wp_json_encode( $strings ) . ");\n";
return $translated;
}
$strings = tinymce_translation();