aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-08-12 11:37:29 +0200
committerJoris Guyonvarch2015-08-12 11:37:29 +0200
commitf8c5ce08352950f4e74f3c51aa16ef366a9de9c7 (patch)
tree51eede1c267da4c5927c6d4ccabbef6f63d6fd7a /src/server
parentd985e879e574c770453590791bc35352c2632d01 (diff)
Translating payment screen except dates
Diffstat (limited to 'src/server')
-rw-r--r--src/server/Model/Message/Key.hs10
-rw-r--r--src/server/Model/Message/Translations.hs24
2 files changed, 34 insertions, 0 deletions
diff --git a/src/server/Model/Message/Key.hs b/src/server/Model/Message/Key.hs
index 50486be..9b5c69e 100644
--- a/src/server/Model/Message/Key.hs
+++ b/src/server/Model/Message/Key.hs
@@ -40,4 +40,14 @@ data Key =
| Date
+ -- Validation
+
+ | CategoryRequired
+ | CostRequired
+ | CostMustBeNumber
+
+ -- Payments
+
+ | Add
+
deriving (Enum, Bounded, Show)
diff --git a/src/server/Model/Message/Translations.hs b/src/server/Model/Message/Translations.hs
index d680e6e..5a626ed 100644
--- a/src/server/Model/Message/Translations.hs
+++ b/src/server/Model/Message/Translations.hs
@@ -160,3 +160,27 @@ m l Date =
case l of
English -> "{2} {1}, {3}"
French -> "{1} {2} {3}"
+
+-- Validation
+
+m l CategoryRequired =
+ case l of
+ English -> "The category is required."
+ French -> "La catégorie est requise."
+
+m l CostRequired =
+ case l of
+ English -> "The cost is required."
+ French -> "Le coût est requis."
+
+m l CostMustBeNumber =
+ case l of
+ English -> "The cost must be a number."
+ French -> "Le coût doit être un nombre."
+
+-- Payments
+
+m l Add =
+ case l of
+ English -> "Add"
+ French -> "Ajouter"