Commit fc4e7fdd authored by Thomas's avatar Thomas
Browse files

Fix DeepL pro URL

parent 2c480321
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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 {
+3 −1
Original line number Diff line number Diff line
@@ -58,8 +58,10 @@ 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);
            if (apikey != null) {
                myTransL.setDeeplAPIKey(apikey.trim());
            }
        }

        String translate = sharedpreferences.getString(context.getString(R.string.SET_LIVE_TRANSLATE), MyTransL.getLocale());
        if (translate.equalsIgnoreCase("default")) {
+1 −1
Original line number Diff line number Diff line
@@ -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"};