Passed
Push — master ( 1d2121...eed8cd )
by Yoshihiro
02:50
created

i18n.initialize()   A

Complexity

Conditions 1

Size

Total Lines 13
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 1
dl 0
loc 13
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
#!/usr/bin/env python3
2 1
from . import llize
3
4
5 1
def initialize(locate_var):
6
    """多言語化の初期処理.
7
8
    ・多言語化の初期処理をする。
9
10
    Args:
11
        locale_var (str): ロケーション
12
13
    Returns:
14
        instance: 多言語化のクラスのインスタンス
15
    """
16 1
    instance = llize.Localization(locate_var, NEDITOR)
17 1
    return instance
18
19
20 1
NEDITOR = '''{
21
    "Novel Editor" : "",
22
    "Character" : "",
23
    "Occupation" : "" ,
24
    "Space" : "" ,
25
    "Event" : "" ,
26
    "Image" : "" ,
27
    "Novel" : "",
28
    "Newfile" : "" ,
29
    "Open" : "" ,
30
    "Save" : "" ,
31
    "Save as" : "" ,
32
    "Close" : "" ,
33
    "File" : "" ,
34
    "Redo" : "" ,
35
    "Undo" : "" ,
36
    "Cut" : "" ,
37
    "Copy" : "" ,
38
    "Paste" : "" ,
39
    "Find" : "" ,
40
    "Replacement" : "" ,
41
    "Edit" : "" ,
42
    "Ruby" : "" ,
43
    "Count charactors" : "" ,
44
    "Meaning of letters" : "" ,
45
    "Read aloud" : "" ,
46
    "Sentence structure" : "" ,
47
    "Font size" : "" ,
48
    "Open [Become a Novelist]" : "" ,
49
    "Processing" : "" ,
50
    "Increase item" : "" ,
51
    "Delete item" : "" ,
52
    "Rename item" : "" ,
53
    "Item" : "" ,
54
    "Help" : "" ,
55
    "Version" : "" ,
56
    "Call name" : "" ,
57
    "Name" : "" ,
58
    "Sex" : "" ,
59
    "Man" : "" ,
60
    "Woman" : "" ,
61
    "Other" : "" ,
62
    "Portrait" : "" ,
63
    "Birthday" : "" ,
64
    "Insert" : "" ,
65
    "Delete" : "" ,
66
    "Biography" : "" ,
67
    "Double startup is not possible." : "" ,
68
    "Select and right click" : "" ,
69
    "Do you want to overwrite?" : "" ,
70
    "Do you want to discard the current edit and create a new one?" : "" ,
71
    "Can I quit?" : "" ,
72
    "Change" : "" ,
73
    "Rename {0}" : "" ,
74
    "Novel Editor/{0}/{1}" : "" ,
75
    "Delete {0} item?" : "" ,
76
    "Number of characters etc" : "" ,
77
    "Characters : {0} Lines : {1}\\n Manuscript papers : {2}" : "" ,
78
    "Meaning of [{0}]" : "" ,
79
    "Can't find." : "" ,
80
    "gif image" : "" ,
81
    "Cancel" : "" ,
82
    "Yahoo! Client ID" : "" ,
83
    "Yahoo! Client ID is not find.\\nRead Readme.pdf and set it again." : "" ,
84
    "Insert in {0}" : "" ,
85
    "Asc find" : "" ,
86
    "Stop" : "" ,
87
    "Resize" : "" ,
88
}'''
89