rework strings

This commit is contained in:
B. Petersen 2018-12-12 01:50:35 +01:00
parent 33f07b584b
commit defac037de
No known key found for this signature in database
GPG key ID: 3B88E92DEA8E9AFC
131 changed files with 905 additions and 1662 deletions

View file

@ -41,8 +41,8 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
public SaveAttachmentTask(Context context, int count) {
super(context,
context.getResources().getQuantityString(R.plurals.ConversationFragment_saving_n_attachments, count, count),
context.getResources().getQuantityString(R.plurals.ConversationFragment_saving_n_attachments_to_sd_card, count, count));
context.getResources().getString(R.string.one_moment),
context.getResources().getString(R.string.one_moment));
this.contextReference = new WeakReference<>(context);
this.attachmentCount = count;
}
@ -182,18 +182,16 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
switch (result.first()) {
case FAILURE:
Toast.makeText(context,
context.getResources().getQuantityText(R.plurals.ConversationFragment_error_while_saving_attachments_to_sd_card,
attachmentCount),
context.getResources().getString(R.string.error),
Toast.LENGTH_LONG).show();
break;
case SUCCESS:
Toast.makeText(context,
context.getResources().getString(R.string.SaveAttachmentTask_saved_to,
result.second()),
context.getResources().getString(R.string.done),
Toast.LENGTH_LONG).show();
break;
case WRITE_ACCESS_FAILURE:
Toast.makeText(context, R.string.ConversationFragment_unable_to_write_to_sd_card_exclamation,
Toast.makeText(context, R.string.error,
Toast.LENGTH_LONG).show();
break;
}
@ -224,11 +222,8 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
public static void showWarningDialog(Context context, OnClickListener onAcceptListener, int count) {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle(R.string.ConversationFragment_save_to_sd_card);
builder.setIconAttribute(R.attr.dialog_alert_icon);
builder.setCancelable(true);
builder.setMessage(context.getResources().getQuantityString(R.plurals.ConversationFragment_saving_n_media_to_storage_warning,
count, count));
builder.setMessage(R.string.ask_export_attachment);
builder.setPositiveButton(R.string.yes, onAcceptListener);
builder.setNegativeButton(R.string.no, null);
builder.show();