(CharSequence text, boolean html, String target, Context context)
| 189 | } |
| 190 | |
| 191 | public static Translation translate(CharSequence text, boolean html, String target, Context context) throws IOException, JSONException { |
| 192 | SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); |
| 193 | boolean deepl_formal = prefs.getBoolean("deepl_formal", true); |
| 194 | boolean deepl_html = prefs.getBoolean("deepl_html", false); |
| 195 | return translate(text, html && deepl_html, target, deepl_formal, context); |
| 196 | } |
| 197 | |
| 198 | public static Translation translate(CharSequence text, boolean html, String target, boolean formality, Context context) throws IOException, JSONException { |
| 199 | if ("transliterate".equals(target)) { |
no test coverage detected