| 46 | } |
| 47 | |
| 48 | static char * |
| 49 | queue_complete_message (void) |
| 50 | { |
| 51 | char *msg; |
| 52 | |
| 53 | if (n_failed > 0) |
| 54 | { |
| 55 | msg = g_strdup_printf((const char *)ngettext("%d item complete, %d failed", |
| 56 | "%d items complete, %d failed", |
| 57 | n_succeeded), n_succeeded, n_failed); |
| 58 | } |
| 59 | else |
| 60 | { |
| 61 | msg = g_strdup_printf((const char *)ngettext("%d item has finished encoding", |
| 62 | "%d items have finished encoding", |
| 63 | n_succeeded), n_succeeded); |
| 64 | } |
| 65 | return msg; |
| 66 | } |
| 67 | |
| 68 | static void |
| 69 | send_notification (const char *title, const char *body, const char *category) |