forked from mirrors/Fedilab
Fix DeepL pro URL
This commit is contained in:
parent
2c48032127
commit
fc4e7fddbe
3 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,6 @@ import android.net.Uri;
|
|||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.util.Log;
|
||||
import android.view.Display;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
|
@ -256,7 +255,6 @@ public class MediaActivity extends BaseTransparentActivity implements OnDownload
|
|||
}
|
||||
}
|
||||
} else {
|
||||
Log.v(Helper.TAG, "ici");
|
||||
if (attachment.type.compareTo("image") == 0) {
|
||||
MediaHelper.manageMove(MediaActivity.this, attachment.url, false);
|
||||
} else {
|
||||
|
|
|
@ -58,7 +58,9 @@ public class TranslateHelper {
|
|||
String translatorVersion = sharedpreferences.getString(context.getString(R.string.SET_TRANSLATOR_VERSION), "PRO");
|
||||
params.setPro(translatorVersion.equals("PRO"));
|
||||
String apikey = sharedpreferences.getString(context.getString(R.string.SET_TRANSLATOR_API_KEY), null);
|
||||
myTransL.setDeeplAPIKey(apikey.trim());
|
||||
if (apikey != null) {
|
||||
myTransL.setDeeplAPIKey(apikey.trim());
|
||||
}
|
||||
}
|
||||
|
||||
String translate = sharedpreferences.getString(context.getString(R.string.SET_LIVE_TRANSLATE), MyTransL.getLocale());
|
||||
|
|
|
@ -28,7 +28,7 @@ public class Helper {
|
|||
|
||||
|
||||
private static final String YANDEX_BASE_URL = "https://translate.yandex.net/api/v1.5/tr.json/translate?";
|
||||
private static final String DEEPL_BASE_URL = "https://free.deepl.com/v2/translate?";
|
||||
private static final String DEEPL_BASE_URL = "https://api.deepl.com/v2/translate?";
|
||||
private static final String DEEPL_BASE_FREE_URL = "https://api-free.deepl.com/v2/translate?";
|
||||
private static final String SYSTRAN_BASE_URL = "https://api-platform.systran.net/translation/text/translate?";
|
||||
private static final String[] deeplAvailableLang = {"EN", "DE", "FR", "ES", "IT", "NL", "PL"};
|
||||
|
|
Loading…
Reference in a new issue