diff --git a/Tusker/Views/Status/ConversationMainStatusTableViewCell.swift b/Tusker/Views/Status/ConversationMainStatusTableViewCell.swift index 55cc48ce..61d9ecda 100644 --- a/Tusker/Views/Status/ConversationMainStatusTableViewCell.swift +++ b/Tusker/Views/Status/ConversationMainStatusTableViewCell.swift @@ -67,9 +67,10 @@ class ConversationMainStatusTableViewCell: BaseStatusTableViewCell { override func updateStatusState(status: StatusMO) { super.updateStatusState(status: status) - // todo: localize me - totalFavoritesButton.setTitle("\(status.favouritesCount) Favorite\(status.favouritesCount == 1 ? "" : "s")", for: .normal) - totalReblogsButton.setTitle("\(status.reblogsCount) Reblog\(status.reblogsCount == 1 ? "" : "s")", for: .normal) + let favoritesFormat = NSLocalizedString("favorites count", comment: "conv main status favorites button label") + totalFavoritesButton.setTitle(String.localizedStringWithFormat(favoritesFormat, status.favouritesCount), for: .normal) + let reblogsFormat = NSLocalizedString("reblogs count", comment: "conv main status reblogs button label") + totalReblogsButton.setTitle(String.localizedStringWithFormat(reblogsFormat, status.reblogsCount), for: .normal) } override func updateUI(account: AccountMO) { diff --git a/Tusker/en.lproj/Localizable.stringsdict b/Tusker/en.lproj/Localizable.stringsdict index e01bcd8a..d00bd7f7 100644 --- a/Tusker/en.lproj/Localizable.stringsdict +++ b/Tusker/en.lproj/Localizable.stringsdict @@ -61,5 +61,37 @@ %u replies + favorites count + + NSStringLocalizedFormatKey + %#@favorites@ + favorites + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + u + one + 1 favorite + other + %u favorites + + + reblogs count + + NSStringLocalizedFormatKey + %#@reblogs@ + reblogs + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + u + one + 1 reblog + other + %u reblogs + +