// FREEBIE
This commit is contained in:
Michael Kirk 2018-03-19 14:05:43 -04:00
parent fb4182c41f
commit f4e68e0dfb
2 changed files with 10 additions and 4 deletions

View file

@ -181,8 +181,8 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryCe
owsFail("\(logTag) in \(#function) unable to build section header for kLoadOlderSectionIdx") owsFail("\(logTag) in \(#function) unable to build section header for kLoadOlderSectionIdx")
return defaultView return defaultView
} }
// TODO localize let title = NSLocalizedString("GALLERY_TILES_LOADING_OLDER_LABEL", comment: "Label indicating loading is in progress")
sectionHeader.configure(title: "Loading older...") sectionHeader.configure(title: title)
return sectionHeader return sectionHeader
case kLoadNewerSectionIdx: case kLoadNewerSectionIdx:
guard let sectionHeader = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: MediaGalleryLoadingHeader.reuseIdentifier, for: indexPath) as? MediaGalleryLoadingHeader else { guard let sectionHeader = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: MediaGalleryLoadingHeader.reuseIdentifier, for: indexPath) as? MediaGalleryLoadingHeader else {
@ -190,8 +190,8 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryCe
owsFail("\(logTag) in \(#function) unable to build section header for kLoadOlderSectionIdx") owsFail("\(logTag) in \(#function) unable to build section header for kLoadOlderSectionIdx")
return defaultView return defaultView
} }
// TODO localize let title = NSLocalizedString("GALLERY_TILES_LOADING_MORE_RECENT_LABEL", comment: "Label indicating loading is in progress")
sectionHeader.configure(title: "Loading newer...") sectionHeader.configure(title: title)
return sectionHeader return sectionHeader
default: default:
guard let sectionHeader = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: MediaGallerySectionHeader.reuseIdentifier, for: indexPath) as? MediaGallerySectionHeader else { guard let sectionHeader = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: MediaGallerySectionHeader.reuseIdentifier, for: indexPath) as? MediaGallerySectionHeader else {

View file

@ -767,6 +767,12 @@
/* Accessibilty label for finishing new group */ /* Accessibilty label for finishing new group */
"FINISH_GROUP_CREATION_LABEL" = "Finish creating group"; "FINISH_GROUP_CREATION_LABEL" = "Finish creating group";
/* Label indicating loading is in progress */
"GALLERY_TILES_LOADING_MORE_RECENT_LABEL" = "Loadering Newer Media...";
/* Label indicating loading is in progress */
"GALLERY_TILES_LOADING_OLDER_LABEL" = "Loading Older Media...";
/* A default label for attachment whose file extension cannot be determined. */ /* A default label for attachment whose file extension cannot be determined. */
"GENERIC_ATTACHMENT_DEFAULT_TYPE" = "?"; "GENERIC_ATTACHMENT_DEFAULT_TYPE" = "?";