forked from Steven/DeepJ
fixed return and .setAuthKey again
This commit is contained in:
parent
dba816a33e
commit
cf6d1e7128
@ -82,7 +82,7 @@ instead of "new Translator(String authKey)". NOTE: This will work but just some
|
|||||||
public String translate(Language langToTranslateTo, String sourceMessage) {
|
public String translate(Language langToTranslateTo, String sourceMessage) {
|
||||||
if (request.authKey == "null") {
|
if (request.authKey == "null") {
|
||||||
System.out.println("[DeepJ] This translator is null! Please recreate!");
|
System.out.println("[DeepJ] This translator is null! Please recreate!");
|
||||||
return;
|
return "null";
|
||||||
}
|
}
|
||||||
String response = "Error processing request";
|
String response = "Error processing request";
|
||||||
try {
|
try {
|
||||||
@ -101,7 +101,7 @@ instead of "new Translator(String authKey)". NOTE: This will work but just some
|
|||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
protected static class Request {
|
protected static class Request {
|
||||||
public final String authKey;
|
public String authKey;
|
||||||
public Request(String authKey) {
|
public Request(String authKey) {
|
||||||
this.authKey = authKey;
|
this.authKey = authKey;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user