Index: lams_central/web/ckeditor/plugins/bootsnippets/lang/en.js =================================================================== diff -u -r98d80295ca2398cfef80d796b9581cbc399a4077 -r5515e3bfb7ae9899ae8d2b7a61dd8d48df99dee4 --- lams_central/web/ckeditor/plugins/bootsnippets/lang/en.js (.../en.js) (revision 98d80295ca2398cfef80d796b9581cbc399a4077) +++ lams_central/web/ckeditor/plugins/bootsnippets/lang/en.js (.../en.js) (revision 5515e3bfb7ae9899ae8d2b7a61dd8d48df99dee4) @@ -10,5 +10,33 @@ tableButton: 'Table Snippets', imageButton: 'Image Snippets', multimediaButton: 'Multimedia Snippets', - tabsButton: 'Tabs Snippets' + tabsButton: 'Tabs Snippets', + + textParagraphFullWidth: 'Paragraph (full width)', + textParagraphAndHeading: 'Paragraph and heading', + textTwoColumns: 'Two columns', + textThreeColumns: 'Three columns', + textStatement: 'Statement', + textNote: 'Note', + textQuote: 'Quote (center picture) paragraph above', + textTable: 'Table', + textPanel: 'Panel (heading and body)', + textPanelFooter: 'Panel (heading, body and footer)', + textJumbotron: 'Jumbotron with text', + + imageCenteredImage: 'Centered image', + imageImageFullWidth: 'Image full width', + imageImageAndText: 'Image and text', + imageTextOnImage: 'Text on image', + imageImageWithinPanel: 'Image within a panel', + imageCarousel: 'Carousel', + imageTwoColumnImages: 'Two column images', + imageThreeColumnImages: 'Three column images', + + multimediaVideo: 'Video', + multimediaVideoWithSideText: 'Video with the side text', + multimediaAudio: 'Audio', + + advancedScreenHeader: 'Screen header', + advancedTabs: 'Tabs' } ); Index: lams_central/web/ckeditor/plugins/bootsnippets/lang/es.js =================================================================== diff -u --- lams_central/web/ckeditor/plugins/bootsnippets/lang/es.js (revision 0) +++ lams_central/web/ckeditor/plugins/bootsnippets/lang/es.js (revision 5515e3bfb7ae9899ae8d2b7a61dd8d48df99dee4) @@ -0,0 +1,42 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'bootsnippets', 'es', { + emptyListMsg: '(No snippets defined)', + insertOption: 'Replace actual contents', + options: 'Snippet Options', + title: 'Content snippets', + tableButton: 'Table Snippets', + imageButton: 'Image Snippets', + multimediaButton: 'Multimedia Snippets', + tabsButton: 'Tabs Snippets', + + textParagraphFullWidth: 'Paragraph (full width)', + textParagraphAndHeading: 'Paragraph and heading', + textTwoColumns: 'Two columns', + textThreeColumns: 'Three columns', + textStatement: 'Statement', + textNote: 'Note', + textQuote: 'Quote (center picture) paragraph above', + textTable: 'Table', + textPanel: 'Panel (heading and body)', + textPanelFooter: 'Panel (heading, body and footer)', + textJumbotron: 'Jumbotron with text', + + imageCenteredImage: 'Centered image', + imageImageFullWidth: 'Image full width', + imageImageAndText: 'Image and text', + imageTextOnImage: 'Text on image', + imageImageWithinPanel: 'Image within a panel', + imageCarousel: 'Carousel', + imageTwoColumnImages: 'Two column images', + imageThreeColumnImages: 'Three column images', + + multimediaVideo: 'Video', + multimediaVideoWithSideText: 'Video with the side text', + multimediaAudio: 'Audio', + + advancedScreenHeader: 'Screen header', + advancedTabs: 'Tabs' +} ); Index: lams_central/web/ckeditor/plugins/bootsnippets/lang/gr.js =================================================================== diff -u --- lams_central/web/ckeditor/plugins/bootsnippets/lang/gr.js (revision 0) +++ lams_central/web/ckeditor/plugins/bootsnippets/lang/gr.js (revision 5515e3bfb7ae9899ae8d2b7a61dd8d48df99dee4) @@ -0,0 +1,42 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'bootsnippets', 'gr', { + emptyListMsg: '(No snippets defined)', + insertOption: 'Replace actual contents', + options: 'Snippet Options', + title: 'Content snippets', + tableButton: 'Table Snippets', + imageButton: 'Image Snippets', + multimediaButton: 'Multimedia Snippets', + tabsButton: 'Tabs Snippets', + + textParagraphFullWidth: 'Paragraph (full width)', + textParagraphAndHeading: 'Paragraph and heading', + textTwoColumns: 'Two columns', + textThreeColumns: 'Three columns', + textStatement: 'Statement', + textNote: 'Note', + textQuote: 'Quote (center picture) paragraph above', + textTable: 'Table', + textPanel: 'Panel (heading and body)', + textPanelFooter: 'Panel (heading, body and footer)', + textJumbotron: 'Jumbotron with text', + + imageCenteredImage: 'Centered image', + imageImageFullWidth: 'Image full width', + imageImageAndText: 'Image and text', + imageTextOnImage: 'Text on image', + imageImageWithinPanel: 'Image within a panel', + imageCarousel: 'Carousel', + imageTwoColumnImages: 'Two column images', + imageThreeColumnImages: 'Three column images', + + multimediaVideo: 'Video', + multimediaVideoWithSideText: 'Video with the side text', + multimediaAudio: 'Audio', + + advancedScreenHeader: 'Screen header', + advancedTabs: 'Tabs' +} ); Index: lams_central/web/ckeditor/plugins/bootsnippets/lang/ru.js =================================================================== diff -u --- lams_central/web/ckeditor/plugins/bootsnippets/lang/ru.js (revision 0) +++ lams_central/web/ckeditor/plugins/bootsnippets/lang/ru.js (revision 5515e3bfb7ae9899ae8d2b7a61dd8d48df99dee4) @@ -0,0 +1,42 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'bootsnippets', 'ru', { + emptyListMsg: '(не определено ни одного фрагмента)', + insertOption: 'Заменить текущее содержимое', + options: 'Параметры шаблона', + title: 'Фрагменты кода Bootstrap', + tableButton: 'Примеры с таблицами', + imageButton: 'Примеры с картинками', + multimediaButton: 'Мультимедийные примеры', + tabsButton: 'Примеры со вкладками', + + textParagraphFullWidth: 'Параграф (на весь экран)', + textParagraphAndHeading: 'Параграф с заголовком', + textTwoColumns: 'Две колонки', + textThreeColumns: 'Три колонки', + textStatement: 'Утверждение', + textNote: 'Запись', + textQuote: 'Цитата', + textTable: 'Таблица', + textPanel: 'Панель (с заголовком)', + textPanelFooter: 'Панель (с заголовком и нижним колонтитулом)', + textJumbotron: 'Текст на большом экране', + + imageCenteredImage: 'Центрированное изображение', + imageImageFullWidth: 'Изображение на весь экран', + imageImageAndText: 'Изображение с текстом', + imageTextOnImage: 'Текст на изображении', + imageImageWithinPanel: 'Изображении внутри панели', + imageCarousel: 'Карусель', + imageTwoColumnImages: 'Изображения в две колонки', + imageThreeColumnImages: 'Изображения в три колонки', + + multimediaVideo: 'Видео', + multimediaVideoWithSideText: 'Видео с текстом сбоку', + multimediaAudio: 'Аудио', + + advancedScreenHeader: 'Заголовок страницы', + advancedTabs: 'Вкладки' +} ); Index: lams_central/web/ckeditor/plugins/bootsnippets/plugin.js =================================================================== diff -u -ra5ab9e74912e3c2f0258c243232bd98cf65dd0f8 -r5515e3bfb7ae9899ae8d2b7a61dd8d48df99dee4 --- lams_central/web/ckeditor/plugins/bootsnippets/plugin.js (.../plugin.js) (revision a5ab9e74912e3c2f0258c243232bd98cf65dd0f8) +++ lams_central/web/ckeditor/plugins/bootsnippets/plugin.js (.../plugin.js) (revision 5515e3bfb7ae9899ae8d2b7a61dd8d48df99dee4) @@ -8,7 +8,7 @@ //add all commands, dialogs and buttons specified in ckconfig_custom.js CKEDITOR.plugins.add( 'bootsnippets', { requires: 'dialog', - lang: 'en', + lang: 'en,es,gr,ru', hidpi: false, init: function( editor ) { var snippetNames = (CKEDITOR.config.bootsnippets).split( ',' ); @@ -83,23 +83,25 @@ for ( var j = 0; j < count; j++ ) { var snippet = snippets[ j ], - item = createSnippetItem( snippet, imagesPath ); + item = createSnippetItem( snippet, editor, imagesPath ); item.setAttribute( 'aria-posinset', j + 1 ); item.setAttribute( 'aria-setsize', count ); container.append( item ); } } } - function createSnippetItem( snippet, imagesPath ) { + function createSnippetItem( snippet, editor, imagesPath ) { var item = CKEDITOR.dom.element.createFromHtml( '' + '
' + '
' ); + + var lang = editor.lang.bootsnippets, + title = lang[snippet.title] ? lang[snippet.title] : snippet.title; // Build the inner HTML of our new item DIV. var html = ''; - - html += '