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

@ -28,7 +28,7 @@
* Tuliouel
* YuriNikolai
-->
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="commons_facebook">Página do Commons no Facebook</string>
<string name="commons_github">Código fonte do Commons no Github</string>
<string name="commons_logo">Logotipo do Commons</string>
@ -51,32 +51,39 @@
<string name="nearby_filter_state">Estado do local</string>
<string name="appwidget_img">Imagem do Dia</string>
<plurals name="uploads_pending_notification_indicator">
<item quantity="one">carregando arquivo</item>
<item quantity="one" tools:ignore="ImpliedQuantity">carregando arquivo</item>
<item quantity="many">carregando %1$d arquivos</item>
<item quantity="other">carregando %1$d arquivos</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">Iniciando carregamentos</string>
<plurals name="starting_multiple_uploads">
<item quantity="one">Processando %d carregamento</item>
<item quantity="many">Processando %d carregamentos</item>
<item quantity="other">Processando %d carregamentos</item>
</plurals>
<plurals name="multiple_uploads_title">
<item quantity="one">%d carregamento</item>
<item quantity="many">%d carregamentos</item>
<item quantity="other">%d carregamentos</item>
</plurals>
<plurals name="share_license_summary">
<item quantity="one">Esta imagem será licenciada sob %1$s</item>
<item quantity="many">Estas imagens serão licenciadas sob %1$s</item>
<item quantity="other">Estas imagens serão licenciadas sob %1$s</item>
</plurals>
<plurals name="upload_count_title">
<item quantity="one">%1$d carregamento</item>
<item quantity="many">%1$d carregamentos</item>
<item quantity="other">%1$d carregamentos</item>
</plurals>
<plurals name="receiving_shared_content">
<item quantity="one">Recebendo conteúdo compartilhado. O processamento da imagem pode demorar algum tempo, dependendo do tamanho da imagem e do seu dispositivo</item>
<item quantity="one" tools:ignore="ImpliedQuantity">Recebendo conteúdo compartilhado. O processamento da imagem pode demorar algum tempo, dependendo do tamanho da imagem e do seu dispositivo</item>
<item quantity="many">Recebendo conteúdo compartilhado. O processamento das imagens pode levar algum tempo, dependendo do tamanho das imagens e do dispositivo</item>
<item quantity="other">Recebendo conteúdo compartilhado. O processamento das imagens pode levar algum tempo, dependendo do tamanho das imagens e do dispositivo</item>
</plurals>
<string name="navigation_item_explore">Explorar</string>
@ -95,9 +102,9 @@
<string name="forgot_password">Esqueceu a senha?</string>
<string name="signup">Cadastre-se</string>
<string name="logging_in_title">Efetuar login</string>
<string name="logging_in_message">Por favor, aguarde...</string>
<string name="logging_in_message">Por favor, aguarde</string>
<string name="updating_caption_title">Atualizando legendas e descrições</string>
<string name="updating_caption_message">Por favor, aguarde...</string>
<string name="updating_caption_message">Por favor, aguarde</string>
<string name="login_success" fuzzy="true">Login bem sucedido</string>
<string name="login_failed" fuzzy="true">Falha na identificação</string>
<string name="upload_failed">Arquivo não encontrado. Tente outro arquivo.</string>
@ -161,7 +168,7 @@
<string name="menu_about">Sobre</string>
<string name="about_license">O Wikimedia Commons é um aplicativo de código aberto criado e mantido por beneficiários e voluntários da comunidade Wikimedia. A Wikimedia Foundation não está envolvida na criação, desenvolvimento ou manutenção do aplicativo.</string>
<string name="about_improve">Criar uma nova &lt;a href=\"%1$s\"&gt;publicação no GitHub&lt;/a&gt; para informar erros e sugestões.</string>
<string name="about_privacy_policy">Politica de privacidade</string>
<string name="about_privacy_policy">Política de privacidade</string>
<string name="about_credits">Créditos</string>
<string name="title_activity_about">Sobre</string>
<string name="menu_feedback">Enviar comentários (por e-mail)</string>
@ -248,7 +255,7 @@
<string name="welcome_image_rainbow_bridge">Ponte de Arco-Íris</string>
<string name="welcome_image_tulip">Tulipa</string>
<string name="welcome_image_welcome_wikipedia">Bem-vindo à Wikipédia</string>
<string name="welcome_image_welcome_copyright">Direitos de autor são bem vindo</string>
<string name="welcome_image_welcome_copyright">Direitos de autor são bem-vindo</string>
<string name="welcome_image_sydney_opera_house">Ópera de Sydney</string>
<string name="cancel">Cancelar</string>
<string name="navigation_drawer_open">Abrir</string>
@ -306,7 +313,7 @@
<string name="nearby_commons">Commons</string>
<string name="about_rate_us">Avalie-nos</string>
<string name="about_faq">Perguntas frequentes</string>
<string name="user_guide">Guia de usuario</string>
<string name="user_guide">Guia de usuário</string>
<string name="welcome_skip_button">Pular Tutorial</string>
<string name="no_internet">A Internet não está disponível</string>
<string name="error_notifications">Erro ao tentar obter as notificações</string>
@ -521,7 +528,7 @@
<string name="media_location_permission_denied">Acesso à localização da mídia negado</string>
<string name="add_location_manually">É possível que não possamos obter automaticamente os dados de localização das imagens que você carregar. Por favor adicione a localização adequada para cada imagem antes de envia-las</string>
<string name="share_text">Carregue fotos na wiki Wikimedia Commons, diretamente do seu celular. Baixe o aolicativo Commons agora: %1$s</string>
<string name="share_via">Compartilhar aplicativo via...</string>
<string name="share_via">Compartilhar aplicativo via</string>
<string name="image_info">Informação da imagem</string>
<string name="no_categories_found">Nenhuma categoria encontrada</string>
<string name="no_depiction_found">Nenhuma representação encontrada</string>
@ -548,6 +555,7 @@
<string name="category_edit_helper_show_edit_title_success">Sucesso</string>
<plurals name="category_edit_helper_show_edit_message_if">
<item quantity="one">A categoria %1$s foi adicionada.</item>
<item quantity="many">As categorias %1$s foram adicionadas.</item>
<item quantity="other">As categorias %1$s foram adicionadas.</item>
</plurals>
<string name="category_edit_helper_edit_message_else">Não foi possível adicionar categorias.</string>
@ -556,6 +564,7 @@
<string name="depictions_edit_helper_show_edit_title">Editar representações</string>
<plurals name="depictions_edit_helper_show_edit_message_if">
<item quantity="one">O elemento retratado %1$s está adicionado.</item>
<item quantity="many">Os elementos retratados %1$s estão adicionados.</item>
<item quantity="other">Os elementos retratados %1$s estão adicionados.</item>
</plurals>
<string name="depictions_edit_helper_edit_message_else">Não foi possível adicionar os elementos retratados.</string>
@ -767,6 +776,7 @@
<string name="saving_gpx_file">Salvar arquivo GPX</string>
<plurals name="custom_picker_images_selected_title_appendix">
<item quantity="one">%d imagem selecinada</item>
<item quantity="many">%d imagens selecionadas</item>
<item quantity="other">%d imagens selecionadas</item>
</plurals>
<string name="write_something_about_the_item">Escreva algo sobre o item %1$s. Isso será visivel publicamente.</string>