May be plurals added to following strings
Running following lint give warning for the strings that should be changed to plurals.
lint --check PluralsCandidate ./res
http://tools.android.com/tips/lint-checks
Result
res\values\02-strings.xml:409: Warning: Formatting %d followed by words ("files"): This should probably be a plural rather than a string [PluralsCandidate]
<string name="malicious_archive_exceeds_limit">Malicious archive. Size exceeds %1$s or contains more than %2$d files</string>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
res\values\03-dialogs.xml:91: Warning: Formatting %d followed by words ("existing"): This should probably be a plural rather than a string [PluralsCandidate]
<string name="import_update_details">Updated %1$d of %2$d existing notes.</string>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
res\values\03-dialogs.xml:178: Warning: Formatting %d followed by words ("cards"): This should probably be a plural rather than a string [PluralsCandidate]
<string name="integrity_check_fixed_no_home_deck">%d cards with incorrect home decks were recovered. Please see the manual for more information.</string>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
res\values\04-network.xml:56: Warning: Formatting %d followed by words ("seconds"): This should probably be a plural rather than a string [PluralsCandidate]
<string name="sync_log_clocks_unsynchronized">Your clockÆs off by %1$d seconds%2$s. Make sure that the date, time, and timezone on your phone are set correctly, then sync again.</string>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
res\values\04-network.xml:83: Warning: Formatting %d followed by words ("media"): This should probably be a plural rather than a string [PluralsCandidate]
<string name="sync_media_partial_updated">Media sync partially completed:\n%1$d media files downloaded.\n%2$d media files uploaded.</string>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
res\values\04-network.xml:84: Warning: Formatting %d followed by words ("media"): This should probably be a plural rather than a string [PluralsCandidate]
<string name="sync_media_changes_count">%d media changes to upload</string>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
res\values\04-network.xml:85: Warning: Formatting %d followed by words ("media"): This should probably be a plural rather than a string [PluralsCandidate]
<string name="sync_media_downloaded_count">%d media files downloaded</string>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
res\values\10-preferences.xml:126: Warning: Formatting %d followed by words ("cards"): This should probably be a plural rather than a string [PluralsCandidate]
<string name="notification_minimum_cards_due">More than %d cards due</string>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 errors, 8 warnings
Oh! Really nice find
I'll take this!
Hi. If no one is working on this, can I take this one?
@siju-s Go ahead and take this 👍
Is there anyone still working on this? I'm looking for a good first issue to start contributing and I might be able to take care of this.
Out of the 8 Plural Candidates. 2 (First and last one) probably don't need to be changed to plurals. For first one , both the params are constants. So String will be always be same. For last one, It is used to create "notify when" dialog in notification preferences where strings always in plural form. For remaining, we need to add plurals. It looks like no one is assigned to this. @mikehardy can you assign this to me ?
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically
Hi is this issue resolved or can I work on it. I am a novice and I want to get started with open source. I would love to get help from community
Hey, If no one's working on this, I would like to work on it.
@deekshatw You've requested a number of issues, it'd be good to get a PR in for those before taking on more
@david-allison hey I wanted to know if the issue is still open? I can take up this issue and solve it.