-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtinymce-translations.php
27 lines (19 loc) · 977 Bytes
/
tinymce-translations.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
defined('ABSPATH') or die("No humans here please!"); //Block direct access to this php file
if ( ! class_exists( '_WP_Editors' ) )
require( ABSPATH . WPINC . '/class-wp-editor.php' );
function qlik_sense_tinymce_translation() {
$strings = array(
'insertSense' => esc_attr__('Insert Qlik Sense...', 'qlik-sense'),
'insertObject' => esc_attr__('Insert Object', 'qlik-sense'),
'uniqueDivId' => esc_attr__('Unique Div ID', 'qlik-sense'),
'senseObjId' => esc_attr__('Sense Object ID', 'qlik-sense'),
'insertClearSelections' => esc_attr__('Insert Clear Selections', 'qlik-sense'),
'insertSelectionsToolbar' => esc_attr__('Insert Selections Toolbar', 'qlik-sense'),
);
$locale = _WP_Editors::$mce_locale;
$translated = 'tinyMCE.addI18n("' . $locale . '.qlik_sense_buttons", ' . json_encode( $strings ) . ");\n";
return $translated;
}
$strings = qlik_sense_tinymce_translation();
?>