mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Added DeepL FAQ
This commit is contained in:
9
FAQ.md
9
FAQ.md
@@ -3681,6 +3681,15 @@ Unfortunately, it is not possible to hide messages on the email server too.
|
||||
|
||||
<br />
|
||||
|
||||
<a name="faq167"></a>
|
||||
**(167) How can I use DeepL?**
|
||||
|
||||
1. [Subscribe to](https://www.deepl.com/pro#developer) to one of the DeepL API plans (credit card required)
|
||||
1. [Copy](https://www.deepl.com/pro-account/plan) the authentication key
|
||||
1. In the message composer select some text and in the overflow menu select *Translate*, *Enter key* and paste the key
|
||||
|
||||
<br />
|
||||
|
||||
<h2><a name="get-support"></a>Get support</h2>
|
||||
|
||||
FairEmail is supported on Android smartphones and tablets and ChromeOS only.
|
||||
|
||||
@@ -6693,8 +6693,17 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
View view = LayoutInflater.from(context).inflate(R.layout.dialog_deepl, null);
|
||||
final EditText etKey = view.findViewById(R.id.etKey);
|
||||
final ImageButton ibInfo = view.findViewById(R.id.ibInfo);
|
||||
|
||||
etKey.setText(prefs.getString("deepl", null));
|
||||
|
||||
ibInfo.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Helper.viewFAQ(v.getContext(), 167);
|
||||
}
|
||||
});
|
||||
|
||||
return new AlertDialog.Builder(context)
|
||||
.setView(view)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
||||
@@ -7,14 +7,28 @@
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvDeepL"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:labelFor="@+id/etKey"
|
||||
android:text="DeepL"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
||||
app:layout_constraintEnd_toStartOf="@id/ibInfo"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/ibInfo"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="@string/title_info"
|
||||
android:padding="6dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:tooltipText="@string/title_info"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/tvDeepL"
|
||||
app:srcCompat="@drawable/twotone_info_24" />
|
||||
|
||||
<eu.faircode.email.EditTextPlain
|
||||
android:id="@+id/etKey"
|
||||
android:layout_width="0dp"
|
||||
|
||||
@@ -1108,7 +1108,7 @@
|
||||
<string name="title_insert_template">Insert template</string>
|
||||
<string name="title_create_template">Create template</string>
|
||||
<string name="title_translate" translatable="false">Translate</string>
|
||||
<string name="title_translate_key" translatable="false">Enter auth key</string>
|
||||
<string name="title_translate_key" translatable="false">Enter key</string>
|
||||
<string name="title_edit_plain_text">Edit as plain text</string>
|
||||
<string name="title_edit_formatted_text">Edit as reformatted text</string>
|
||||
<string name="title_select_certificate">Select public key</string>
|
||||
|
||||
Reference in New Issue
Block a user