mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Localization for custom TinyMCE ssmacron module
This commit is contained in:
parent
94b739e847
commit
857afc4ee7
@ -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'
|
||||
});
|
||||
|
1
thirdparty/tinymce_ssmacron/lang/en.js
vendored
Normal file
1
thirdparty/tinymce_ssmacron/lang/en.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
tinyMCE.addI18n('en.ssmacron',{'insertmacron': 'Insert a Macron'});
|
1
thirdparty/tinymce_ssmacron/lang/mi_NZ.js
vendored
Normal file
1
thirdparty/tinymce_ssmacron/lang/mi_NZ.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
tinyMCE.addI18n('mi_NZ.ssmacron',{'insertmacron': 'T\u0101urua he tohut\u014D'});
|
Loading…
Reference in New Issue
Block a user