mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
make translatable
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/empty_inbox_folder"
|
||||
android:text="Delete ALL e-mails in Inbox folder"
|
||||
android:text="@string/pref_empty_server_inbox"
|
||||
android:textColor="@color/red_500"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/empty_deltachat_folder"
|
||||
android:text="Delete ALL e-mails in DeltaChat folder"
|
||||
android:text="@string/pref_empty_server_mvbox"
|
||||
android:textColor="@color/red_500"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -430,6 +430,11 @@
|
||||
<string name="pref_show_emails_no">No, chats only</string>
|
||||
<string name="pref_show_emails_accepted_contacts">For accepted contacts</string>
|
||||
<string name="pref_show_emails_all">All</string>
|
||||
<string name="pref_empty_server_title">DANGER ZONE: Delete e-mails from server</string>
|
||||
<string name="pref_empty_server_msg">This function helps to free space on your IMAP server by deleting ALL e-mails, including chat-messages, in the given folders. Messages on this device will not be deleted. The deletion cannot be undone!</string>
|
||||
<string name="pref_empty_server_inbox">Delete ALL e-mails in Inbox folder</string>
|
||||
<string name="pref_empty_server_mvbox">Delete ALL e-mails in DeltaChat folder</string>
|
||||
<string name="pref_empty_server_do_button">Delete e-mails</string>
|
||||
|
||||
|
||||
<!-- autocrypt -->
|
||||
|
||||
@@ -44,14 +44,14 @@
|
||||
|
||||
<PreferenceCategory android:title="Experimental features">
|
||||
|
||||
<Preference android:key="pref_empty_server_folders"
|
||||
android:title="Delete e-mails from server" />
|
||||
|
||||
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
||||
android:defaultValue="false"
|
||||
android:key="pref_location_streaming_enabled"
|
||||
android:title="On-demand location streaming"/>
|
||||
|
||||
<Preference android:key="pref_empty_server_folders"
|
||||
android:title="Delete e-mails from server" />
|
||||
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:layout="@layout/preference_divider" />
|
||||
|
||||
|
||||
@@ -290,11 +290,11 @@ public class AdvancedPreferenceFragment extends ListSummaryPreferenceFragment
|
||||
CheckBox inboxCb = gl.findViewById(R.id.empty_inbox_folder);
|
||||
CheckBox mvboxCb = gl.findViewById(R.id.empty_deltachat_folder);
|
||||
new AlertDialog.Builder(getActivity())
|
||||
.setTitle("DANGER ZONE: Delete e-mails from server")
|
||||
.setMessage("This function helps to free space on your IMAP server by deleting ALL e-mails, including chat-messages, in the given folders. Messages on this device will not be deleted.\n\nThe deletion cannot be undone!")
|
||||
.setTitle(R.string.pref_empty_server_title)
|
||||
.setMessage(R.string.pref_empty_server_msg)
|
||||
.setView(gl)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.setPositiveButton("Delete e-mails", (dialog, which) -> {
|
||||
.setPositiveButton(R.string.pref_empty_server_do_button, (dialog, which) -> {
|
||||
int flags = 0;
|
||||
if (inboxCb!=null && inboxCb.isChecked()) {
|
||||
flags |= DcContext.DC_EMPTY_INBOX;
|
||||
|
||||
Reference in New Issue
Block a user