| Total Complexity | 3 |
| Complexity/F | 1.5 |
| Lines of Code | 53 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /** |
||
| 4 | (function (factory) { |
||
| 5 | if (typeof define === 'function' && define.amd) { |
||
|
|
|||
| 6 | // AMD. Register as an anonymous module. |
||
| 7 | define('bootstrap.wysihtml5.ru-RU', ['jquery', 'bootstrap.wysihtml5'], factory); |
||
| 8 | } else { |
||
| 9 | // Browser globals |
||
| 10 | factory(jQuery); |
||
| 11 | } |
||
| 12 | }(function($){ |
||
| 13 | $.fn.wysihtml5.locale["ru-RU"] = { |
||
| 14 | font_styles: { |
||
| 15 | normal: "Обычный текст", |
||
| 16 | h1: "Заголовок 1", |
||
| 17 | h2: "Заголовок 2", |
||
| 18 | h3: "Заголовок 3" |
||
| 19 | }, |
||
| 20 | emphasis: { |
||
| 21 | bold: "Полужирный", |
||
| 22 | italic: "Курсив", |
||
| 23 | underline: "Подчёркнутый" |
||
| 24 | }, |
||
| 25 | lists: { |
||
| 26 | unordered: "Маркированный список", |
||
| 27 | ordered: "Нумерованный список", |
||
| 28 | outdent: "Уменьшить отступ", |
||
| 29 | indent: "Увеличить отступ" |
||
| 30 | }, |
||
| 31 | link: { |
||
| 32 | insert: "Вставить ссылку", |
||
| 33 | cancel: "Отмена" |
||
| 34 | }, |
||
| 35 | image: { |
||
| 36 | insert: "Вставить изображение", |
||
| 37 | cancel: "Отмена" |
||
| 38 | }, |
||
| 39 | html: { |
||
| 40 | edit: "HTML код" |
||
| 41 | }, |
||
| 42 | colours: { |
||
| 43 | black: "Чёрный", |
||
| 44 | silver: "Серебряный", |
||
| 45 | gray: "Серый", |
||
| 46 | maroon: "Коричневый", |
||
| 47 | red: "Красный", |
||
| 48 | purple: "Фиолетовый", |
||
| 49 | green: "Зелёный", |
||
| 50 | olive: "Оливковый", |
||
| 51 | navy: "Тёмно-синий", |
||
| 52 | blue: "Синий", |
||
| 53 | orange: "Оранжевый" |
||
| 54 | } |
||
| 55 | }; |
||
| 56 | })); |
||
| 57 | |||
| 58 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.