-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwp-wiki-tooltip-mce-langs.php
34 lines (28 loc) · 1.89 KB
/
wp-wiki-tooltip-mce-langs.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
28
29
30
31
32
33
34
<?php
if( ! defined( 'ABSPATH' ) )
exit;
if( ! class_exists( '_WP_Editors' ) )
require( ABSPATH . WPINC . '/class-wp-editor.php' );
function wp_wiki_tooltip_mce_translation() {
$strings = array(
'title' => _x( 'WP Wiki Tooltip', 'editor popup', 'wp-wiki-tooltip' ),
'link_label' => _x( 'Link text', 'editor popup', 'wp-wiki-tooltip' ),
'link_tooltip' => _x( 'Set the text that will be the link to the Wiki page.', 'editor popup', 'wp-wiki-tooltip' ),
'title_label' => _x( 'Different Wiki page title', 'editor popup', 'wp-wiki-tooltip' ),
'title_tooltip' => _x( 'Enter the title of the requested Wiki page if it differs from the selected text.', 'editor popup', 'wp-wiki-tooltip' ),
'section_label' => _x( 'Section title', 'editor popup', 'wp-wiki-tooltip' ),
'section_tooltip' => _x( 'Enter the title (anchor) of the requested section in Wiki page.', 'editor popup', 'wp-wiki-tooltip' ),
'base_standard' => _x( 'Standard base', 'editor popup', 'wp-wiki-tooltip' ),
'base_label' => _x( 'Wiki base', 'editor popup', 'wp-wiki-tooltip' ),
'base_tooltip' => _x( 'Select one of the defined Wiki bases. Visit the settings page to create a new one.', 'editor popup', 'wp-wiki-tooltip' ),
'thumb_default' => _x( 'use plugin default value', 'editor popup', 'wp-wiki-tooltip' ),
'thumb_label' => _x( 'Show thumbnail', 'editor popup', 'wp-wiki-tooltip' ),
'thumb_tooltip' => _x( 'Show a thumbnail in the tooltip?', 'editor popup', 'wp-wiki-tooltip' ),
'thumb_yes' => _x( 'yes', 'editor popup', 'wp-wiki-tooltip' ),
'thumb_no' => _x( 'no', 'editor popup', 'wp-wiki-tooltip' )
);
$locale = _WP_Editors::$mce_locale;
$translated = 'tinyMCE.addI18n("' . $locale . '.wp_wiki_tooltip", ' . wp_json_encode( $strings ) . ");\n";
return $translated;
}
$strings = wp_wiki_tooltip_mce_translation();