French -> English, translation of all french logs

This commit is contained in:
Alexandre CABANNE 2019-01-14 09:44:14 +01:00
parent 09e131aebc
commit 49f733b224
4 changed files with 24 additions and 24 deletions

View File

@ -52,7 +52,7 @@ public class Move implements Commande {
List<Role> roleUserList = user.getRoles(); List<Role> roleUserList = user.getRoles();
logger.info("Roles de " + user.getEffectiveName() + ":"); logger.info("Roles of " + user.getEffectiveName() + ":");
//On les save //On les save
saveRoleUser = roleUserList; saveRoleUser = roleUserList;
@ -65,7 +65,7 @@ public class Move implements Commande {
//on fait ensuite les modif //on fait ensuite les modif
guildController.modifyMemberRoles(user,cible).complete(); 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.user=user;
this.serveur=serveur; this.serveur=serveur;
@ -90,7 +90,7 @@ public class Move implements Commande {
if(userL.size()<1 ||roleL.size()<1) 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(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Error, please check if the user and/or the role are existing.")).complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);
@ -102,10 +102,10 @@ public class Move implements Commande {
{ {
user = serveur.getMember(userL.get(0)); user = serveur.getMember(userL.get(0));
serveur=event.getGuild(); 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.info("Permission granted, role assignement authorized");
logger.debug("Utilisateur trouvée"); logger.debug("User found");
try { try {
boolean erreur=this.exc(user,roleL,true,serveur,serveur.getManager()); boolean erreur=this.exc(user,roleL,true,serveur,serveur.getManager());
if(erreur) if(erreur)
@ -159,7 +159,7 @@ public class Move implements Commande {
} }
else else
{ {
logger.warn("Arguments maquants."); logger.warn("Missing argument.");
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Missing argument.")).complete(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getMoveError("Missing argument.")).complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);

View File

@ -40,7 +40,7 @@ public class Settings implements Commande {
EmbedBuilder builder = new EmbedBuilder() EmbedBuilder builder = new EmbedBuilder()
.setTitle("Settings") .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(); event.getTextChannel().sendMessage(EmbedMessageUtils.buildStandar(builder)).queue();

View File

@ -105,7 +105,7 @@ public class Spam implements Commande {
****************************/ ****************************/
if(userL.size()<1) 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(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: User not found. ","pardon")).complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);
@ -115,7 +115,7 @@ public class Spam implements Commande {
} }
else { else {
Member user = userL.get(0); 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 * * virif si en spammer *
****************************/ ****************************/
@ -123,7 +123,7 @@ public class Spam implements Commande {
if (MainBot.spamUtils.get(user).isOnSpam()) { if (MainBot.spamUtils.get(user).isOnSpam()) {
MainBot.spamUtils.get(user).setOnSpam(false); MainBot.spamUtils.get(user).setOnSpam(false);
} else { } 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(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: This user is not in spam.","pardon")).complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);
@ -134,7 +134,7 @@ public class Spam implements Commande {
} else { } 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(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError(":arrow_right: This user is not in spam.","pardon")).complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);
@ -146,7 +146,7 @@ public class Spam implements Commande {
} }
else else
{ {
logger.warn("Argument manquant."); logger.warn("Missing argument.");
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","pardon")).complete(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","pardon")).complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);
@ -175,8 +175,8 @@ public class Spam implements Commande {
****************************/ ****************************/
if(userL.size()<1) if(userL.size()<1)
{ {
logger.warn("Mentionnement Incorect (Spam)."); logger.warn("Wrong mention (Spam).");
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Bad mention. ","extermine")).complete(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Wrong mention. ","extermine")).complete();
} }
else{ else{
@ -200,7 +200,7 @@ public class Spam implements Commande {
} }
else 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(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("User already in spam.","extermine")).complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);
@ -222,7 +222,7 @@ public class Spam implements Commande {
} }
else else
{ {
logger.warn("Argument manquant."); logger.warn("Missing argument.");
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","extermine")).complete(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","extermine")).complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);
@ -250,7 +250,7 @@ public class Spam implements Commande {
****************************/ ****************************/
if(userL.size()<1) 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(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("User not found.","reset")).complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);
@ -261,15 +261,15 @@ public class Spam implements Commande {
} }
else { else {
Member user = userL.get(0); 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 * * verif utilisteur trouver *
****************************/ ****************************/
if (MainBot.spamUtils.containsKey(user)) { if (MainBot.spamUtils.containsKey(user)) {
logger.info("Reset du multiplicateur de " + user.getEffectiveName() + " réussi"); logger.info("Multiplictor reset for " + user.getEffectiveName() + " done.");
Message rest = event.getTextChannel().sendMessage(event.getAuthor().getAsMention() + "\n *The multiplicator of " + user.getEffectiveName() + " is now down to zero.*").complete(); Message rest = event.getTextChannel().sendMessage(event.getAuthor().getAsMention() + "\n *The spam multiplicator of " + user.getEffectiveName() + " is now down to zero.*").complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);
add(event.getMessage()); add(event.getMessage());
@ -283,7 +283,7 @@ public class Spam implements Commande {
} }
else else
{ {
logger.warn("Argument manquant."); logger.warn("Missing argument.");
Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","reset")).complete(); Message rest = event.getTextChannel().sendMessage(EmbedMessageUtils.getSpamError("Missing argument!","reset")).complete();
List<Message> messages = new ArrayList<Message>(){{ List<Message> messages = new ArrayList<Message>(){{
add(rest); add(rest);
@ -296,7 +296,7 @@ public class Spam implements Commande {
{ {
if (args[0].equals("all")) 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<saveRoleUser.size(); i++) for (Member unUser: MainBot.spamUtils.keySet() ) //=for(int i=0; i<saveRoleUser.size(); i++)
{ {
MainBot.message_compteur.remove(unUser); MainBot.message_compteur.remove(unUser);

View File

@ -36,7 +36,7 @@ public class Init {
//Bot démarrer sans token //Bot démarrer sans token
if (token == null) { if (token == null) {
logger.fatal("Veuilliez indiquer le token du bot en argument..."); logger.fatal("Please enter bot token as an argument.");
} }
else else
{ {