Localization for custom TinyMCE ssmacron module

This commit is contained in:
Ingo Schommer 2012-08-13 00:14:50 +02:00
parent 94b739e847
commit 857afc4ee7
3 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,13 @@
(function() {
var each = tinymce.each;
// TinyMCE will stop loading if it encounters non-existent external script file
// when included through tiny_mce_gzip.php. Only load the external lang package if it is available.
var availableLangs = ['en', 'mi_NZ'];
if(jQuery.inArray(tinymce.settings.language, availableLangs) != -1) {
tinymce.PluginManager.requireLangPack("ssmacron");
}
/**
* Load via:
* HtmlEditorConfig::get('cms')->enablePlugins(array('ssmacron', '../tinymce_ssmacron'))
@ -33,7 +40,7 @@
// Register buttons
ed.addButton('ssmacron', {
title : 'Insert a Macron',
title : t.editor.translate('insertmacron'),
cmd : 'mceInsertMacron',
image : url + '/img/macron.png'
});

View File

@ -0,0 +1 @@
tinyMCE.addI18n('en.ssmacron',{'insertmacron': 'Insert a Macron'});

View File

@ -0,0 +1 @@
tinyMCE.addI18n('mi_NZ.ssmacron',{'insertmacron': 'T\u0101urua he tohut\u014D'});