Forráskód Böngészése

Library: folder sub-items should be referred to as 'files' not 'tracks'

(cherry picked from commit 9e0c61355a277af6d56777253d0cc8969f29b277)
Felix Paul Kühne 10 éve
szülő
commit
04bcb884bf

+ 1 - 1
Sources/VLCPlaylistCollectionViewCell.m

@@ -285,7 +285,7 @@
 {
     self.titleLabel.text = label.name;
     NSUInteger count = label.files.count;
-    self.subtitleLabel.text = [NSString stringWithFormat:(count == 1) ? NSLocalizedString(@"LIBRARY_SINGLE_TRACK", nil) : NSLocalizedString(@"LIBRARY_TRACKS", nil), count];
+    self.subtitleLabel.text = (count == 1) ? NSLocalizedString(@"ONE_FILE", nil) : [NSString stringWithFormat:NSLocalizedString(@"NUM_OF_FILES", nil), count];
     self.mediaIsUnreadView.hidden = YES;
     self.progressView.hidden = YES;
     self.folderIconView.image = [UIImage imageNamed:@"folderIcon"];

+ 1 - 1
Sources/VLCPlaylistTableViewCell.m

@@ -277,7 +277,7 @@
 {
     self.titleLabel.text = label.name;
     NSUInteger count = label.files.count;
-    self.subtitleLabel.text = [NSString stringWithFormat:(count == 1) ? NSLocalizedString(@"LIBRARY_SINGLE_TRACK", nil) : NSLocalizedString(@"LIBRARY_TRACKS", nil), count];
+    self.subtitleLabel.text = (count == 1) ? NSLocalizedString(@"ONE_FILE", nil) : [NSString stringWithFormat:NSLocalizedString(@"NUM_OF_FILES", nil), count];
     self.mediaIsUnreadView.hidden = YES;
     self.progressIndicator.hidden = YES;
     self.folderIconView.image = [UIImage imageNamed:@"folderIcon"];