|
17 | 17 |
|
18 | 18 | import fr.free.nrw.commons.BuildConfig; |
19 | 19 | import fr.free.nrw.commons.Media; |
| 20 | +import fr.free.nrw.commons.R; |
20 | 21 | import fr.free.nrw.commons.auth.SessionManager; |
21 | 22 | import fr.free.nrw.commons.mwapi.MediaWikiApi; |
22 | 23 | import fr.free.nrw.commons.notification.NotificationHelper; |
@@ -161,15 +162,15 @@ public void askReasonAndExecute(Media media, |
161 | 162 |
|
162 | 163 |
|
163 | 164 | if (problem == ReviewController.DeleteReason.SPAM) { |
164 | | - reasonList[0] = "A selfie"; |
165 | | - reasonList[1] = "Blurry"; |
166 | | - reasonList[2] = "Nonsense"; |
167 | | - reasonList[3] = "Other"; |
| 165 | + reasonList[0] = context.getResources().getString(R.string.delete_reason_spam_selfie); |
| 166 | + reasonList[1] = context.getResources().getString(R.string.delete_reason_spam_blurry); |
| 167 | + reasonList[2] = context.getResources().getString(R.string.delete_reason_spam_nonsense); |
| 168 | + reasonList[3] = context.getResources().getString(R.string.delete_reason_spam_other); |
168 | 169 | } else if (problem == ReviewController.DeleteReason.COPYRIGHT_VIOLATION) { |
169 | | - reasonList[0] = "Press photo"; |
170 | | - reasonList[1] = "Random photo from internet"; |
171 | | - reasonList[2] = "Logo"; |
172 | | - reasonList[3] = "Other"; |
| 170 | + reasonList[0] = context.getResources().getString(R.string.delete_reason_copyright_pressphoto); |
| 171 | + reasonList[1] = context.getResources().getString(R.string.delete_reason_copyright_internetphoto); |
| 172 | + reasonList[2] = context.getResources().getString(R.string.delete_reason_copyright_logo); |
| 173 | + reasonList[3] = context.getResources().getString(R.string.delete_reason_copyright_other); |
173 | 174 | } |
174 | 175 |
|
175 | 176 | alert.setMultiChoiceItems(reasonList, checkedItems, (dialogInterface, position, isChecked) -> { |
|
0 commit comments