Skip to content

Commit

Permalink
ctrl z
Browse files Browse the repository at this point in the history
  • Loading branch information
golson-wmf committed Nov 21, 2024
1 parent 0f4340a commit 490e1c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Wikipedia/Code/YearInReviewCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ final class YearInReviewCoordinator: NSObject, Coordinator {
let format = WMFLocalizedString("year-in-review-base-edits-subtitle", value: "This year, Wikipedia was edited at an average rate of %1$@ times per minute. Articles are collaboratively created and improved using reliable sources. All of us have knowledge to share, [learn how to participate.](%2$@)", comment: "Year in review, collective edits per minute slide subtitle, %1$@ is replaced with the number of edits per minute text, e.g. \"342\". %2$@ is replaced with a link to the Mediawiki Apps team FAQ about editing.")

let numEditsPerMinString = formatNumber(342, fractionDigits: 0)
let editingFAQ = "https://www.mediawiki.org/wiki/Wikimedia_Apps/iOS_FAQ/\(languageCode ?? "")#Editing"
var editingFAQ: String
if languageCode == "es" {
editingFAQ = "https://www.mediawiki.org/wiki/Wikimedia_Apps/iOS_FAQ/es#Edici%C3%B3n"
} else {
editingFAQ = "https://www.mediawiki.org/wiki/Special:MyLanguage/Wikimedia_Apps/iOS_FAQ#Editing"
}
return String.localizedStringWithFormat(format, numEditsPerMinString, editingFAQ)
}

Expand Down

0 comments on commit 490e1c6

Please sign in to comment.