forked from Steven/DeepJ
Update 'src/main/java/com/the5gi/DeepJ/Translator.java'
This commit is contained in:
parent
fcb20efbd8
commit
6f754483a5
@ -20,7 +20,7 @@ public class Translator {
|
||||
|
||||
//CONSTRUCTORS
|
||||
public Translator() {
|
||||
if (globalAuthKey == null) {
|
||||
if (globalAPIKey == null) {
|
||||
System.out.println("\n[DeepJ] You are currently using the Global API Key Translator Constructor." +"\n[DeepJ] If you are trying to use global API keys, Call the method \"Translator.setGlobalAuthKey(String key)\" and then re-use this contructor." + "\n[DeepJ] If you want to define an different authkey every time do: \"new Translator(String authKey)\"\n");
|
||||
} else {
|
||||
request = new Request(globalAPIKey);
|
||||
@ -45,7 +45,7 @@ public class Translator {
|
||||
return new Translator(apiKey);
|
||||
}
|
||||
public static Translator newTranslator() {
|
||||
if (globalAuthKey == null) {
|
||||
if (globalAPIKey == null) {
|
||||
System.out.println("\n[DeepJ] You are currently using the Global API Key \".of()\" Translator." +
|
||||
"\n[DeepJ] If you are trying to use global API keys, Call the method \"Translator.setGlobalAPIKey(String key)\" and then re-use this method." +
|
||||
"\n[DeepJ] If you want to define an different authkey every time do: \"Translator.of(String apiKey)\"\n");
|
||||
|
Loading…
Reference in New Issue
Block a user