Skip to content

Commit 6619ccf

Browse files
sherlockbeardneslihanturan
authored andcommitted
removed the hard coded string (commons-app#3015)
* removed the hard coded string * fix
1 parent 09459a3 commit 6619ccf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public void onDeleteButtonClicked(){
392392
// enableDeleteButton(true); makes sense ?
393393
else{
394394
AlertDialog.Builder alert = new AlertDialog.Builder(getActivity());
395-
alert.setMessage("Why should "+ media.getDisplayTitle() +" be deleted?");
395+
alert.setMessage(getString(R.string.dialog_box_text_nomination,media.getDisplayTitle()));
396396
final EditText input = new EditText(getActivity());
397397
alert.setView(input);
398398
input.requestFocus();

app/src/main/res/values/strings.xml

+1
Original file line numberDiff line numberDiff line change
@@ -554,4 +554,5 @@ Upload your first media by tapping on the add button.</string>
554554
<string name="share_text">Upload photos to Wikimedia Commons on your phone Download the Commons app: %1$s</string>
555555
<string name="share_via">Share app via...</string>
556556
<string name="image_info">Image Info</string>
557+
<string name="dialog_box_text_nomination">Why should %1$s be deleted?</string>
557558
</resources>

0 commit comments

Comments
 (0)