summary refs log tree commit diff
path: root/lib/translation.fnl
diff options
context:
space:
mode:
authorequa <equaa@protonmail.com>2021-04-20 22:13:13 -0500
committerequa <equaa@protonmail.com>2021-04-20 22:13:13 -0500
commit5c4b1aba561c206744b3354478069677b3947e67 (patch)
tree70441a4c663e37ba9f67071cc3e4085075d69884 /lib/translation.fnl
parentc9b60c569f2ad015f043667c44ff9f43d50ec2e5 (diff)
death -> other paused/non-game screens
Diffstat (limited to 'lib/translation.fnl')
-rw-r--r--lib/translation.fnl25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/translation.fnl b/lib/translation.fnl
new file mode 100644
index 0000000..ee19879
--- /dev/null
+++ b/lib/translation.fnl
@@ -0,0 +1,25 @@
+(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"]
+   :menu ["soko"
+          "tan soweli nata\nhttps://equa.space/\n\nnena Z li open e musi\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"]
+   :menu ["soko"
+          "by soweli nata\nhttps://equa.space/\n\npress Z to start\n\ncontrols\nhold ←↑→ to move\npress Z to fire"]
+   :number tostring})
+
+{: en : tp :text tp}