Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Refine localization #120

Merged
merged 1 commit into from
Aug 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/FolioReaderCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion Source/FolioReaderConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: "")
Expand Down