| 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.sv-SE', ['jquery', 'bootstrap.wysihtml5'], factory); |
||
| 8 | } else { |
||
| 9 | // Browser globals |
||
| 10 | factory(jQuery); |
||
| 11 | } |
||
| 12 | }(function($){ |
||
| 13 | $.fn.wysihtml5.locale["sv-SE"] = { |
||
| 14 | font_styles: { |
||
| 15 | normal: "Normal Text", |
||
| 16 | h1: "Rubrik 1", |
||
| 17 | h2: "Rubrik 2", |
||
| 18 | h3: "Rubrik 3" |
||
| 19 | }, |
||
| 20 | emphasis: { |
||
| 21 | bold: "Fet", |
||
| 22 | italic: "Kursiv", |
||
| 23 | underline: "Understruken" |
||
| 24 | }, |
||
| 25 | lists: { |
||
| 26 | unordered: "Osorterad lista", |
||
| 27 | ordered: "Sorterad lista", |
||
| 28 | outdent: "Minska indrag", |
||
| 29 | indent: "Öka indrag" |
||
| 30 | }, |
||
| 31 | link: { |
||
| 32 | insert: "Lägg till länk", |
||
| 33 | cancel: "Avbryt" |
||
| 34 | }, |
||
| 35 | image: { |
||
| 36 | insert: "Lägg till Bild", |
||
| 37 | cancel: "Avbryt" |
||
| 38 | }, |
||
| 39 | html: { |
||
| 40 | edit: "Redigera HTML" |
||
| 41 | }, |
||
| 42 | colours: { |
||
| 43 | black: "Svart", |
||
| 44 | silver: "Silver", |
||
| 45 | gray: "Grå", |
||
| 46 | maroon: "Kastaniebrun", |
||
| 47 | red: "Röd", |
||
| 48 | purple: "Lila", |
||
| 49 | green: "Grön", |
||
| 50 | olive: "Olivgrön", |
||
| 51 | navy: "Marinblå", |
||
| 52 | blue: "Blå", |
||
| 53 | orange: "Orange" |
||
| 54 | } |
||
| 55 | }; |
||
| 56 | })); |
||
| 57 |
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.