Ok for everyone else’s benefit this is what is not explained in the documentation:
- You need to specify a textdomain anyway in your plugin (and together with it the path to the directory containing the language files, as usual).
-
The PHP file used for the translation should contain an array like:
$strings = array( 'string1' => esc_js( __('Your text 1', 'your_textdomain') ), 'string2' => esc_js( __('Your text 2', 'your_textdomain') ), );
-
Now you can use tools like Poedit to get the master file you will use for the translations.
-
The translations (.MO) must be included in the languages folder as per point 1 above.
Cheers!
Related Posts:
- tinymce modal and I18n strings methods
- How i can i add a split button or list box to the WordPress TinyMCE instance
- TinyMCE Anchor Button not showing
- Add Shortcode inline inside Gutenberg block
- Registering custom TinyMCE buttons, for admin area, to work with custom instances of wp_editor
- Using post ID in custom tinyMCE button
- Customising the WordPress TinyMce editor and it’s buttons
- Deprecated TinyMCE API call: windowManager.createInstance(..)
- wordpress 3.5 tinymce height
- How can I control the HTML output of my post?
- TinyMCE Plugin Parameter
- TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
- TinyMCE – Add button that changes direction of selected text
- Add a select a class dropdown in tinymce
- TinyMCE Visual Blocks plugin set Show blocks option for all users
- TinyMCE Editor change underline button behavior – u tag instead of span text-decoration underline
- TinyMCE custom plugin, how to make a word automatically selected based on current cursor position?
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- Customer Support: TinyMCE stopped working (on some computers)
- Front-end image upload from TinyME [closed]
- How to disable TinyMce’s Paste plugin from turning image URLs into embedded ?
- TinyMCE Advances is removing blanks (” “)
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- Get the More QuickTag button back
- prevent caching during tinymce custom button development
- Add custom classes to TinyMCE generated markup
- install tinymce plugin [closed]
- WordPress automatically adding ” “?
- Stop editor from removing tags and replacing them with nbsp
- Any alternate TinyMCE4 themes / subthemes?
- Possible to stop WordPress from adding p1, p2… classes to p tags in TinyMCE?
- Custom Tiny MCE button to bring up a custom php popup
- WordPress 3.2 has broken my TinyMCE code
- wp_editor disable after reaching character count limit
- Add unique class or ID information to tinyMCE
- Is it possible to create nested lists in the WYSIWYG editor?
- Add a button to tinyMCE editor on Custom Post Type
- Is there a way to prevent the Editor from modifying my HTML
- HTML5, WordPress and Tiny MCE issue – wrapping anchor tag around div results in funky output
- How to keep a textarea and stop tinymce?
- TinyMCE Editor Set Default Tab
- Adding TinyMCE custom buttons when using teeny_mce_before_init
- TinyMCE – Show Advanced Options (2nd Row) By Default
- Disabling TinyMCE keyboard shortcuts altogether
- Bridge WordPress Media API with custom tinyMCE plugin [closed]
- TinyMCE strips line breaks on mceAddControl
- Count Words using tinymce in the front-end
- TinyMCE – Add class to OL – selector doesn’t seem to get parent OL,UL, just LI’s (4.6.3)
- Should the WP post editor B (bold) button be inserting a tag instead of in HTML5?
- TinyMCE Keyup Function
- TinyMCE Editor removing and and putting instead
- Hide TinyMCE controls in TinyMCE 4 (WordPress 3.9)
- Add TinyMCE editor to windowManager textbox
- unwanted and tags in text editor
- WordPress editor strips out anchor tags when they appear on their own line
- Sortable WYSIWYG editor
- How can I enable a TINYMCE rich text editor in the admin interface?
- Limit Block format tags in WordPress wp_editor
- Custom settings page TinyMce: no formatting when echoing value of editor
- How to reset ‘Advance’ tab on table property?
- Add drop down in wordpress tiny mce editor pop up
- TinyMCE custom dialog with selectbox not working
- TinyMCE Advanced list type drop-down
- editor text cut off when using 2 spaces (after periods)
- Advanced tinyMCE insert link error [closed]
- Is it possible to disable the image alignment options in the post editor?
- How to prevent shortcode preview from breaking in tinymce editor?
- Keyup events in tinymce editor not working
- Tiny MCE doesn’t look anything like my blog
- Removing tags around tags
- TinyMCE – no auto formatting using the_editor()?
- How to force insertion in editor
- How to add custom tinymce plugin to new text widget
- TinyMCE not loading in IE8
- Sanitizing textarea for wp_insert_post with TinyMCE enabled or disabled
- Visual Editor is blank – 404 for plugin js
- Allowing style tag in TinyMCE editor
- remove WYSIWYG editor but keep media button
- Best Browser for Editing Posts
- clasic editor – article categories customization?
- Replace text by icon in TinyMCE toolbar
- TinyMCE Advanced Link Class List on the main editor
- TinyMCE function causes issue in AVADA theme
- Changing code with ( ) when author updates their post (TinyMCE)
- WordPress Editor without buttons
- How do I externalize JQuery from my Tinymce Modal Dialog’s html and Enqueue the JS File to see JQuery
- Adding microdata using Structured Data Markup Helper HTML
- `tinyMCE is not defined` after migrating site to server
- WordPress adding extra html coding to my data on saving
- Tinymce doesnt appear
- Revealing ‘code’ hidden button in TinyMCE4 and WordPress 3.9.x
- Edit body image after insertion in 3.9.1
- regEx wp core file
- Adding New Row of Custom TinyMCE
- Using TinyMCE fiddle for node filter to add id attribute to anchors
- Multiple TinyMCEs breaking Distraction Free Writing
- WordPress removes paragraphs. How to disable this behavior?
- WordPress and TinyMCE Advanced: Failed to load javascript
- WPAlchemy – Multiple TinyMCE editor blank (can’t add text)
- WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped