From 5cff27bcb5c874ff349bd2a8155ad49ad73e2cd3 Mon Sep 17 00:00:00 2001 From: Kyon Li Date: Thu, 18 Aug 2016 12:38:21 +0800 Subject: [PATCH] Refine localization --- Source/FolioReaderCenter.swift | 2 +- Source/FolioReaderConfig.swift | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/FolioReaderCenter.swift b/Source/FolioReaderCenter.swift index d727c6879..74b2e9aa1 100755 --- a/Source/FolioReaderCenter.swift +++ b/Source/FolioReaderCenter.swift @@ -958,7 +958,7 @@ class FolioReaderCenter: UIViewController, UICollectionViewDelegate, UICollectio let pageController = PageViewController(transitionStyle: .Scroll, navigationOrientation: .Horizontal, options:nil) pageController.viewControllerOne = chapter pageController.viewControllerTwo = highlight - pageController.segmentedControlItems = ["Contents", readerConfig.localizedHighlightsTitle] + pageController.segmentedControlItems = [readerConfig.localizedContentsTitle, readerConfig.localizedHighlightsTitle] let nav = UINavigationController(rootViewController: pageController) presentViewController(nav, animated: true, completion: nil) diff --git a/Source/FolioReaderConfig.swift b/Source/FolioReaderConfig.swift index 54fc927ba..53df64905 100755 --- a/Source/FolioReaderConfig.swift +++ b/Source/FolioReaderConfig.swift @@ -93,7 +93,10 @@ public class FolioReaderConfig: NSObject { /// Localizes Highlight title public var localizedHighlightsTitle = NSLocalizedString("Highlights", comment: "") - + + /// Localizes Content title + public var localizedContentsTitle = NSLocalizedString("Contents", comment: "") + /// Localizes Highlight date format. This is a `dateFormat` from `NSDateFormatter`, so be careful 🤔 public var localizedHighlightsDateFormat = "MMM dd, YYYY | HH:mm" public var localizedHighlightMenu = NSLocalizedString("Highlight", comment: "")