view/js/bootstrap-wysihtml5/locales/bootstrap-wysihtml5.zh-TW.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 57
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 45
c 0
b 0
f 0
dl 0
loc 57
rs 10
mnd 1
bc 1
fnc 2
bpm 0.5
cpm 1.5
noi 2
1
/**
2
 * Chinese Traditional translation for bootstrap-wysihtml5
3
 */
4
(function (factory) {
5
    if (typeof define === 'function' && define.amd) {
0 ignored issues
show
Bug introduced by
The variable define seems to be never declared. If this is a global, consider adding a /** global: define */ comment.

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.

Loading history...
6
        // AMD. Register as an anonymous module.
7
        define('bootstrap.wysihtml5.zh-TW', ['jquery', 'bootstrap.wysihtml5'], factory);
8
    } else {
9
        // Browser globals
10
        factory(jQuery);
11
    }
12
}(function($){
13
    $.fn.wysihtml5.locale["zh-TW"] = {
14
        font_styles: {
15
            normal: "內文",
16
            h1: "標題 1",
17
            h2: "標題 2",
18
            h3: "標題 3",
0 ignored issues
show
Unused Code Bug introduced by
The key h3 is used more than once in this object expression.
Loading history...
19
            h3: "標題 4",
20
            h3: "標題 5",
21
            h3: "標題 6"
22
        },
23
        emphasis: {
24
            bold: "粗體",
25
            italic: "斜體",
26
            underline: "底線"
27
        },
28
        lists: {
29
            unordered: "項目符號",
30
            ordered: "編號列表",
31
            outdent: "減少縮排",
32
            indent: "增加縮排"
33
        },
34
        link: {
35
            insert: "插入超連結",
36
            cancel: "取消",
37
            target: "新窗口打開鏈接"
38
        },
39
        image: {
40
            insert: "插入圖片連結",
41
            cancel: "取消"
42
        },
43
        html: {
44
            edit: "HTML原始碼"
45
        },
46
        colours: {
47
            black: "黑色",
48
            silver: "銀色",
49
            gray: "灰色",
50
            maroon: "栗色",
51
            red: "红色",
52
            purple: "紫色",
53
            green: "綠色",
54
            olive: "橄欖色",
55
            navy: "深藍色",
56
            blue: "藍色",
57
            orange: "橙色"
58
        }
59
    };
60
}));
61