summary refs log tree commit diff
path: root/lib/translation.fnl
blob: e50a836db2ae6730ed8ecb6ed6221367ccc1851d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(local tp
  {:death ["ike a" "sina moli lon musi nanpa %s\n\nnena Z li open e musi sin"]
   :win ["pona a" "sina pini e musi nanpa %s\n\nnena Z li tawa musi kama!"]
   :pause ["awen" "nena Z li open sin e musi"]
   :start "o musi"
   :menu ["soko"
          "tan soweli nata\nhttps://equa.space/\n\nmusi la\nnena ←↑→ li tawa e tomo\nnena Z li pana e kiwen seli"]
   :number (fn [x] (string.gsub
                     (.. (string.rep "ale " (math.floor (/ x 100)))
                         (string.rep "mute " (math.floor (/ (% x 100) 20)))
                         (string.rep "luka " (math.floor (/ (% x 100) 5)))
                         (. [(if (= x 0) "ala" "") "wan" "tu" "tu wan" "tu tu"]
                            (+ 1 (% x 5))))
                     "(.-)%s*$"
                     "%1"))})


(local en
  {:death ["ike a" "you died on level %s\n\npress Z to restart"]
   :win ["pona a" "you beat level %s\n\npress Z to advance!"]
   :pause ["pause" "press Z to continue"]
   :start "play"
   :menu ["soko"
          "by soweli nata\nhttps://equa.space/\n\ncontrols\nhold ←↑→ to move\npress Z to fire"]
   :number tostring})

{: en : tp :text tp}