Partial fixes for errors and warnings reported by ./gradlew lint (#5885)

* BaseMarker.kt: removed unneeded cast

* TransformImageImpl.kt: removed unreachable code

* ZoomableActivity.kt: removed Unnecessary safe call on a non-null receiver of type ZoomableDraweeView

* ZoomableActivity.kt: removed Unnecessary safe call on a non-null receiver of type ZoomableDraweeView

* DescriptionEditActivity.kt: removed unnecessary non-null assertion (!!) on a non-null receiver of type DescriptionEditHelper

* Media.kt: Property would not be serialized into a 'Parcel'. Added '@IgnoredOnParcel' annotation to remove the warning

* ZoomableActivity.kt: removed Unnecessary non-null assertion (!!) on a non-null receiver of type ZoomableDraweeView

* CategoryClient.kt: removed condition 'page.categoryInfo() == null' as it's always 'false'

* DescriptionEditActivity.kt: removed unnecessary safe call on a non-null receiver of type SessionManager

* DescriptionEditActivity.kt: removed unnecessary safe call on a non-null receiver of type DescriptionEditHelper

* WikidataFeedback.kt: removed unneeded cast

* FailedUploadsFragment.kt: removed unneeded non-null assertion (!!)

* PendingUploadsFragment.kt: removed unneeded non-null assertion (!!)

* AchievementsFragment.java: Changed toUpperCase to toUpperCase(Locale.getDefault())

* ExploreFragment.java: Changed toUpperCase to toUpperCase(Locale.getDefault())

* FileUtils.java: Changed toUpperCase to toUpperCase(Locale.getDefault())

* AchievementsFragment.java: Changed toUpperCase to toUpperCase(Locale.ROOT)

* ExploreFragment.java: Changed toUpperCase to toUpperCase(Locale.ROOT)

* LocationPickerActivity.java: Changed toUpperCase to toUpperCase(Locale.ROOT)

* MediaDetailFragment.java: Changed toUpperCase to toUpperCase(Locale.ROOT)

* NearbyFilterSearchRecyclerViewAdapter.java: Changed toUpperCase to toUpperCase(Locale.ROOT)

* ProfileActivity.java: Changed toUpperCase to toUpperCase(Locale.ROOT)

* RecentSearchesFragment.java: Changed toUpperCase to toUpperCase(Locale.ROOT)

* ReviewActivity.java: Changed toUpperCase to toUpperCase(Locale.ROOT)

* SearchActivity.java: Changed toUpperCase to toUpperCase(Locale.ROOT)

* UploadMediaPresenter.java: Changed toUpperCase to toLowerCase(Locale.ROOT)

* CategoriesMediaFragment.kt: Changed arguments!! to requireArguments()

* ChildDepictionsFragment.kt: Changed arguments!! to requireArguments()

* DepictedImagesFragment.kt: Changed arguments!! to requireArguments()

* DepictsFragment: Changed Objects.requireNonNull(getView()) to requireViews(), Objects.requireNonNull(getActivity())) to requireActivity()

* ParentCategoriesFragment.kt: Changed arguments!! to requireArguments()

* ParentCategoriesFragment.kt: Changed arguments!! to requireArguments()

* SubCategoriesFragment.kt: Changed arguments!! to requireArguments()

* SubCategoriesFragment.kt: Changed Objects.requireNonNull(getView()) to requireViews(), Objects.requireNonNull(getActivity()) to requireActivity()

* UploadMediaDetailFragment.java: Changed arguments!! to requireArguments()

* WikipediaInstructionsDialogFragment.kt: Changed arguments!! to requireArguments()

* BookmarkItemsDao.java: Added @SuppressLint("Range"), as -1 is expected behavior not index doesn't exist for getColumnIndex()

* BookmarkLocationsDao.java: Added @SuppressLint("Range"), as -1 is expected behavior not index doesn't exist for getColumnIndex()

* AndroidManifest.xml: Removed redundant label  android:label="@string/app_name"

* bs\strings.xml: Added missing few quantity

* hr\strings.xml: Added missing few quantity

* hr\strings.xml: Added missing zero, two, few, many quantities for lines 23 - 63

* Revert "hr\strings.xml: Added missing zero, two, few, many quantities for lines 23 - 63"

This reverts commit 47232466ab.

* cy\strings.xml: Added missing zero, two, few, many quantities for lines 23 - 63

* sr\strings.xml: Added missing few quantities for lines 35 to 70

* ro\strings.xml: Added missing few quantity and removed not needed zero for <plurals name="contributions_subtitle" fuzzy="true">

* cs\strings.xml: Added missing few many missing quantities for lines 33 - 74

* lt\strings.xml: Added missing few, many missing quantities for lines 34 - 58

* lt\strings.xml: Replaced . . . with ...

* ca\strings.xml: Added missing many quantities for lines 21 - 51, replaced . . . with ...

* ser\strings.xml: Added missing few quantities, replaced . . . with ...

* br\strings.xml: Added missing two, few, many quantities

* pt\strings.xml: Added missing many quantity, changed . . . to ... and ignored typo as it is correct for European Portuguese

* it\strings.xml: changed . . . to ...

* pt\strings.xml: fixed many quantity

* ca\strings.xml: fixed many quantity

* sr\strings.xml: fixed many quantity

* cy\strings.xml: corrected quantities for "share_license_summary

* fr\strings.xml: changed . . . to ... and add many quantities using the other quantity

* fr\strings.xml: changed . . . to ... and add many quantities using the other quantity. Fixed some typos, added ignore for correct spellings but has warning

* getColumnIndex(): added @SuppressLint("Range") as -1 is expected result for column name doesn't exist

* values-b+sr+Latn\strings.xml: changed . . . to ...

* Revert "values-b+sr+Latn\strings.xml: changed . . . to ..."

This reverts commit 95b909c29f.

* values-b+roa+tara\strings.xml: changed . . . to ...

* Revert "values-b+roa+tara\strings.xml: changed . . . to ..."

This reverts commit b5db1a3e68.

* values-b+roa+tara\strings.xml: changed . . . to ...

* values-b+sr+Latn\strings.xml: changed . . . to ..., add few based on other quantity. Ignored one ImpliedQuantity warning as it is correct.

* it\strings.xml: changed . . . to ..., add many based on other quantity.

* pt-rBR\strings.xml: changed . . . to ..., add many based on other quantity. Fixed typos, ignored warning for "one" quantity as translation didn't use number

* si\strings.xml: Ignored ImpliedQuantity warning as it uses 1 not %d. Removed not needed zero quantity

* si\strings.xml: Ignored ImpliedQuantity warning as it uses 1 not %d. Removed not needed zero quantity. Fixed wrong %1$d. Changed . . . to ...

* mk\strings.xml: changed . . . to ... and ignored ImpliedQuantity as it doesn't use 1

* sl\strings.xml: changed . . . to ... and ignored ImpliedQuantity as it doesn't use %1$d

* ru\strings.xml: changed . . . to ... and ignored ImpliedQuantity as it doesn't use %1$d

* uk\strings.xml: changed . . . to ... and ignored ImpliedQuantity as it doesn't use %1$d

* is\strings.xml: changed . . . to ... and ignored ImpliedQuantity as it doesn't use %1$d

* strings.xml: changed . . . to ...

* af\strings.xml: removed not needed zero quantity

* de\strings.xml: fixed duplicate word typo

* diq\strings.xml: changed - to dash (-)

* hi\strings.xml: removed not needed zero

* in\strings.xml: removed not needed one quantity

* iw\strings.xml: removed not needed many quantity

* ja\strings.xml: removed not needed one quantity

* ko\strings.xml: removed not needed one quantity

* ky\strings.xml: removed not needed one quantity

* mr\strings.xml: removed not needed zero quantity

* my\strings.xml: removed not needed one quantity

* su\strings.xml: removed not needed one quantity

* th\strings.xml: removed not needed one and zero quantity

* zh\strings.xml: removed not needed one quantity

* activity_description_edit.xml: changed android:tint to app:tint, changed layout_alignParentRight to layout_alignParentEnd

* bottom_sheet_details_explore.xml: changed android:tint to app:tint, added focusable, changed to margin layout

* bottom_sheet_item_layout.xml: changed android:tint to app:tint, added focusable

* bottom_sheet_details_explore.xml: changed android:tint to app:tint, added focusable, changed margin layout and removed not needed and invalid params

* item_place.xml.xml: changed android:tint to app:tint, added focusable, changed margin layout and removed not needed and invalid params

* layout_campagin.xml: changed android:tint to app:tint, added focusable, changed margin layout and removed not needed and invalid params

* layout_contribution.xml.xml: changed android:tint to app:tint

* nearby_card_view.xml: changed android:tint to app:tint, added focusable, changed margin layout and removed not needed and invalid params

* nearby_row_button.xml: changed android:tint to app:tint, added focusable, changed margin layout and removed not needed and invalid params

* toolbar_location_picker.xml: changed android:tint to app:tint

---------

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
u7119288 2024-10-28 00:59:09 +11:00 committed by GitHub
parent cdc4f89da5
commit 522f1fe192
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
137 changed files with 617 additions and 572 deletions

View file

@ -45,44 +45,37 @@
<plurals name="uploads_pending_notification_indicator">
<item quantity="one">מועלה קובץ אחד</item>
<item quantity="two">מועלים %1$d קבצים</item>
<item quantity="many">מועלים %1$d קבצים</item>
<item quantity="other">מועלים %1$d קבצים</item>
</plurals>
<plurals name="contributions_subtitle">
<item quantity="one">(%1$d)</item>
<item quantity="two">(%1$d)</item>
<item quantity="many">(%1$d)</item>
<item quantity="other">(%1$d)</item>
</plurals>
<string name="starting_uploads">ההעלאות מתחילות</string>
<plurals name="starting_multiple_uploads">
<item quantity="one">עיבוד העלאה</item>
<item quantity="two">עיבוד d% העלאות</item>
<item quantity="many">עיבוד d% העלאות</item>
<item quantity="other">עיבוד d% העלאות</item>
</plurals>
<plurals name="multiple_uploads_title">
<item quantity="one">העלאה אחת</item>
<item quantity="two">%d העלאות</item>
<item quantity="many">%d העלאות</item>
<item quantity="other">%d העלאות</item>
</plurals>
<plurals name="share_license_summary">
<item quantity="one">התמונה הזאת תפורסם ברישיון %1$s</item>
<item quantity="two">התמונות האלה תפורסמנה ברישיון %1$s</item>
<item quantity="many">התמונות האלה תפורסמנה ברישיון %1$s</item>
<item quantity="other">התמונות האלה תפורסמנה ברישיון %1$s</item>
</plurals>
<plurals name="upload_count_title">
<item quantity="one">העלאה אחת</item>
<item quantity="two">%1$d העלאות</item>
<item quantity="many">%1$d העלאות</item>
<item quantity="other">%1$d העלאות</item>
</plurals>
<plurals name="receiving_shared_content">
<item quantity="one">מתקבל תוכן שיתופי. עיבוד התמונה עשוי לארוך זמן מה כתלות בגודל התמונה והמכשיר שלך</item>
<item quantity="two">מתקבל תוכן שיתופי. עיבוד התמונות עשוי לארוך זמן מה כתלות בגודל התמונות והמכשיר שלך</item>
<item quantity="many">מתקבל תוכן שיתופי. עיבוד התמונות עשוי לארוך זמן מה כתלות בגודל התמונות והמכשיר שלך</item>
<item quantity="other">מתקבל תוכן שיתופי. עיבוד התמונות עשוי לארוך זמן מה כתלות בגודל התמונות והמכשיר שלך</item>
</plurals>
<string name="navigation_item_explore">לחקור</string>
@ -101,9 +94,9 @@
<string name="forgot_password">שכחת את הסיסמה?</string>
<string name="signup">רישום</string>
<string name="logging_in_title">כניסה לחשבון</string>
<string name="logging_in_message">נא להמתין...</string>
<string name="logging_in_message">נא להמתין</string>
<string name="updating_caption_title">עדכון כיתובים ותיאורים</string>
<string name="updating_caption_message">נא להמתין...</string>
<string name="updating_caption_message">נא להמתין</string>
<string name="login_success">הכניסה הצליחה!</string>
<string name="login_failed">הכניסה נכשלה!</string>
<string name="upload_failed">הקובץ לא נמצא. נא לנסות קובץ אחר.</string>
@ -213,7 +206,7 @@
<string name="welcome_final_button_text">כן!</string>
<string name="welcome_help_button_text">מידע נוסף</string>
<string name="detail_panel_cats_label">קטגוריות</string>
<string name="detail_panel_cats_loading">בטעינה...</string>
<string name="detail_panel_cats_loading">בטעינה</string>
<string name="detail_panel_cats_none">לא נבחר דבר</string>
<string name="detail_caption_empty">אין כיתוב</string>
<string name="detail_description_empty">אין תיאור</string>
@ -508,7 +501,7 @@
<string name="menu_option_read">הצגת התראות שנקראו</string>
<string name="menu_option_unread">הצגת התראות שלא נקראו</string>
<string name="error_occurred_in_picking_images">אירעה שגיאה בעת בחירת תמונות</string>
<string name="please_wait">נא להמתין...</string>
<string name="please_wait">נא להמתין</string>
<string name="images_featured_explanation">תמונות מובילות הן תמונות של צלמים ומאיירים מיומנים אותם בחרה קהילת ויקישיתוף בזכות איכות התוצר שהם תורמים לאתר.</string>
<string name="images_via_nearby_explanation">תמונות שהועלו דרך מקומות בסביבה הן התמונות שנשלחות על ידי גילוי מקומות במפה.</string>
<string name="thanks_received_explanation">תכונה זו מאפשרת לעורכים לשלוח מסרי תודה למשתמשים שביצעו עריכות מועילות - על ידי שימוש בקישור תודה בדף ההיסטוריה או בדף ההבדלים.</string>
@ -530,7 +523,7 @@
<string name="media_location_permission_denied">הגישה למקום המדיה נדחתה</string>
<string name="add_location_manually">ייתכן שלא נוכל לאתר את נתוני המקום מתמונות שהעלית. נא להוסיף את המקום המתאים לכל תמונה בטרם הגשתה</string>
<string name="share_text">כדי להעלות תמונות לוויקינתונים של ויקימדיה ישר מהטלפון שלך. אתם מוזמנים להוריד את היישום של ויקינתונים עכשיו: %1$s</string>
<string name="share_via">שיתוף היישום דרך...</string>
<string name="share_via">שיתוף היישום דרך</string>
<string name="image_info">פרטי תמונה</string>
<string name="no_categories_found">לא נמצאו קטגוריות</string>
<string name="no_depiction_found">לא נמצאו מוצגים</string>
@ -558,7 +551,6 @@
<plurals name="category_edit_helper_show_edit_message_if">
<item quantity="one">נוספה קטגוריה.</item>
<item quantity="two">נוספו %1$s קטגוריות.</item>
<item quantity="many">נוספו %1$s קטגוריות.</item>
<item quantity="other">נוספו %1$s קטגוריות.</item>
</plurals>
<string name="category_edit_helper_edit_message_else">לא ניתן להוסיף קטגוריות.</string>
@ -568,7 +560,6 @@
<plurals name="depictions_edit_helper_show_edit_message_if">
<item quantity="one">נוסף מוצג %1$s</item>
<item quantity="two">נוספו המוצגים %1$s</item>
<item quantity="many">נוספו המוצגים %1$s</item>
<item quantity="other">נוספו המוצגים %1$s</item>
</plurals>
<string name="depictions_edit_helper_edit_message_else">לא היה אפשר להוסיף מוצגים.</string>
@ -611,7 +602,7 @@
<string name="add_bookmark">נוסף לסימניות</string>
<string name="wallpaper_set_unsuccessfully">משהו השתבש. לא היה אפשר להגדיר את הטפט</string>
<string name="setting_wallpaper_dialog_title">להגדיר בתור טפט</string>
<string name="setting_wallpaper_dialog_message">הגדרת טפט. נא להמתין...</string>
<string name="setting_wallpaper_dialog_message">הגדרת טפט. נא להמתין</string>
<string name="theme_default_name">מערכת מעקב</string>
<string name="theme_dark_name">כהה</string>
<string name="theme_light_name">בהירה</string>
@ -671,7 +662,7 @@
<string name="quality_images_info">תמונות איכות הן תרשימים או תמונות שעומדות בתקני איכות מסוימים (שמטבעם בעיקר טכניים) והן בעלות ערך למיזמי ויקימדיה</string>
<string name="resuming_upload">ההעלאה ממשיכה…</string>
<string name="pausing_upload">ההעלאה מושהית…</string>
<string name="cancelling_upload">ביטול ההעלאה...</string>
<string name="cancelling_upload">ביטול ההעלאה</string>
<string name="cancel_upload">ביטול ההעלאה</string>
<string name="limited_connection_explanation">הפעלת מצב חיבור מוגבל. כל ההעלאות מושהות ותמשכנה לאחר השבתת המצב הזה.</string>
<string name="limited_connection_is_on">מצב חיבור מוגבל פעיל.</string>
@ -801,7 +792,6 @@
<plurals name="custom_picker_images_selected_title_appendix">
<item quantity="one">נבחרה תמונה אחת</item>
<item quantity="two">נבחרו שתי תמונות</item>
<item quantity="many">נבחרו %d תמונות</item>
<item quantity="other">נבחרו %d תמונות</item>
</plurals>
<string name="multiple_files_depiction">נא לזכור שכשמועלות כמה תמונות, כולן מקבלות את אותן הקטגוריות והמוצגים. אם התמונות אינן חולקות מוצגים וקטגוריות, נא לעשות כמה העלאות נפרדות.</string>
@ -815,7 +805,7 @@
<string name="other_problem_or_information_please_explain_below">בעיה אחרת או מידע אחר (נא להסביר הלאה).</string>
<string name="feedback_destination_note">המשוב שלך מתפרסם בדף הוויקי הבא: &lt;a href=\"https://commons.wikimedia.org/wiki/Commons:Mobile_app/Feedback\"&gt;Commons:Mobile app/Feedback&lt;/a&gt;</string>
<string name="are_you_sure_that_you_want_cancel_all_the_uploads">האם ברצונך באמת לבטל את כל ההעלאות?</string>
<string name="cancelling_all_the_uploads">ביטול כל ההעלאות...</string>
<string name="cancelling_all_the_uploads">ביטול כל ההעלאות</string>
<string name="uploads">העלאות</string>
<string name="pending">ממתינות</string>
<string name="failed">נכשלו</string>