Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: "View" linux notification action is not localized #30273

Open
3 tasks done
scottnonnenberg-signal opened this issue Jul 26, 2021 · 14 comments
Open
3 tasks done

[Bug]: "View" linux notification action is not localized #30273

scottnonnenberg-signal opened this issue Jul 26, 2021 · 14 comments

Comments

@scottnonnenberg-signal
Copy link

Preflight Checklist

Electron Version

13.1.6

What operating system are you using?

Ubuntu

Operating System Version

Ubuntu 20.04.2 LTS

What arch are you using?

x64

Last Known Working Electron version

none

Expected Behavior

On German OS, the action that comes along with a notification is translated.

Actual Behavior

On German OS, the action that comes along with a notification is the english string "View."

Testcase Gist URL

No response

Additional Information

Thanks to the great investigative work of @Sgn-32, a Signal Desktop user, here... signalapp/Signal-Desktop#5402

...we've established that Electron is using an un-localized "View" string when creating linux notifications with an action:

// NB: On Unity and on any other DE using Notify-OSD, adding a notification
// action will cause the notification to display as a modal dialog box.
if (NotifierSupportsActions()) {
libnotify_loader_.notify_notification_add_action(
notification_, "default", "View", OnNotificationViewThunk, this,
nullptr);
}

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@github-actions github-actions bot added the stale label Oct 5, 2022
@scottnonnenberg-signal
Copy link
Author

The hardcoded "View" is still there:

// NB: On Unity and on any other DE using Notify-OSD, adding a notification
// action will cause the notification to display as a modal dialog box.
if (NotifierSupportsActions()) {
libnotify_loader_.notify_notification_add_action(
notification_, "default", "View", OnNotificationViewThunk, this,
nullptr);
}

@github-actions github-actions bot removed the stale label Oct 6, 2022
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@github-actions github-actions bot added the stale label Jan 10, 2023
@scottnonnenberg-signal
Copy link
Author

Even in the 23.x.y branch the hardcoded "View" is still there:

https://github.com/electron/electron/blob/23-x-y/shell/browser/notifications/linux/libnotify_notification.cc#L93-L99

@github-actions github-actions bot removed the stale label Jan 11, 2023
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@github-actions github-actions bot added the stale label Apr 12, 2023
@scottnonnenberg-signal
Copy link
Author

Even in the 25-x-y branch, the hardcoded "View" string is there:

if (NotifierSupportsActions()) {
libnotify_loader_.notify_notification_add_action(
notification_, "default", "View", OnNotificationViewThunk, this,
nullptr);
}

@github-actions github-actions bot removed the stale label Apr 13, 2023
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@github-actions github-actions bot added the stale label Jul 12, 2023
@scottnonnenberg-signal
Copy link
Author

The hardcode string is still there in the 26-x-y branch:

if (NotifierSupportsActions()) {
libnotify_loader_.notify_notification_add_action(
notification_, "default", "View", OnNotificationViewThunk, this,
nullptr);
}

@github-actions github-actions bot removed the stale label Jul 13, 2023
@electron-issue-triage
Copy link

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@Sgn-32
Copy link

Sgn-32 commented Oct 13, 2023

The hardcode string is still there in the 27-x-y branch:

if (NotifierSupportsActions()) {
libnotify_loader_.notify_notification_add_action(
notification_, "default", "View", OnNotificationView, this, nullptr);
}

@electron-issue-triage
Copy link

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@Sgn-32
Copy link

Sgn-32 commented Jan 12, 2024

The hardcode string is still there in the 28-x-y branch:

if (NotifierSupportsActions()) {
libnotify_loader_.notify_notification_add_action(
notification_, "default", "View", OnNotificationView, this, nullptr);
}

@electron-issue-triage
Copy link

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@Sgn-32
Copy link

Sgn-32 commented Apr 13, 2024

// NB: On Unity and on any other DE using Notify-OSD, adding a notification
// action will cause the notification to display as a modal dialog box.
if (NotifierSupportsActions()) {
libnotify_loader_.notify_notification_add_action(
notification_, "default", "View", OnNotificationView, this, nullptr);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants