Skip to content

Commit 80c9b43

Browse files
Code Quality: Improved display of plural strings in Status Center (#17300)
1 parent 5de7ede commit 80c9b43

File tree

2 files changed

+186
-197
lines changed

2 files changed

+186
-197
lines changed

src/Files.App/Strings/en-US/Resources.resw

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3490,27 +3490,27 @@
34903490
<comment>Shown in a StatusCenter card.</comment>
34913491
</data>
34923492
<data name="StatusCenter_CompressComplete_Header" xml:space="preserve">
3493-
<value>Compressed {0} item(s) to "{1}"</value>
3493+
<value>Compressed {0, plural, one {# item} other {# items}} to "{1}"</value>
34943494
<comment>Shown in a StatusCenter card.</comment>
34953495
</data>
34963496
<data name="StatusCenter_CompressComplete_SubHeader" xml:space="preserve">
3497-
<value>Compressed {0} item(s) from "{1}" to "{2}"</value>
3497+
<value>Compressed {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
34983498
<comment>Shown in a StatusCenter card.</comment>
34993499
</data>
35003500
<data name="StatusCenter_CompressFailed_Header" xml:space="preserve">
3501-
<value>Error compressing {0} item(s) to "{1}"</value>
3501+
<value>Error compressing {0, plural, one {# item} other {# items}} to "{1}"</value>
35023502
<comment>Shown in a StatusCenter card.</comment>
35033503
</data>
35043504
<data name="StatusCenter_CompressFailed_SubHeader" xml:space="preserve">
3505-
<value>Failed to compress {0} item(s) from "{1}" to "{2}"</value>
3505+
<value>Failed to compress {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
35063506
<comment>Shown in a StatusCenter card.</comment>
35073507
</data>
35083508
<data name="StatusCenter_CompressInProgress_Header" xml:space="preserve">
3509-
<value>Compressing {0} item(s) to "{1}"</value>
3509+
<value>Compressing {0, plural, one {# item} other {# items}} to "{1}"</value>
35103510
<comment>Shown in a StatusCenter card.</comment>
35113511
</data>
35123512
<data name="StatusCenter_CompressInProgress_SubHeader" xml:space="preserve">
3513-
<value>Compressing {0} item(s) from "{1}" to "{2}"</value>
3513+
<value>Compressing {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
35143514
<comment>Shown in a StatusCenter card.</comment>
35153515
</data>
35163516
<data name="StatusCenter_GitCloneCanceled_Header" xml:space="preserve">
@@ -3550,63 +3550,63 @@
35503550
<comment>Shown in a StatusCenter card.</comment>
35513551
</data>
35523552
<data name="StatusCenter_InstallFontCanceled_SubHeader" xml:space="preserve">
3553-
<value>Canceled installing {0} font(s) from "{1}"</value>
3553+
<value>Canceled installing {0, plural, one {# font} other {# fonts}} from "{1}"</value>
35543554
<comment>Shown in a StatusCenter card.</comment>
35553555
</data>
35563556
<data name="StatusCenter_InstallFontComplete_Header" xml:space="preserve">
3557-
<value>Installed {0} font(s)</value>
3557+
<value>Installed {0, plural, one {# font} other {# fonts}}</value>
35583558
<comment>Shown in a StatusCenter card.</comment>
35593559
</data>
35603560
<data name="StatusCenter_InstallFontComplete_SubHeader" xml:space="preserve">
3561-
<value>Installed {0} font(s) from "{1}"</value>
3561+
<value>Installed {0, plural, one {# font} other {# fonts}} from "{1}"</value>
35623562
<comment>Shown in a StatusCenter card.</comment>
35633563
</data>
35643564
<data name="StatusCenter_InstallFontFailed_Header" xml:space="preserve">
3565-
<value>Error installing {0} font(s)</value>
3565+
<value>Error installing {0, plural, one {# font} other {# fonts}}</value>
35663566
<comment>Shown in a StatusCenter card.</comment>
35673567
</data>
35683568
<data name="StatusCenter_InstallFontFailed_SubHeader" xml:space="preserve">
3569-
<value>Failed to install {0} font(s) from "{1}"</value>
3569+
<value>Failed to install {0, plural, one {# font} other {# fonts}} from "{1}"</value>
35703570
<comment>Shown in a StatusCenter card.</comment>
35713571
</data>
35723572
<data name="StatusCenter_InstallFontInProgress_Header" xml:space="preserve">
3573-
<value>Installing {0} font(s)</value>
3573+
<value>Installing {0, plural, one {# font} other {# fonts}}</value>
35743574
<comment>Shown in a StatusCenter card.</comment>
35753575
</data>
35763576
<data name="StatusCenter_InstallFontInProgress_SubHeader" xml:space="preserve">
3577-
<value>Installing {0} font(s) from "{1}"</value>
3577+
<value>Installing {0, plural, one {# font} other {# fonts}} from "{1}"</value>
35783578
<comment>Shown in a StatusCenter card.</comment>
35793579
</data>
35803580
<data name="StatusCenter_CopyCanceled_Header" xml:space="preserve">
3581-
<value>Canceled copying {0} item(s) to "{1}"</value>
3581+
<value>Canceled copying {0, plural, one {# item} other {# items}} to "{1}"</value>
35823582
<comment>Shown in a StatusCenter card.</comment>
35833583
</data>
35843584
<data name="StatusCenter_CopyCanceled_SubHeader" xml:space="preserve">
3585-
<value>Canceled copying {0} item(s) from "{1}" to "{2}"</value>
3585+
<value>Canceled copying {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
35863586
<comment>Shown in a StatusCenter card.</comment>
35873587
</data>
35883588
<data name="StatusCenter_CopyComplete_Header" xml:space="preserve">
3589-
<value>Copied {0} item(s) to "{1}"</value>
3589+
<value>Copied {0, plural, one {# item} other {# items}} to "{1}"</value>
35903590
<comment>Shown in a StatusCenter card.</comment>
35913591
</data>
35923592
<data name="StatusCenter_CopyComplete_SubHeader" xml:space="preserve">
3593-
<value>Copied {0} item(s) from "{1}" to "{2}"</value>
3593+
<value>Copied {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
35943594
<comment>Shown in a StatusCenter card.</comment>
35953595
</data>
35963596
<data name="StatusCenter_CopyFailed_Header" xml:space="preserve">
3597-
<value>Error copying {0} item(s) to "{1}"</value>
3597+
<value>Error copying {0, plural, one {# item} other {# items}} to "{1}"</value>
35983598
<comment>Shown in a StatusCenter card.</comment>
35993599
</data>
36003600
<data name="StatusCenter_CopyFailed_SubHeader" xml:space="preserve">
3601-
<value>Failed to copy {0} item(s) from "{1}" to "{2}"</value>
3601+
<value>Failed to copy {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
36023602
<comment>Shown in a StatusCenter card.</comment>
36033603
</data>
36043604
<data name="StatusCenter_CopyInProgress_Header" xml:space="preserve">
3605-
<value>Copying {0} item(s) to "{1}"</value>
3605+
<value>Copying {0, plural, one {# item} other {# items}} to "{1}"</value>
36063606
<comment>Shown in a StatusCenter card.</comment>
36073607
</data>
36083608
<data name="StatusCenter_CopyInProgress_SubHeader" xml:space="preserve">
3609-
<value>Copying {0} item(s) from "{1}" to "{2}"</value>
3609+
<value>Copying {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
36103610
<comment>Shown in a StatusCenter card.</comment>
36113611
</data>
36123612
<data name="StatusCenter_DecompressCanceled_Header" xml:space="preserve">
@@ -3642,55 +3642,55 @@
36423642
<comment>Shown in a StatusCenter card.</comment>
36433643
</data>
36443644
<data name="StatusCenter_DeleteCanceled_Header" xml:space="preserve">
3645-
<value>Canceled deleting {0} item(s) from "{1}"</value>
3645+
<value>Canceled deleting {0, plural, one {# item} other {# items}} from "{1}"</value>
36463646
<comment>Shown in a StatusCenter card.</comment>
36473647
</data>
36483648
<data name="StatusCenter_DeleteComplete_Header" xml:space="preserve">
3649-
<value>Deleted {0} item(s) from "{1}"</value>
3649+
<value>Deleted {0, plural, one {# item} other {# items}} from "{1}"</value>
36503650
<comment>Shown in a StatusCenter card.</comment>
36513651
</data>
36523652
<data name="StatusCenter_DeleteFailed_Header" xml:space="preserve">
3653-
<value>Error deleting {0} item(s) from "{1}"</value>
3653+
<value>Error deleting {0, plural, one {# item} other {# items}} from "{1}"</value>
36543654
<comment>Shown in a StatusCenter card.</comment>
36553655
</data>
36563656
<data name="StatusCenter_DeleteFailed_SubHeader" xml:space="preserve">
3657-
<value>Failed to delete {0} item(s) from "{1}"</value>
3657+
<value>Failed to delete {0, plural, one {# item} other {# items}} from "{1}"</value>
36583658
<comment>Shown in a StatusCenter card.</comment>
36593659
</data>
36603660
<data name="StatusCenter_DeleteInProgress_Header" xml:space="preserve">
3661-
<value>Deleting {0} item(s) from "{1}"</value>
3661+
<value>Deleting {0, plural, one {# item} other {# items}} from "{1}"</value>
36623662
<comment>Shown in a StatusCenter card.</comment>
36633663
</data>
36643664
<data name="StatusCenter_MoveCanceled_Header" xml:space="preserve">
3665-
<value>Canceled moving {0} item(s) to "{1}"</value>
3665+
<value>Canceled moving {0, plural, one {# item} other {# items}} to "{1}"</value>
36663666
<comment>Shown in a StatusCenter card.</comment>
36673667
</data>
36683668
<data name="StatusCenter_MoveCanceled_SubHeader" xml:space="preserve">
3669-
<value>Canceled moving {0} item(s) from "{1}" to "{2}"</value>
3669+
<value>Canceled moving {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
36703670
<comment>Shown in a StatusCenter card.</comment>
36713671
</data>
36723672
<data name="StatusCenter_MoveComplete_Header" xml:space="preserve">
3673-
<value>Moved {0} item(s) to "{1}"</value>
3673+
<value>Moved {0, plural, one {# item} other {# items}} to "{1}"</value>
36743674
<comment>Shown in a StatusCenter card.</comment>
36753675
</data>
36763676
<data name="StatusCenter_MoveComplete_SubHeader" xml:space="preserve">
3677-
<value>Moved {0} item(s) from "{1}" to "{2}"</value>
3677+
<value>Moved {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
36783678
<comment>Shown in a StatusCenter card.</comment>
36793679
</data>
36803680
<data name="StatusCenter_MoveInProgress_Header" xml:space="preserve">
3681-
<value>Moving {0} item(s) to "{1}"</value>
3681+
<value>Moving {0, plural, one {# item} other {# items}} to "{1}"</value>
36823682
<comment>Shown in a StatusCenter card.</comment>
36833683
</data>
36843684
<data name="StatusCenter_MoveInProgress_SubHeader" xml:space="preserve">
3685-
<value>Moving {0} item(s) from "{1}" to "{2}"</value>
3685+
<value>Moving {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
36863686
<comment>Shown in a StatusCenter card.</comment>
36873687
</data>
36883688
<data name="StatusCenter_MoveFailed_Header" xml:space="preserve">
3689-
<value>Error moving {0} item(s) to "{1}"</value>
3689+
<value>Error moving {0, plural, one {# item} other {# items}} to "{1}"</value>
36903690
<comment>Shown in a StatusCenter card.</comment>
36913691
</data>
36923692
<data name="StatusCenter_MoveFailed_SubHeader" xml:space="preserve">
3693-
<value>Failed to move {0} item(s) from "{1}" to "{2}"</value>
3693+
<value>Failed to move {0, plural, one {# item} other {# items}} from "{1}" to "{2}"</value>
36943694
<comment>Shown in a StatusCenter card.</comment>
36953695
</data>
36963696
<data name="StatusCenter_EmptyRecycleBinCancel_Header" xml:space="preserve">

0 commit comments

Comments
 (0)