aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/Config.hs4
-rw-r--r--src/server/Model/Message/Key.hs1
-rw-r--r--src/server/Model/Message/Translations.hs5
3 files changed, 2 insertions, 8 deletions
diff --git a/src/server/Config.hs b/src/server/Config.hs
index deb2e68..bd7f325 100644
--- a/src/server/Config.hs
+++ b/src/server/Config.hs
@@ -19,7 +19,7 @@ data Config = Config
{ hostname :: Text
, port :: Int
, signInExpirationMn :: Int
- , currency :: Char
+ , currency :: Text
} deriving (Read, Eq, Show)
getConfig :: FilePath -> IO (Either Text Config)
@@ -30,5 +30,5 @@ getConfig filePath =
(T.pack <$> get cp "DEFAULT" "hostname") <*>
(get cp "DEFAULT" "port") <*>
(get cp "DEFAULT" "sign-in-expiration-mn") <*>
- (get cp "DEFAULT" "currency")
+ (T.pack <$> get cp "DEFAULT" "currency")
)
diff --git a/src/server/Model/Message/Key.hs b/src/server/Model/Message/Key.hs
index c4ff738..e9f8ef6 100644
--- a/src/server/Model/Message/Key.hs
+++ b/src/server/Model/Message/Key.hs
@@ -53,7 +53,6 @@ data Key =
| Add
| PaymentNotDeleted
- | MoneySymbol
| Punctual
| Monthly
| SingularMonthlyCount
diff --git a/src/server/Model/Message/Translations.hs b/src/server/Model/Message/Translations.hs
index f34cbd2..a2e9a30 100644
--- a/src/server/Model/Message/Translations.hs
+++ b/src/server/Model/Message/Translations.hs
@@ -220,11 +220,6 @@ m l PaymentNotDeleted =
English -> "The payment could not have been deleted."
French -> "Le paiement n'a pas pu être supprimé."
-m l MoneySymbol =
- case l of
- English -> "$"
- French -> "€"
-
m l Punctual =
case l of
English -> "Punctual"