From f4e68e0dfbd642046fe605a015ec81dc097004a7 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 19 Mar 2018 14:05:43 -0400 Subject: [PATCH] l10n // FREEBIE --- Signal/src/ViewControllers/MediaTileViewController.swift | 8 ++++---- Signal/translations/en.lproj/Localizable.strings | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Signal/src/ViewControllers/MediaTileViewController.swift b/Signal/src/ViewControllers/MediaTileViewController.swift index 7310356fe8..0cfd117a70 100644 --- a/Signal/src/ViewControllers/MediaTileViewController.swift +++ b/Signal/src/ViewControllers/MediaTileViewController.swift @@ -181,8 +181,8 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryCe owsFail("\(logTag) in \(#function) unable to build section header for kLoadOlderSectionIdx") return defaultView } - // TODO localize - sectionHeader.configure(title: "Loading older...") + let title = NSLocalizedString("GALLERY_TILES_LOADING_OLDER_LABEL", comment: "Label indicating loading is in progress") + sectionHeader.configure(title: title) return sectionHeader case kLoadNewerSectionIdx: 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") return defaultView } - // TODO localize - sectionHeader.configure(title: "Loading newer...") + let title = NSLocalizedString("GALLERY_TILES_LOADING_MORE_RECENT_LABEL", comment: "Label indicating loading is in progress") + sectionHeader.configure(title: title) return sectionHeader default: guard let sectionHeader = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: MediaGallerySectionHeader.reuseIdentifier, for: indexPath) as? MediaGallerySectionHeader else { diff --git a/Signal/translations/en.lproj/Localizable.strings b/Signal/translations/en.lproj/Localizable.strings index 64aea7e2c9..ff3bc1e23c 100644 --- a/Signal/translations/en.lproj/Localizable.strings +++ b/Signal/translations/en.lproj/Localizable.strings @@ -767,6 +767,12 @@ /* Accessibilty label for finishing new 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. */ "GENERIC_ATTACHMENT_DEFAULT_TYPE" = "?";