Generalized Localizer File

This commit is contained in:
Alex Stewart
2019-04-14 00:25:52 -07:00
parent fbd047849c
commit e0c761dfc0
36 changed files with 268 additions and 213 deletions
+4 -4
View File
@@ -15,7 +15,7 @@ public class CommandRating extends Command
public CommandRating(KittyRole level, KittyRating rating) { super(level, rating); }
@Override
public String HelpText() { return Localizer.Stub("'0' is fully sfw (Derpi and e621 searches are disabled), '1' is filtered (kitty auto appends a sfw tag on any searches), '2' is nsfw (any search will go through). Some other words are supported for setting filter as well."); }
public String HelpText() { return Localizer.Stub("RatingInfo"); }
// Called when the command is run!
@Override
@@ -55,11 +55,11 @@ public class CommandRating extends Command
}
if(newRating != null)
res.Call(Localizer.Stub("Kittybot content set to") + " " + newRating);
res.Call(Localizer.Stub("RatingChanged") + " " + newRating);
else
res.Call(Localizer.Stub("Invalid content rating") + " `" + input.args + "`");
res.Call(Localizer.Stub("RatingInvalid") + " `" + input.args + "`");
if(newRating.equals("Filtered"))
res.Call(Localizer.Stub("Warning: NSFW may slip through, images are only based on tags on their respective sites!"));
res.Call(Localizer.Stub("RatingWarning"));
}
}