From 49f733b224ccfbda02b0848d99ad10d7e103974d Mon Sep 17 00:00:00 2001 From: Alexandre CABANNE Date: Mon, 14 Jan 2019 09:44:14 +0100 Subject: [PATCH] French -> English, translation of all french logs --- src/main/java/net/Broken/Commands/Move.java | 14 ++++----- .../java/net/Broken/Commands/Settings.java | 2 +- src/main/java/net/Broken/Commands/Spam.java | 30 +++++++++---------- src/main/java/net/Broken/Init.java | 2 +- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/main/java/net/Broken/Commands/Move.java b/src/main/java/net/Broken/Commands/Move.java index 7818a47..ece67ad 100644 --- a/src/main/java/net/Broken/Commands/Move.java +++ b/src/main/java/net/Broken/Commands/Move.java @@ -52,7 +52,7 @@ public class Move implements Commande { List roleUserList = user.getRoles(); - logger.info("Roles de " + user.getEffectiveName() + ":"); + logger.info("Roles of " + user.getEffectiveName() + ":"); //On les save saveRoleUser = roleUserList; @@ -65,7 +65,7 @@ public class Move implements Commande { //on fait ensuite les modif guildController.modifyMemberRoles(user,cible).complete(); - logger.info("Role " + cible + " attribuer a " + user.getEffectiveName()); + logger.info("Give " + cible + " role to " + user.getEffectiveName()); this.user=user; this.serveur=serveur; @@ -90,7 +90,7 @@ public class Move implements Commande { if(userL.size()<1 ||roleL.size()<1) { - logger.warn("Mention Incorect."); + logger.warn("Wrong mention."); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Error, please check if the user and/or the role are existing.")).complete(); List messages = new ArrayList(){{ add(rest); @@ -102,10 +102,10 @@ public class Move implements Commande { { user = serveur.getMember(userL.get(0)); serveur=event.getGuild(); - logger.info("Tentative de déplacement de "+user.getEffectiveName()+" vers "+roleL+" par l'utilisateur "+event.getAuthor().getName()); + logger.info("Attempting role assignement for "+user.getEffectiveName()+" to "+roleL+" by "+event.getAuthor().getName()); - logger.info("Autorisation suffisante, deplacement autorisé"); - logger.debug("Utilisateur trouvée"); + logger.info("Permission granted, role assignement authorized"); + logger.debug("User found"); try { boolean erreur=this.exc(user,roleL,true,serveur,serveur.getManager()); if(erreur) @@ -159,7 +159,7 @@ public class Move implements Commande { } else { - logger.warn("Arguments maquants."); + logger.warn("Missing argument."); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Missing argument.")).complete(); List messages = new ArrayList(){{ add(rest); diff --git a/src/main/java/net/Broken/Commands/Settings.java b/src/main/java/net/Broken/Commands/Settings.java index f25c8ea..32a0946 100644 --- a/src/main/java/net/Broken/Commands/Settings.java +++ b/src/main/java/net/Broken/Commands/Settings.java @@ -40,7 +40,7 @@ public class Settings implements Commande { EmbedBuilder builder = new EmbedBuilder() .setTitle("Settings") - .setDescription("You can do all the configuration on this web in the \"Bot Settings\" menu.\nhttps://"+MainBot.url).setColor(Color.green); + .setDescription("You can do all the configuration on the web page in the \"Bot Settings\" menu.\nhttps://"+MainBot.url).setColor(Color.green); event.getTextChannel().sendMessage(EmbedMessageUtils.buildStandar(builder)).queue(); diff --git a/src/main/java/net/Broken/Commands/Spam.java b/src/main/java/net/Broken/Commands/Spam.java index b0c4e9c..3cfa9be 100644 --- a/src/main/java/net/Broken/Commands/Spam.java +++ b/src/main/java/net/Broken/Commands/Spam.java @@ -105,7 +105,7 @@ public class Spam implements Commande { ****************************/ if(userL.size()<1) { - logger.error("Utilisateur introuvable."); + logger.error("User unknown."); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: User not found. ","pardon")).complete(); List messages = new ArrayList(){{ add(rest); @@ -115,7 +115,7 @@ public class Spam implements Commande { } else { Member user = userL.get(0); - logger.info("Tentative de pardon de " + user.getEffectiveName() + " par l'utilisateur " + event.getMember().getEffectiveName()); + logger.info("Attempt to forgive " + user.getEffectiveName() + " by " + event.getMember().getEffectiveName()); /**************************** * virif si en spammer * ****************************/ @@ -123,7 +123,7 @@ public class Spam implements Commande { if (MainBot.spamUtils.get(user).isOnSpam()) { MainBot.spamUtils.get(user).setOnSpam(false); } else { - logger.warn("Utilisateur pas en spam."); + logger.warn("User is not in spam."); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: This user is not in spam.","pardon")).complete(); List messages = new ArrayList(){{ add(rest); @@ -134,7 +134,7 @@ public class Spam implements Commande { } else { - logger.warn("Utilisateur pas en spam."); + logger.warn("User is not in spam."); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: This user is not in spam.","pardon")).complete(); List messages = new ArrayList(){{ add(rest); @@ -146,7 +146,7 @@ public class Spam implements Commande { } else { - logger.warn("Argument manquant."); + logger.warn("Missing argument."); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","pardon")).complete(); List messages = new ArrayList(){{ add(rest); @@ -175,8 +175,8 @@ public class Spam implements Commande { ****************************/ if(userL.size()<1) { - logger.warn("Mentionnement Incorect (Spam)."); - Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Bad mention. ","extermine")).complete(); + logger.warn("Wrong mention (Spam)."); + Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Wrong mention. ","extermine")).complete(); } else{ @@ -200,7 +200,7 @@ public class Spam implements Commande { } else { - logger.warn("Utilisateur deja en spam."); + logger.warn("User already in spam."); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("User already in spam.","extermine")).complete(); List messages = new ArrayList(){{ add(rest); @@ -222,7 +222,7 @@ public class Spam implements Commande { } else { - logger.warn("Argument manquant."); + logger.warn("Missing argument."); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","extermine")).complete(); List messages = new ArrayList(){{ add(rest); @@ -250,7 +250,7 @@ public class Spam implements Commande { ****************************/ if(userL.size()<1) { - logger.warn("Utilisateur introuvable."); + logger.warn("User not found."); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("User not found.","reset")).complete(); List messages = new ArrayList(){{ add(rest); @@ -261,15 +261,15 @@ public class Spam implements Commande { } else { Member user = userL.get(0); - logger.info("Tentative de reset de " + user.getEffectiveName() + " par l'utilisateur " + event.getMember().getEffectiveName()); + logger.info("Attempt spam reset of " + user.getEffectiveName() + " by " + event.getMember().getEffectiveName()); /**************************** * verif utilisteur trouver * ****************************/ if (MainBot.spamUtils.containsKey(user)) { - logger.info("Reset du multiplicateur de " + user.getEffectiveName() + " réussi"); - Message rest = event.getTextChannel().sendMessage(event.getAuthor().getAsMention() + "\n *The multiplicator of " + user.getEffectiveName() + " is now down to zero.*").complete(); + logger.info("Multiplictor reset for " + user.getEffectiveName() + " done."); + Message rest = event.getTextChannel().sendMessage(event.getAuthor().getAsMention() + "\n *The spam multiplicator of " + user.getEffectiveName() + " is now down to zero.*").complete(); List messages = new ArrayList(){{ add(rest); add(event.getMessage()); @@ -283,7 +283,7 @@ public class Spam implements Commande { } else { - logger.warn("Argument manquant."); + logger.warn("Missing argument."); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","reset")).complete(); List messages = new ArrayList(){{ add(rest); @@ -296,7 +296,7 @@ public class Spam implements Commande { { if (args[0].equals("all")) { - logger.info("Reset automatique des multiplicateur."); + logger.info("Multiplicator reseted automaticly."); for (Member unUser: MainBot.spamUtils.keySet() ) //=for(int i=0; i