removed the hard coded string (#3015)

* removed the hard coded string

* fix
This commit is contained in:
sherlockbeard 2019-06-12 18:36:25 +05:30 committed by neslihanturan
parent 09459a3765
commit 6619ccf8d5
2 changed files with 2 additions and 1 deletions

View file

@ -392,7 +392,7 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment {
// enableDeleteButton(true); makes sense ?
else{
AlertDialog.Builder alert = new AlertDialog.Builder(getActivity());
alert.setMessage("Why should "+ media.getDisplayTitle() +" be deleted?");
alert.setMessage(getString(R.string.dialog_box_text_nomination,media.getDisplayTitle()));
final EditText input = new EditText(getActivity());
alert.setView(input);
input.requestFocus();

View file

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