mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Removed hardcoded strings in DeleteHelper (#3047)
* Removed hardcoded strings in DeleteHelper
* Revert "Removed hardcoded strings in DeleteHelper"
This reverts commit 4bc55fc3af.
This commit is contained in:
parent
cc92773d46
commit
6fb3331178
2 changed files with 17 additions and 8 deletions
|
|
@ -17,6 +17,7 @@ import javax.inject.Singleton;
|
|||
|
||||
import fr.free.nrw.commons.BuildConfig;
|
||||
import fr.free.nrw.commons.Media;
|
||||
import fr.free.nrw.commons.R;
|
||||
import fr.free.nrw.commons.auth.SessionManager;
|
||||
import fr.free.nrw.commons.mwapi.MediaWikiApi;
|
||||
import fr.free.nrw.commons.notification.NotificationHelper;
|
||||
|
|
@ -161,15 +162,15 @@ public class DeleteHelper {
|
|||
|
||||
|
||||
if (problem == ReviewController.DeleteReason.SPAM) {
|
||||
reasonList[0] = "A selfie";
|
||||
reasonList[1] = "Blurry";
|
||||
reasonList[2] = "Nonsense";
|
||||
reasonList[3] = "Other";
|
||||
reasonList[0] = context.getResources().getString(R.string.delete_reason_spam_selfie);
|
||||
reasonList[1] = context.getResources().getString(R.string.delete_reason_spam_blurry);
|
||||
reasonList[2] = context.getResources().getString(R.string.delete_reason_spam_nonsense);
|
||||
reasonList[3] = context.getResources().getString(R.string.delete_reason_spam_other);
|
||||
} else if (problem == ReviewController.DeleteReason.COPYRIGHT_VIOLATION) {
|
||||
reasonList[0] = "Press photo";
|
||||
reasonList[1] = "Random photo from internet";
|
||||
reasonList[2] = "Logo";
|
||||
reasonList[3] = "Other";
|
||||
reasonList[0] = context.getResources().getString(R.string.delete_reason_copyright_pressphoto);
|
||||
reasonList[1] = context.getResources().getString(R.string.delete_reason_copyright_internetphoto);
|
||||
reasonList[2] = context.getResources().getString(R.string.delete_reason_copyright_logo);
|
||||
reasonList[3] = context.getResources().getString(R.string.delete_reason_copyright_other);
|
||||
}
|
||||
|
||||
alert.setMultiChoiceItems(reasonList, checkedItems, (dialogInterface, position, isChecked) -> {
|
||||
|
|
|
|||
|
|
@ -560,4 +560,12 @@ Upload your first media by tapping on the add button.</string>
|
|||
<string name="dialog_box_text_nomination">Why should %1$s be deleted?</string>
|
||||
<string name="review_is_uploaded_by">%1$s is uploaded by: %2$s</string>
|
||||
<string name="default_description_language">Default description language</string>
|
||||
<string name="delete_reason_spam_selfie">A selfie</string>
|
||||
<string name="delete_reason_spam_blurry">Blurry</string>
|
||||
<string name="delete_reason_spam_nonsense">Nonsense</string>
|
||||
<string name="delete_reason_spam_other">Other</string>
|
||||
<string name="delete_reason_copyright_pressphoto">Press photo</string>
|
||||
<string name="delete_reason_copyright_internetphoto">Random photo from internet</string>
|
||||
<string name="delete_reason_copyright_logo">Logo</string>
|
||||
<string name="delete_reason_copyright_other">Other</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue