0 | module CyBy.Draw.I18n.EN
 1 |
 2 | import Web.Async.I18n.EN
 3 | import public CyBy.Draw.I18n
 4 |
 5 | %default total
 6 |
 7 | parameters {auto log : Logger JS}
 8 |   export
 9 |   DrawLocal where
10 |     abbreviations = "--abbreviations--"
11 |     angle         = "Angle"
12 |     atomType      = "Type"
13 |     benzene       = "benzene"
14 |     boron         = "boron"
15 |     bromine       = "bromine"
16 |     carbon        = "carbon"
17 |     centerTxt     = "center"
18 |     charge        = "Charge"
19 |     chlorine      = "chlorine"
20 |     clearTxt      = "clear"
21 |     cyclobutane   = "cyclobutane"
22 |     cycloheptane  = "cycloheptane"
23 |     cyclohexane   = "cyclohexane"
24 |     cyclooctane   = "cyclooctane"
25 |     cyclopentane  = "cyclopentane"
26 |     cyclopropane  = "cyclopropane"
27 |     detailsTxt    = "Details"
28 |     doubleBond    = "double bond"
29 |     element       = "Element"
30 |     eraseTxt      = "erase"
31 |     fluorine      = "fluorine"
32 |     isotope       = "Isotope"
33 |     length        = "Length"
34 |     loadTxt       = "Load..."
35 |     mix           = "Mix"
36 |     nitrogen      = "nitrogen"
37 |     oxygen        = "oxygen"
38 |     phosphorous   = "phosphorous"
39 |     pse           = "PSE"
40 |     pseLong       = "periodic system"
41 |     redoTxt       = "redo"
42 |     saveTxt       = "Save..."
43 |     selectTxt     = "select"
44 |     setCharge     = "select charge"
45 |     setElement    = "select element"
46 |     setMass       = "select mass number"
47 |     singleBnd     = "single bond"
48 |     singleDown    = "single bond down"
49 |     singleEither  = "single bond up or down"
50 |     singleUp      = "single bond up"
51 |     sulfur        = "sulfur"
52 |     tripleBond    = "triple bond"
53 |     undoTxt       = "undo"
54 |     xcoord        = "x-Coord."
55 |     ycoord        = "y-Coord."
56 |     zoomInTxt     = "zoom in"
57 |     zoomOutTxt    = "zoom out"
58 |
59 |     copied        = info "structure copied to clipboard"
60 |     readErr x     = error "error when reading structure: \{x}"
61 |
62 |     logOpened p     = info "file opened: \{p}"
63 |     noMetadata p    = error "File \{p} does not contain any CyBy metadata. It might have been created or edited by another program."
64 |     wrongFileType p = error "unsupported file type: \{p}"
65 |
66 |
67 |     logDrawEvent x =
68 |       case x of
69 |         SelAbbr {}  => trace "DrawEvent: \{show x}"
70 |         SetTempl {} => trace "DrawEvent: \{show x}"
71 |         Load {}     => trace "DrawEvent: \{show x}"
72 |         Move {}     => trace "DrawEvent: \{show x}"
73 |         _           => debug "DrawEvent: \{show x}"
74 |
75 |