GNOME Bugzilla – Bug 760438
[PATCH] notify-send --help shows translated characters as question marks on some locales
Last modified: 2016-10-22 03:36:19 UTC
Please see the attached patch. notify-send should call setlocale in main function in order to correctly show translated messages.
Running 'notify-send --help' with zh_TW.UTF-8 locale shows:
notify-send [???] <SUMMARY> [BODY] - create a notification
-?, --help ???????
-u, --urgency=LEVEL Specifies the urgency level (low, normal, critical).
-t, --expire-time=TIME Specifies the timeout in milliseconds at which to expire the notification.
-a, --app-name=APP_NAME Specifies the app name for the icon
-i, --icon=ICON[,ICON...] Specifies an icon filename or stock icon to display.
-c, --category=TYPE[,TYPE...] Specifies the notification category.
-h, --hint=TYPE:NAME:VALUE Specifies basic extra data to pass. Valid types are int, double, string and byte.
-v, --version Version of the package.
Created attachment 318706 [details] [review]
notify-send: Call setlocale in main function
It is required to correctly show translated messages on some locales.
Does anyone have time to review the patch? It has stayed here for more than 5 months.
Does anyone have time to review the patch? It has stayed here for more than 6 months.
Does anyone have time to review the patch? It has stayed here for more than 7 months.
Review of attachment 318706 [details] [review]:
Looks good to me.
Attachment 318706 [details] pushed as 5398ecf - notify-send: Call setlocale in main function