diff options
author | Joris Guyonvarch | 2015-08-10 23:30:31 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2015-08-10 23:30:31 +0200 |
commit | a3bab4f2a0cc8a6a95753dc91d8e862f40c80dcc (patch) | |
tree | 3f8083a4f35fa959fc1a80479432c3b78a55e09e /src/server/Message | |
parent | f860b59644e84b84b6d7b4af309161ca7c5499ee (diff) |
Embedding messages into the page
Diffstat (limited to 'src/server/Message')
-rw-r--r-- | src/server/Message/Key.hs | 20 | ||||
-rw-r--r-- | src/server/Message/Lang.hs | 5 | ||||
-rw-r--r-- | src/server/Message/Translations.hs | 76 |
3 files changed, 0 insertions, 101 deletions
diff --git a/src/server/Message/Key.hs b/src/server/Message/Key.hs deleted file mode 100644 index 407ba34..0000000 --- a/src/server/Message/Key.hs +++ /dev/null @@ -1,20 +0,0 @@ -module Message.Key - ( Key(..) - ) where - -data Key = - - January - | February - | March - | April - | May - | June - | July - | August - | September - | October - | November - | December - - | Date diff --git a/src/server/Message/Lang.hs b/src/server/Message/Lang.hs deleted file mode 100644 index e9519f1..0000000 --- a/src/server/Message/Lang.hs +++ /dev/null @@ -1,5 +0,0 @@ -module Message.Lang - ( Lang(..) - ) where - -data Lang = English | French diff --git a/src/server/Message/Translations.hs b/src/server/Message/Translations.hs deleted file mode 100644 index f16ffe1..0000000 --- a/src/server/Message/Translations.hs +++ /dev/null @@ -1,76 +0,0 @@ -module Message.Translations - ( getNonFormattedMessage - ) where - -import Message.Key -import Message.Lang - -getNonFormattedMessage :: Lang -> Key -> String -getNonFormattedMessage = m - -m :: Lang -> Key -> String - -m l January = - case l of - English -> "January" - French -> "Janvier" - -m l February = - case l of - English -> "February" - French -> "Février" - -m l March = - case l of - English -> "March" - French -> "Mars" - -m l April = - case l of - English -> "April" - French -> "Avril" - -m l May = - case l of - English -> "May" - French -> "Mai" - -m l June = - case l of - English -> "June" - French -> "Juin" - -m l July = - case l of - English -> "July" - French -> "Juillet" - -m l August = - case l of - English -> "August" - French -> "Août" - -m l September = - case l of - English -> "September" - French -> "Septembre" - -m l October = - case l of - English -> "October" - French -> "Octoble" - -m l November = - case l of - English -> "November" - French -> "Novembre" - -m l December = - case l of - English -> "December" - French -> "Décembre" - -m l Date = - case l of - English -> "{2} {1}, {3}" - French -> "{1} {2} {3}" |