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

@ -46,7 +46,7 @@
* Wladek92
* Y-M D
-->
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="commons_facebook">Page Facebook de Commons</string>
<string name="commons_github">Code source Github de Commons</string>
<string name="commons_logo">Logo de Commons</string>
@ -70,31 +70,38 @@
<string name="appwidget_img">Image du jour</string>
<plurals name="uploads_pending_notification_indicator">
<item quantity="one">%1$d fichier en cours de téléversement</item>
<item quantity="many">%1$d fichiers en cours de téléversement</item>
<item quantity="other">%1$d fichiers en cours de téléversement</item>
</plurals>
<plurals name="contributions_subtitle">
<item quantity="one">(%1$d)</item>
<item quantity="many">(%1$d)</item>
<item quantity="other">(%1$d)</item>
</plurals>
<string name="starting_uploads">Démarrage des téléversements</string>
<plurals name="starting_multiple_uploads">
<item quantity="one">%d téléversement en cours</item>
<item quantity="many">%d téléversements en cours</item>
<item quantity="other">%d téléversements en cours</item>
</plurals>
<plurals name="multiple_uploads_title">
<item quantity="one">%d téléversement</item>
<item quantity="many">%d téléversements</item>
<item quantity="other">%d téléversements</item>
</plurals>
<plurals name="share_license_summary">
<item quantity="one">Cette image sera sous licence %1$s.</item>
<item quantity="many">Ces images seront sous licence %1$s.</item>
<item quantity="other">Ces images seront sous licence %1$s.</item>
</plurals>
<plurals name="upload_count_title">
<item quantity="one">%1$d téléversement</item>
<item quantity="many">%1$d téléversements</item>
<item quantity="other">%1$d téléversements</item>
</plurals>
<plurals name="receiving_shared_content">
<item quantity="one">Réception de contenu partagé. Le traitement de limage peut prendre un certain temps en fonction de la taille de limage et de votre matériel.</item>
<item quantity="one" tools:ignore="ImpliedQuantity">Réception de contenu partagé. Le traitement de limage peut prendre un certain temps en fonction de la taille de limage et de votre matériel.</item>
<item quantity="many">Réception de contenu partagé. Le traitement des images peut prendre un certain temps en fonction de la taille des images et de votre matériel.</item>
<item quantity="other">Réception de contenu partagé. Le traitement des images peut prendre un certain temps en fonction de la taille des images et de votre matériel.</item>
</plurals>
<string name="navigation_item_explore">Explorer</string>
@ -113,9 +120,9 @@
<string name="forgot_password">Mot de passe oublié?</string>
<string name="signup">Sinscrire</string>
<string name="logging_in_title">Connexion</string>
<string name="logging_in_message">Veuillez patienter...</string>
<string name="logging_in_message">Veuillez patienter</string>
<string name="updating_caption_title">Mise à jour des légendes et des descriptions</string>
<string name="updating_caption_message">Veuillez patienter...</string>
<string name="updating_caption_message">Veuillez patienter</string>
<string name="login_success">Connexion réussie!</string>
<string name="login_failed">Échec de la connexion!</string>
<string name="upload_failed">Fichier non trouvé. Veuillez en essayer un autre.</string>
@ -185,7 +192,7 @@
<string name="menu_feedback">Envoyer vos commentaires (par courriel)</string>
<string name="no_email_client">Aucun client de courriel installé</string>
<string name="provider_categories">Catégories récemment utilisées</string>
<string name="waiting_first_sync">En attente de première synchronisation...</string>
<string name="waiting_first_sync">En attente de première synchronisation</string>
<string name="no_uploads_yet">Vous navez encore téléchargé aucune photo.</string>
<string name="menu_retry_upload">Réessayer</string>
<string name="menu_cancel_upload">Annuler</string>
@ -225,7 +232,7 @@
<string name="welcome_final_button_text">Oui!</string>
<string name="welcome_help_button_text">Davantage dinformations</string>
<string name="detail_panel_cats_label">Catégories</string>
<string name="detail_panel_cats_loading">Chargement en cours...</string>
<string name="detail_panel_cats_loading">Chargement en cours</string>
<string name="detail_panel_cats_none">Aucune catégorie sélectionnée</string>
<string name="detail_caption_empty">Aucune légende</string>
<string name="detail_description_empty">Aucune description</string>
@ -521,7 +528,7 @@
<string name="menu_option_read">Afficher les lus</string>
<string name="menu_option_unread">Afficher les non lus</string>
<string name="error_occurred_in_picking_images">Une erreur est survenue lors de la sélection des images</string>
<string name="please_wait">Veuillez patienter...</string>
<string name="please_wait">Veuillez patienter</string>
<string name="images_featured_explanation">Les images en vedette sont des images de photographes et dillustrateurs très doués que la communauté de Wikimédia Commons a choisies comme étant de la meilleure qualité pour le site.</string>
<string name="images_via_nearby_explanation">Les images téléversées par «Lieux à proximité» sont les images téléversées lors de la découverte de lieux sur la carte.</string>
<string name="thanks_received_explanation">Cette fonctionnalité permet aux contributeurs denvoyer une notification de remerciement aux utilisateurs qui font des modifications utilesen utilisant un petit lien de remerciement sur la page historique ou sur celle du diff.</string>
@ -543,7 +550,7 @@
<string name="media_location_permission_denied">Accès à lemplacement du média refusé</string>
<string name="add_location_manually">Nous ne pourrons pas obtenir automatiquement les données de localisation des images que vous téléchargez. Veuillez ajouter lemplacement approprié pour chaque image avant de la soumettre.</string>
<string name="share_text">Téléversez des photos sur Wikimedia Commons directement depuis votre téléphone. Téléchargez lapplication Commons maintenant: %1$s</string>
<string name="share_via">Partager lapplication via...</string>
<string name="share_via">Partager lapplication via</string>
<string name="image_info">Informations sur limage</string>
<string name="no_categories_found">Aucune catégorie trouvée</string>
<string name="no_depiction_found">Aucun élément représenté trouvé</string>
@ -570,6 +577,7 @@
<string name="category_edit_helper_show_edit_title_success">Succès</string>
<plurals name="category_edit_helper_show_edit_message_if">
<item quantity="one">La catégorie %1$s est ajoutée.</item>
<item quantity="many">Les catégories %1$s sont ajoutées.</item>
<item quantity="other">Les catégories %1$s sont ajoutées.</item>
</plurals>
<string name="category_edit_helper_edit_message_else">Impossible dajouter des catégories.</string>
@ -578,6 +586,7 @@
<string name="depictions_edit_helper_show_edit_title">Modifier les éléments représentés</string>
<plurals name="depictions_edit_helper_show_edit_message_if">
<item quantity="one">Lélément représenté %1$s est ajouté.</item>
<item quantity="many">Les éléments représentés %1$s sont ajoutés.</item>
<item quantity="other">Les éléments représentés %1$s sont ajoutés.</item>
</plurals>
<string name="depictions_edit_helper_edit_message_else">Impossible dajouter des éléments représentés.</string>
@ -620,7 +629,7 @@
<string name="add_bookmark">Ajouté aux favoris</string>
<string name="wallpaper_set_unsuccessfully">Un problème est survenu. Impossible dinstaller le fond décran.</string>
<string name="setting_wallpaper_dialog_title">Définir comme fond décran</string>
<string name="setting_wallpaper_dialog_message">Installation du fond décran. Veuillez patienter...</string>
<string name="setting_wallpaper_dialog_message">Installation du fond décran. Veuillez patienter</string>
<string name="theme_default_name">Suivre le système</string>
<string name="theme_dark_name">Sombre</string>
<string name="theme_light_name">Clair</string>
@ -678,9 +687,9 @@
<string name="limited_connection_mode">Mode de connexion limitée</string>
<string name="statistics_quality">Images de qualité</string>
<string name="quality_images_info">Les images de qualité sont des diagrammes ou des photographies qui respectent certains standards de qualité (qui sont, par nature, essentiellement techniques) et sont précieuses pour les projets Wikimedia.</string>
<string name="resuming_upload">Reprise du téléversement...</string>
<string name="pausing_upload">Mise en pause du téléversement...</string>
<string name="cancelling_upload">Annulation du téléversement...</string>
<string name="resuming_upload">Reprise du téléversement</string>
<string name="pausing_upload">Mise en pause du téléversement</string>
<string name="cancelling_upload">Annulation du téléversement</string>
<string name="cancel_upload">Annuler le téléversement</string>
<string name="limited_connection_explanation">Vous avez activé le mode de connexion limitée. Tous les téléversements sont suspendus et reprendront une fois ce mode désactivé.</string>
<string name="limited_connection_is_on">Le mode de connexion limitée est actif.</string>
@ -809,6 +818,7 @@
<string name="saving_gpx_file">Fichier GPX enregistré</string>
<plurals name="custom_picker_images_selected_title_appendix">
<item quantity="one">%d image sélectionnée</item>
<item quantity="many">%d images sélectionnées</item>
<item quantity="other">%d images sélectionnées</item>
</plurals>
<string name="multiple_files_depiction">Souvenez-vous que toutes les images dans une importation multiple prennent les mêmes catégories et descriptions. Si les images de partagent pas les descriptions et catégories, veuillez effectuer plusieurs importations séparées.</string>
@ -822,7 +832,7 @@
<string name="other_problem_or_information_please_explain_below">Autre problème ou information (merci d\'expliquer ci-dessous).</string>
<string name="feedback_destination_note">Vos commentaires sont publiés sur la page wiki suivante : &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">Êtes-vous sûr de vouloir annuler tous les téléchargements ?</string>
<string name="cancelling_all_the_uploads">Annulation de tous les téléchargements...</string>
<string name="cancelling_all_the_uploads">Annulation de tous les téléchargements</string>
<string name="uploads">Téléversements</string>
<string name="pending">En attente</string>
<string name="failed">Échec</string>