Skip to content

Commit

Permalink
Fix localizations for notifications #68
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed May 14, 2020
1 parent 0a82108 commit 15f4997
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified ACHNBrowserUI/ACHNBrowserUI/fr.lproj/Localizable.strings
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public class NotificationManager: NSObject {
if dayOfTheWeek >= today {
let content = UNMutableNotificationContent()
content.title = NSLocalizedString("Turnip prices", comment: "")
content.body = NSLocalizedString("Your prices predictions for \(isMorning ? NSLocalizedString("this morning", comment: "") : NSLocalizedString("this afternoon", comment: "")) should be around \(day) bells. With a minimum of \(min) and a maximum of \(max).", comment: "")
let timeString = isMorning ? NSLocalizedString("this morning", comment: "") : NSLocalizedString("this afternoon", comment: "")
content.body = String.init(format: NSLocalizedString("Your prices predictions for %@ should be around %lld bells. With a minimum of %lld and a maximum of %lld.", comment: ""),
timeString, day, min, max)

var components = DateComponents()
components.calendar = Calendar(identifier: .gregorian)
Expand Down

0 comments on commit 15f4997

Please sign in to comment.