From cef3d1322f1f5a30005be2f314a5196e698953d2 Mon Sep 17 00:00:00 2001 From: "Antoine \"Annwan\" Combet" Date: Mon, 5 Sep 2022 17:49:45 +0200 Subject: [PATCH] Translate to french --- app/Commands.hs | 30 +++++++++++++++--------------- app/Commands/EDT.hs | 14 +++++++------- app/Commands/Reminds.hs | 2 +- app/Main.hs | 4 ++-- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/app/Commands.hs b/app/Commands.hs index a158a87..eba2dba 100644 --- a/app/Commands.hs +++ b/app/Commands.hs @@ -62,14 +62,14 @@ pingResponse _ = return $ interactionResponseBasic "Pong" edtCommand :: Config -> Maybe CreateApplicationCommand edtCommand c = - createChatInput "edt" "Gets the planning for a group" + createChatInput "edt" "Affiche l'emploi du temps" >>= \cac -> return $ cac { createOptions = Just $ OptionsValues [ OptionValueString "group" Nothing - "The group for which the planning is requested" + "Le groupe pour lequel afficher l'emploi du temps" Nothing True (Right $ map (\x -> Choice x Nothing x) $ groupNames c) @@ -77,7 +77,7 @@ edtCommand c = , OptionValueString "day" Nothing - "The day(s) for which the planning is requested (today, tomorrow, week or DD/MM/YYYY)" + "Le(s) jour(s) pour le(s)quel(s) afficher l'emploi du temps (today (aujourd'hui), tomorrow (demain), week (semaine) or JJ/MM/AAAA)" Nothing False (Left False) @@ -106,13 +106,13 @@ edtResponse _ _ = return $ interactionResponseBasic remindCommand :: Maybe CreateApplicationCommand remindCommand = - createChatInput "remind" "reminds you of something later on" + createChatInput "remind" "Crée un rapel pour plus tard" >>= \cac -> return $ cac { createOptions = Just $ OptionsValues - [ OptionValueString "delay" Nothing "delay" Nothing True (Left False) Nothing Nothing - , OptionValueString "message" Nothing "message" Nothing True (Left False) Nothing Nothing - ] + [ OptionValueString "delay" Nothing "délai" Nothing True (Left False) Nothing Nothing + , OptionValueString "message" Nothing "message" Nothing True (Left False) Nothing Nothing + ] } remindResponse @@ -151,9 +151,9 @@ remindResponse (Just (OptionsDataValues opts)) evts ch mou liftIO $ registerRemind rmd return $ interactionResponseBasic - $ "Reminder registered sucessfully for " + $ "Rappel enregistré avec succes pour le " `T.append` T.pack (show remindDateTime) - else return $ interactionResponseBasic "couldn't parse your delay :/" + else return $ interactionResponseBasic "Le délai n'a pas pu être interprété" where parsedOpts = Map.fromList $ map parseOpt opts delay' = @@ -201,7 +201,7 @@ groupResponse c mou gid (Just (OptionsDataValues opts)) restCall $ AddGuildMemberRole gid uid rid return $ interactionResponseBasic - $ "You are now part of group " + $ "Vous faîtes désormait partie du groupe " `T.append` group where group = @@ -221,8 +221,8 @@ helpResponse :: IO InteractionResponse helpResponse = return . interactionResponseBasic - $ "**__Help for Bot IUT__**\n\n" - `T.append` "`/help` shows this help message\n" - `T.append` "`/group ` join a group\n" - `T.append` "`/remind