diff --git a/app/src/main/java/fr/free/nrw/commons/upload/mediaDetails/UploadMediaDetailFragment.java b/app/src/main/java/fr/free/nrw/commons/upload/mediaDetails/UploadMediaDetailFragment.java index 8b5da7fe06..a595f5c758 100644 --- a/app/src/main/java/fr/free/nrw/commons/upload/mediaDetails/UploadMediaDetailFragment.java +++ b/app/src/main/java/fr/free/nrw/commons/upload/mediaDetails/UploadMediaDetailFragment.java @@ -339,10 +339,12 @@ public void showMessage(String message, int colorResourceId) { public void showDuplicatePicturePopup() { String uploadTitleFormat = getString(R.string.upload_title_duplicate); DialogUtil.showAlertDialog(getActivity(), - getString(R.string.warning), + getString(R.string.duplicate_image_found), String.format(Locale.getDefault(), uploadTitleFormat, uploadItem.getFileName()), + getString(R.string.upload), + getString(R.string.cancel), () -> { uploadItem.setImageQuality(ImageUtils.IMAGE_KEEP); onNextButtonClicked(); @@ -355,9 +357,11 @@ public void showBadImagePopup(Integer errorCode) { String errorMessageForResult = getErrorMessageForResult(getContext(), errorCode); if (!StringUtils.isBlank(errorMessageForResult)) { DialogUtil.showAlertDialog(getActivity(), - getString(R.string.warning), + getString(R.string.upload_problem_image), errorMessageForResult, - () -> { + getString(R.string.upload), + getString(R.string.cancel), + () -> { uploadItem.setImageQuality(ImageUtils.IMAGE_KEEP); onNextButtonClicked(); }, diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 46eee77d56..99a6806d97 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -171,7 +171,9 @@ Nearby Places No nearby places found Warning + Duplicate Image Found This file already destroyed on Commons. Are you sure you want to proceed? + Upload Yes No Title @@ -250,6 +252,7 @@ This picture was taken at a different location. Please only upload pictures that you have taken by yourself. Don\'t upload pictures that you have found on other people\'s Facebook accounts. Do you still want to upload this picture? + Problems found in image Please only upload pictures that you have taken by yourself. Don\'t upload pictures that you have downloaded from the Internet.