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