Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Article language tweaks for Article "Read More" #258

Merged
merged 7 commits into from Nov 18, 2015

Conversation

montehurd
Copy link
Contributor

Hebrew version of "food" article:

Before:
screen shot 2015-11-17 at 4 36 41 pm

After:
screen shot 2015-11-17 at 4 03 06 pm

public let titleText: String = localizedStringForKeyFallingBackOnEnglish("article-read-more-title")
let site:MWKSite
init(site: MWKSite) {
self.site = site
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is calling super.init() optional in swift?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Interestingly in Swift instance vars need to be set before super init... http://stackoverflow.com/a/24150540

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah - anything that is a let needs to be set before you call init - since that is a constant (can't change later). for instance you can see the delegate ivar in the toc view controller is just a var. so it doesn't need to be set.

@coreyfloyd
Copy link
Contributor

👍

@bgerstle
Copy link
Contributor

👍 restarted the build, which looks to be failing due to timeout issues.

bgerstle added a commit that referenced this pull request Nov 18, 2015
Article language tweaks for Article "Read More"
@bgerstle bgerstle merged commit 5a729a8 into master Nov 18, 2015
@bgerstle bgerstle deleted the feature/T115543/read-more-tweaks branch November 18, 2015 18:38
bgerstle added a commit that referenced this pull request Dec 28, 2015
Article language tweaks for Article "Read More"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants