Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It is possible. I've tested it at least for my own localization strings, using helpers <em>geti18nstring()</em> and <em>set18nstring()</em> handling tinymce.i18n property.</p> <p>BTW, Here is the 'full' documentation <a href="http://www.tinymce.com/wiki.php/API3:property.tinymce.i18n" rel="nofollow">http://www.tinymce.com/wiki.php/API3:property.tinymce.i18n</a> of property. :) The rest of snippet is done using well-known agile pattern 'trust-the-source-Luke'.</p> <pre><code>// folder: plugins/mycustomtinymceplugin // // file: ./langs/en_dlg.js tinyMCE.addI18n('en.mycustomtinymceplugin_dlg',{charts:"Some charts"}); // file: mycustomtinymceplugin.html &lt;-- opened by ./editor_plugin.js#init ed.windowManager.open({file : url + '/mycustomtinymceplugin.html' &lt;script&gt; function geti18nstring( id ) { return tinymce.i18n[ tinymce.activeEditor.settings.language + '.mycustomtinymceplugin_dlg.' + id ]; } function seti18nstring( id, i18nstring ) { //just for curiosity if you wan't to modify something in a plugin which is killed after modification if( geti18nString( id ) == i18nstring ) { alert( 'id['+id+'] was replaced already with [' + i18nstring +'].' ); } else { tinymce.i18n[ tinymce.activeEditor.settings.language + '.mycustomtinymceplugin_dlg.' + id ] = i18nstring; } } function dostuffonpluginstart() { //to get localized strings var charts_text = geti18nstring('charts'); $('#chartlist').append( charts_text ); ... //to manipulate localized strings seti18nstring( 'charts', 'karamba' ); charts_text = geti18nstring('charts'); $('#chartlist').append( charts_text ) } &lt;/script&gt; ... &lt;div id"chartlist"&gt;&lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload