Browse Source

Fix things.

pull/101/head
Abhishek 3 years ago
parent
commit
9e16294ba0
  1. 1
      Clocker/Clocker/ca.lproj/Localizable.strings
  2. 1
      Clocker/Clocker/de.lproj/Localizable.strings
  3. 3
      Clocker/Clocker/en.lproj/Localizable.strings
  4. 1
      Clocker/Clocker/es.lproj/Localizable.strings
  5. 1
      Clocker/Clocker/fr.lproj/Localizable.strings
  6. 1
      Clocker/Clocker/hi.lproj/Localizable.strings
  7. 1
      Clocker/Clocker/hr.lproj/Localizable.strings
  8. 1
      Clocker/Clocker/it.lproj/Localizable.strings
  9. 1
      Clocker/Clocker/ja.lproj/Localizable.strings
  10. 1
      Clocker/Clocker/ko.lproj/Localizable.strings
  11. 1
      Clocker/Clocker/nl.lproj/Localizable.strings
  12. 1
      Clocker/Clocker/pt-BR.lproj/Localizable.strings
  13. 1
      Clocker/Clocker/ru.lproj/Localizable.strings
  14. 1
      Clocker/Clocker/zh-Hans.lproj/Localizable.strings
  15. 1
      Clocker/Clocker/zh-Hant.lproj/Localizable.strings
  16. 9
      Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift

1
Clocker/Clocker/ca.lproj/Localizable.strings

@ -163,3 +163,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/de.lproj/Localizable.strings

@ -163,3 +163,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

3
Clocker/Clocker/en.lproj/Localizable.strings

@ -163,5 +163,8 @@
"Daylights Saving transition will occur in < 24 hours" = "Daylights Saving transition will occur in < 24 hours";
"Copied to Clipboard" = "Copied to Clipboard";
// Upcoming Event View
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/es.lproj/Localizable.strings

@ -165,3 +165,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/fr.lproj/Localizable.strings

@ -164,3 +164,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/hi.lproj/Localizable.strings

@ -159,3 +159,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/hr.lproj/Localizable.strings

@ -165,3 +165,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/it.lproj/Localizable.strings

@ -164,3 +164,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/ja.lproj/Localizable.strings

@ -163,3 +163,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/ko.lproj/Localizable.strings

@ -166,3 +166,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/nl.lproj/Localizable.strings

@ -163,3 +163,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/pt-BR.lproj/Localizable.strings

@ -164,3 +164,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/ru.lproj/Localizable.strings

@ -156,3 +156,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/zh-Hans.lproj/Localizable.strings

@ -157,3 +157,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

1
Clocker/Clocker/zh-Hant.lproj/Localizable.strings

@ -164,3 +164,4 @@
"Copied to Clipboard" = "Copied to Clipboard";
"No upcoming events for today!" = "No upcoming events for today!";
"Great going." = "Great going.";
"Happy Weekend." = "Happy Weekend.";

9
Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift

@ -26,6 +26,7 @@ class UpcomingEventViewItem: NSCollectionViewItem {
zoomButton.image = nil
eventTitleLabel.stringValue = ""
eventSubtitleButton.stringValue = ""
meetingLink = nil
}
override var acceptsFirstResponder: Bool {
@ -85,8 +86,10 @@ class UpcomingEventViewItem: NSCollectionViewItem {
}
func setupEmptyState() {
let subtitle = NSCalendar.autoupdatingCurrent.isDateInWeekend(Date()) ? NSLocalizedString("Happy Weekend.", comment: "Button Title for no upcoming event") : NSLocalizedString("Great going.", comment: "Button Title for no upcoming event")
setAlternateState(NSLocalizedString("No upcoming events for today!", comment: "Next Event Label with no upcoming event"),
NSLocalizedString("Great going.", comment: "Button Title for no upcoming event"),
subtitle,
NSColor.systemGreen,
nil)
}
@ -121,7 +124,9 @@ class UpcomingEventViewItem: NSCollectionViewItem {
panelDelegate?.didClickSupplementaryButton(sender)
}
@objc func zoomButtonAction(_: Any) {
@objc func zoomButtonAction(_ sender: NSButton) {
guard sender.image != nil else { return }
if let meetingURL = meetingLink {
NSWorkspace.shared.open(meetingURL)
} else {

Loading…
Cancel
Save