Skip to content

Commit

Permalink
Updated enable timeout toast ui strings
Browse files Browse the repository at this point in the history
  • Loading branch information
noah-nuebling committed Mar 2, 2024
1 parent 9ab7f8b commit 865833a
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion App/SupportFiles/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>22356</string>
<string>22361</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>NSHumanReadableCopyright</key>
Expand Down
4 changes: 2 additions & 2 deletions App/UI/Main/Tabs/GeneralTabController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class GeneralTabController: NSViewController {
enableTimeoutTimer?.cancel()
})

/// Set up a timer that fires after `enableTimeout` seconds
/// Set up a timer that fires `enableTimeout` seconds after the user clicked
let timeSinceUserClick = CACurrentMediaTime() - userClickTS
let timerFireTime = DispatchTime.now() + enableTimeout - timeSinceUserClick
enableTimeoutTimer = DispatchSource.makeTimerSource(flags: [], queue: .main) /// Using main queue here since we're drawing UI from the callback
Expand All @@ -139,7 +139,7 @@ class GeneralTabController: NSViewController {
/// - The default duration `kMFToastDurationAutomatic` felt too short in this case. I wonder why that is? I think this toast is one of, if not the shortest toasts - maybe it has to do with that? Maybe it feels like it should display longer, because there's a delay until it shows up so it's harder to get back to? Maybe our tastes for how long the toasts should be changed? Maybe we should adjust the formula for `kMFToastDurationAutomatic`?

if let window = NSApp.mainWindow {
let rawMessage = NSLocalizedString("enable-timeout-toast", comment: "First draft: If you have **problems enabling** the app, click [here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/categories/guides).")
let rawMessage = NSLocalizedString("enable-timeout-toast", comment: "First draft: If you have **problems enabling** the app, click&nbsp;[here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/861).")
ToastNotificationController.attachNotification(withMessage: NSMutableAttributedString(coolMarkdown: rawMessage)!, to: window, forDuration: 10.0)
}
})
Expand Down
2 changes: 1 addition & 1 deletion Helper/SupportFiles/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>22356</string>
<string>22361</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSBackgroundOnly</key>
Expand Down
4 changes: 2 additions & 2 deletions Localization/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@
/* First draft: Zoom in or out in Safari and other apps.\n \nWorks like a two-finger double tap on an Apple Trackpad. */
"effect.smart-zoom.hint" = "Zoome rein oder raus in Safari und anderen Apps.\n \nFunktioniert wie mit zwei Fingern doppelt tippen auf einem Apple Trackpad.";

/* First draft: If you have **problems enabling** the app, click [here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/categories/guides). */
"enable-timeout-toast" = "Wenn du **Probleme** hast, die App **einzuschalten**, klicke&nbsp;[hier](https://github.com/noah-nuebling/mac-mouse-fix/discussions/categories/guides).";
/* First draft: If you have **problems enabling** the app, click&nbsp;[here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/861). */
"enable-timeout-toast" = "Wenn du **Probleme** hast, die App **einzuschalten**, klicke&nbsp;[hier](https://github.com/noah-nuebling/mac-mouse-fix/discussions/861).";

/* First draft: **Primary Mouse Button** can't be used\nPlease try another button */
"forbidden-capture-toast.1" = "**Primäre Maustaste** kann nicht verwendet werden\nBitte versuche eine andere Taste";
Expand Down
4 changes: 2 additions & 2 deletions Localization/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@
/* First draft: Zoom in or out in Safari and other apps.\n \nWorks like a two-finger double tap on an Apple Trackpad. */
"effect.smart-zoom.hint" = "Zoom in or out in Safari and other apps.\n \nWorks like a two-finger double tap on an Apple Trackpad.";

/* First draft: If you have **problems enabling** the app, click [here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/categories/guides). */
"enable-timeout-toast" = "If you have **problems enabling** the app, click [here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/categories/guides).";
/* First draft: If you have **problems enabling** the app, click&nbsp;[here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/861). */
"enable-timeout-toast" = "If you have **problems enabling** the app, click&nbsp;[here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/861).";

/* First draft: **Primary Mouse Button** can't be used\nPlease try another button */
"forbidden-capture-toast.1" = "**Primary Mouse Button** can't be used\nPlease try another button";
Expand Down
2 changes: 1 addition & 1 deletion Localization/ko.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
/* First draft: Zoom in or out in Safari and other apps.\n \nWorks like a two-finger double tap on an Apple Trackpad. */
"effect.smart-zoom.hint" = "Safari 등의 앱에서 콘텐츠를 확대하거나 축소합니다.\n \n이는 Apple 트랙패드에서 두 손가락으로 이중 탭하는 것과 같습니다.";

/* First draft: If you have **problems enabling** the app, click [here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/categories/guides). */
/* First draft: If you have **problems enabling** the app, click&nbsp;[here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/861). */
"enable-timeout-toast" = "enable-timeout-toast";

/* First draft: **Primary Mouse Button** can't be used\nPlease try another button */
Expand Down
2 changes: 1 addition & 1 deletion Localization/vi.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
/* First draft: Zoom in or out in Safari and other apps.\n \nWorks like a two-finger double tap on an Apple Trackpad. */
"effect.smart-zoom.hint" = "Phóng to hoặc thu nhỏ trong Safari và các ứng dụng khác.\n \nHoạt động như nhấp bằng hai ngón tay trên Apple Trackpad.";

/* First draft: If you have **problems enabling** the app, click [here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/categories/guides). */
/* First draft: If you have **problems enabling** the app, click&nbsp;[here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/861). */
"enable-timeout-toast" = "enable-timeout-toast";

/* First draft: **Primary Mouse Button** can't be used\nPlease try another button */
Expand Down
2 changes: 1 addition & 1 deletion Localization/zh-HK.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
/* First draft: Zoom in or out in Safari and other apps.\n \nWorks like a two-finger double tap on an Apple Trackpad. */
"effect.smart-zoom.hint" = "在Safari和其他應用程式中放大或縮小。\n \n作用相當於在Apple觸控板上用兩指點兩下";

/* First draft: If you have **problems enabling** the app, click [here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/categories/guides). */
/* First draft: If you have **problems enabling** the app, click&nbsp;[here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/861). */
"enable-timeout-toast" = "enable-timeout-toast";

/* First draft: **Primary Mouse Button** can't be used\nPlease try another button */
Expand Down
2 changes: 1 addition & 1 deletion Localization/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
/* First draft: Zoom in or out in Safari and other apps.\n \nWorks like a two-finger double tap on an Apple Trackpad. */
"effect.smart-zoom.hint" = "在Safari和其他应用程序中放大或缩小。\n \n作用相当于在Apple触控板上用双指轻点两下";

/* First draft: If you have **problems enabling** the app, click [here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/categories/guides). */
/* First draft: If you have **problems enabling** the app, click&nbsp;[here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/861). */
"enable-timeout-toast" = "enable-timeout-toast";

/* First draft: **Primary Mouse Button** can't be used\nPlease try another button */
Expand Down
2 changes: 1 addition & 1 deletion Localization/zh-Hant.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
/* First draft: Zoom in or out in Safari and other apps.\n \nWorks like a two-finger double tap on an Apple Trackpad. */
"effect.smart-zoom.hint" = "在Safari和其他應用程式中放大或縮小。\n \n作用相當於在Apple觸控式軌跡板上用兩指點兩下";

/* First draft: If you have **problems enabling** the app, click [here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/categories/guides). */
/* First draft: If you have **problems enabling** the app, click&nbsp;[here](https://github.com/noah-nuebling/mac-mouse-fix/discussions/861). */
"enable-timeout-toast" = "enable-timeout-toast";

/* First draft: **Primary Mouse Button** can't be used\nPlease try another button */
Expand Down

0 comments on commit 865833a

Please sign in to comment.