From 896bbaea895295ea70ea845b55d609142fe18a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Dr=C4=85g?= Date: Wed, 16 May 2018 18:12:56 +0200 Subject: [PATCH] Use Unicode in translatable strings See https://developer.gnome.org/hig/stable/typography.html --- lib/sources/sp-perf-source.c | 4 ++-- src/sp-window.c | 4 ++-- tools/sysprof-cli.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/sources/sp-perf-source.c b/lib/sources/sp-perf-source.c index b9fb5667..3bdc722f 100644 --- a/lib/sources/sp-perf-source.c +++ b/lib/sources/sp-perf-source.c @@ -477,7 +477,7 @@ sp_perf_get_tracepoint_fields (SpTracepointDesc *tp_desc, g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, - _("Sysprof failed to find field '%s'."), + _("Sysprof failed to find field “%s”."), optional_tp->fields[i]); g_free (contents); return FALSE; @@ -490,7 +490,7 @@ sp_perf_get_tracepoint_fields (SpTracepointDesc *tp_desc, g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, - _("Sysprof failed to parse offset for '%s'."), + _("Sysprof failed to parse offset for “%s”."), optional_tp->fields[i]); g_free (contents); return FALSE; diff --git a/src/sp-window.c b/src/sp-window.c index ee77ff22..5245184d 100644 --- a/src/sp-window.c +++ b/src/sp-window.c @@ -192,7 +192,7 @@ sp_window_update_subtitle (SpWindow *self) dt = g_date_time_new_from_timeval_local (&tv); str = g_date_time_format (dt, "%x %X"); - label = g_strdup_printf (_("%s - %s"), filename, str); + label = g_strdup_printf (_("%s — %s"), filename, str); gtk_label_set_label (self->subtitle, label); } @@ -978,7 +978,7 @@ sp_window_open (SpWindow *self, { sp_window_notify_user (self, GTK_MESSAGE_ERROR, - _("The file \"%s\" could not be opened. Only local files are supported."), + _("The file “%s” could not be opened. Only local files are supported."), g_file_get_uri (file)); return; } diff --git a/tools/sysprof-cli.c b/tools/sysprof-cli.c index 7ddcf13c..fab85c6e 100644 --- a/tools/sysprof-cli.c +++ b/tools/sysprof-cli.c @@ -103,7 +103,7 @@ main (gint argc, sp_clock_init (); - context = g_option_context_new (_("[CAPTURE_FILE] - Sysprof")); + context = g_option_context_new (_("[CAPTURE_FILE] — Sysprof")); g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE); if (!g_option_context_parse (context, &argc, &argv, &error))