From 64ce198a075d146eebe5057da66d85d24f85cc27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Dr=C4=85g?= Date: Tue, 25 Sep 2018 20:12:27 +0200 Subject: [PATCH] Add translator comments --- lib/resources/ui/sp-profiler-menu-button.ui | 6 +++--- lib/visualizers/sp-visualizer-list.c | 2 ++ lib/widgets/sp-profiler-menu-button.c | 2 ++ src/resources/ui/sp-window.ui | 20 ++++++++++---------- src/sp-window.c | 12 ++++++++++++ tools/sysprof-cli.c | 1 + 6 files changed, 30 insertions(+), 13 deletions(-) diff --git a/lib/resources/ui/sp-profiler-menu-button.ui b/lib/resources/ui/sp-profiler-menu-button.ui index 4e6359fd..610183ee 100644 --- a/lib/resources/ui/sp-profiler-menu-button.ui +++ b/lib/resources/ui/sp-profiler-menu-button.ui @@ -55,7 +55,7 @@ true - Profile my _entire system + Profile my _entire system true true 1 @@ -92,7 +92,7 @@ - Search + Search true @@ -161,7 +161,7 @@ true - Inherit current environment + Inherit current environment true diff --git a/lib/visualizers/sp-visualizer-list.c b/lib/visualizers/sp-visualizer-list.c index f3375259..b759dc5c 100644 --- a/lib/visualizers/sp-visualizer-list.c +++ b/lib/visualizers/sp-visualizer-list.c @@ -272,6 +272,7 @@ handle_capture_results (GObject *object, if (state->has_cpu) { GtkWidget *row = g_object_new (SP_TYPE_CPU_VISUALIZER_ROW, + /* Translators: CPU is the processor. */ "title", _("CPU"), "height-request", 50, "selectable", FALSE, @@ -286,6 +287,7 @@ handle_capture_results (GObject *object, { GdkRGBA rgba; GtkWidget *row = g_object_new (SP_TYPE_LINE_VISUALIZER_ROW, + /* Translators: FPS is frames per second. */ "title", _("FPS"), "height-request", 35, "selectable", FALSE, diff --git a/lib/widgets/sp-profiler-menu-button.c b/lib/widgets/sp-profiler-menu-button.c index 53b02c59..09ddacb2 100644 --- a/lib/widgets/sp-profiler-menu-button.c +++ b/lib/widgets/sp-profiler-menu-button.c @@ -134,11 +134,13 @@ sp_profiler_menu_button_update_label (SpProfilerMenuButton *self) if (n_pids == 1) { + /* Translators: %d is the PID of the process. */ str = g_strdup_printf (_("Process %d"), pids[0]); gtk_label_set_label (priv->label, str); return; } + /* Translators: %u is the number (amount) of processes. */ str = g_strdup_printf (ngettext("%u Process", "%u Processes", n_pids), n_pids); gtk_label_set_label (priv->label, str); } diff --git a/src/resources/ui/sp-window.ui b/src/resources/ui/sp-window.ui index 12b8dea4..3e70875a 100644 --- a/src/resources/ui/sp-window.ui +++ b/src/resources/ui/sp-window.ui @@ -41,7 +41,7 @@ - _Record + _Record true true 100 @@ -115,7 +115,7 @@ - _Close + _Close true true 100 @@ -209,7 +209,7 @@ zoom.zoom-out true - Zoom out (Ctrl+-) + Zoom out (Ctrl+-) true