Skip to content

Code Quality: Improved display of plural strings in Status Center #17300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 34 additions & 34 deletions src/Files.App/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -3490,27 +3490,27 @@
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CompressComplete_Header" xml:space="preserve">
<value>Compressed {0} item(s) to "{1}"</value>
<value>Compressed {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CompressComplete_SubHeader" xml:space="preserve">
<value>Compressed {0} item(s) from "{1}" to "{2}"</value>
<value>Compressed {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CompressFailed_Header" xml:space="preserve">
<value>Error compressing {0} item(s) to "{1}"</value>
<value>Error compressing {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CompressFailed_SubHeader" xml:space="preserve">
<value>Failed to compress {0} item(s) from "{1}" to "{2}"</value>
<value>Failed to compress {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CompressInProgress_Header" xml:space="preserve">
<value>Compressing {0} item(s) to "{1}"</value>
<value>Compressing {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CompressInProgress_SubHeader" xml:space="preserve">
<value>Compressing {0} item(s) from "{1}" to "{2}"</value>
<value>Compressing {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_GitCloneCanceled_Header" xml:space="preserve">
Expand Down Expand Up @@ -3550,63 +3550,63 @@
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_InstallFontCanceled_SubHeader" xml:space="preserve">
<value>Canceled installing {0} font(s) from "{1}"</value>
<value>Canceled installing {0, plural, one {# font} other {# fonts}} from "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_InstallFontComplete_Header" xml:space="preserve">
<value>Installed {0} font(s)</value>
<value>Installed {0, plural, one {# font} other {# fonts}}</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_InstallFontComplete_SubHeader" xml:space="preserve">
<value>Installed {0} font(s) from "{1}"</value>
<value>Installed {0, plural, one {# font} other {# fonts}} from "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_InstallFontFailed_Header" xml:space="preserve">
<value>Error installing {0} font(s)</value>
<value>Error installing {0, plural, one {# font} other {# fonts}}</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_InstallFontFailed_SubHeader" xml:space="preserve">
<value>Failed to install {0} font(s) from "{1}"</value>
<value>Failed to install {0, plural, one {# font} other {# fonts}} from "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_InstallFontInProgress_Header" xml:space="preserve">
<value>Installing {0} font(s)</value>
<value>Installing {0, plural, one {# font} other {# fonts}}</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_InstallFontInProgress_SubHeader" xml:space="preserve">
<value>Installing {0} font(s) from "{1}"</value>
<value>Installing {0, plural, one {# font} other {# fonts}} from "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CopyCanceled_Header" xml:space="preserve">
<value>Canceled copying {0} item(s) to "{1}"</value>
<value>Canceled copying {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CopyCanceled_SubHeader" xml:space="preserve">
<value>Canceled copying {0} item(s) from "{1}" to "{2}"</value>
<value>Canceled copying {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CopyComplete_Header" xml:space="preserve">
<value>Copied {0} item(s) to "{1}"</value>
<value>Copied {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CopyComplete_SubHeader" xml:space="preserve">
<value>Copied {0} item(s) from "{1}" to "{2}"</value>
<value>Copied {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CopyFailed_Header" xml:space="preserve">
<value>Error copying {0} item(s) to "{1}"</value>
<value>Error copying {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CopyFailed_SubHeader" xml:space="preserve">
<value>Failed to copy {0} item(s) from "{1}" to "{2}"</value>
<value>Failed to copy {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CopyInProgress_Header" xml:space="preserve">
<value>Copying {0} item(s) to "{1}"</value>
<value>Copying {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_CopyInProgress_SubHeader" xml:space="preserve">
<value>Copying {0} item(s) from "{1}" to "{2}"</value>
<value>Copying {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_DecompressCanceled_Header" xml:space="preserve">
Expand Down Expand Up @@ -3642,55 +3642,55 @@
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_DeleteCanceled_Header" xml:space="preserve">
<value>Canceled deleting {0} item(s) from "{1}"</value>
<value>Canceled deleting {0, plural, one {# item} other {# items}} from "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_DeleteComplete_Header" xml:space="preserve">
<value>Deleted {0} item(s) from "{1}"</value>
<value>Deleted {0, plural, one {# item} other {# items}} from "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_DeleteFailed_Header" xml:space="preserve">
<value>Error deleting {0} item(s) from "{1}"</value>
<value>Error deleting {0, plural, one {# item} other {# items}} from "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_DeleteFailed_SubHeader" xml:space="preserve">
<value>Failed to delete {0} item(s) from "{1}"</value>
<value>Failed to delete {0, plural, one {# item} other {# items}} from "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_DeleteInProgress_Header" xml:space="preserve">
<value>Deleting {0} item(s) from "{1}"</value>
<value>Deleting {0, plural, one {# item} other {# items}} from "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_MoveCanceled_Header" xml:space="preserve">
<value>Canceled moving {0} item(s) to "{1}"</value>
<value>Canceled moving {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_MoveCanceled_SubHeader" xml:space="preserve">
<value>Canceled moving {0} item(s) from "{1}" to "{2}"</value>
<value>Canceled moving {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_MoveComplete_Header" xml:space="preserve">
<value>Moved {0} item(s) to "{1}"</value>
<value>Moved {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_MoveComplete_SubHeader" xml:space="preserve">
<value>Moved {0} item(s) from "{1}" to "{2}"</value>
<value>Moved {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_MoveInProgress_Header" xml:space="preserve">
<value>Moving {0} item(s) to "{1}"</value>
<value>Moving {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_MoveInProgress_SubHeader" xml:space="preserve">
<value>Moving {0} item(s) from "{1}" to "{2}"</value>
<value>Moving {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_MoveFailed_Header" xml:space="preserve">
<value>Error moving {0} item(s) to "{1}"</value>
<value>Error moving {0, plural, one {# item} other {# items}} to "{1}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_MoveFailed_SubHeader" xml:space="preserve">
<value>Failed to move {0} item(s) from "{1}" to "{2}"</value>
<value>Failed to move {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
<comment>Shown in a StatusCenter card.</comment>
</data>
<data name="StatusCenter_EmptyRecycleBinCancel_Header" xml:space="preserve">
Expand Down
Loading
Loading