Skip to content

Commit

Permalink
Fix polish localisation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingajda committed Apr 19, 2020
1 parent cfda5c5 commit 8f54563
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Covid-19 Status/pl.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"COVID-19 Status" = "COVID-19 Status";
"COVID-19 (%@)\nConfirmed | Deaths | Recured" = "COVID-19 (%@)\nPrzypadki | Zgony | Wyzdrowienia";
"Today: +%@ confirmed +%@ deaths" = "Dzisiaj: +%@ przypadki +%@ zgony";
"version %@" = "wesja %@";
"COVID-19 Update (%@)" = "Aktualizacja COVID-19 (%@)";
"version %@" = "wersja %@";
"Loading..." = "Ładowanie...";
"COVID-19 Status: Error" = "COVID-19 Status: Błąd";
"unknown cause" = "powód nieznany";
Expand Down
2 changes: 1 addition & 1 deletion Covid-19 Status/pl.lproj/Main.strings
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"1Xt-HY-uBw.title" = "Covid-19 Status";

/* Class = "NSTextFieldCell"; title = "Regions history size:"; ObjectID = "4Z9-8E-CNG"; */
"4Z9-8E-CNG.title" = "Wielkość historii regionów:";
"Lf0-pZ-i74.title" = "Rozmiar historii regionów:";

/* Class = "NSMenuItem"; title = "Quit"; ObjectID = "4sb-4s-VLi"; */
"4sb-4s-VLi.title" = "Zamknij";
Expand Down
3 changes: 2 additions & 1 deletion Covid-19 Status/src/Statistics/Notificator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ class Notificator {

func showNotification(stats: RegionStats) {
let formatter = StatsFormatter(stats: stats, method: settings.formatMethod)
let regionName = NSLocalizedString(stats.country, comment: "")

let notification = NSUserNotification()
notification.identifier = formatter.getUniqueId()
notification.title = "COVID-19 Update (\(NSLocalizedString(stats.country, comment: "")))"
notification.title = String(format: NSLocalizedString("COVID-19 Update (%@)", comment: ""), regionName)
notification.subtitle = formatter.getRegionStatus().string
notification.informativeText = formatter.getRegionDelta()
notification.soundName = NSUserNotificationDefaultSoundName
Expand Down

0 comments on commit 8f54563

Please sign in to comment.