[gnome-todo/wip/piotrdrag/translatabledebugs] project: Unmark g_debug and g_warning strings from translation



commit b5135b96059eefbc9dd5e6d7315ba22665007f3c
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Sun Jan 21 22:41:54 2018 +0100

    project: Unmark g_debug and g_warning strings from translation
    
    They are technical, untranslatable because of hardcoded variable
    positions, and most importantly, not visible to the user.
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-todo/issues/142

 plugins/eds/gtd-plugin-eds.c             |  4 ++--
 plugins/eds/gtd-provider-eds.c           | 14 +++++++-------
 plugins/eds/gtd-provider-local.c         |  2 +-
 plugins/eds/gtd-task-list-eds.c          |  2 +-
 plugins/todo-txt/gtd-provider-todo-txt.c |  4 ++--
 po/POTFILES.in                           |  1 -
 src/views/gtd-list-selector-panel.c      |  2 +-
 7 files changed, 14 insertions(+), 15 deletions(-)
---
diff --git a/plugins/eds/gtd-plugin-eds.c b/plugins/eds/gtd-plugin-eds.c
index f07b788..3ea3409 100644
--- a/plugins/eds/gtd-plugin-eds.c
+++ b/plugins/eds/gtd-plugin-eds.c
@@ -240,7 +240,7 @@ gtd_plugin_eds_goa_client_finish_cb (GObject      *client,
     {
       g_warning ("%s: %s: %s",
                  G_STRFUNC,
-                 _("Error loading GNOME Online Accounts"),
+                 "Error loading GNOME Online Accounts",
                  error->message);
 
       gtd_manager_emit_error_message (gtd_manager_get_default (),
@@ -271,7 +271,7 @@ gtd_plugin_eds_source_registry_finish_cb (GObject      *source_object,
   if (error)
     {
       g_warning ("%s: %s",
-                 _("Error loading Evolution-Data-Server backend"),
+                 "Error loading Evolution-Data-Server backend",
                  error->message);
 
       g_clear_error (&error);
diff --git a/plugins/eds/gtd-provider-eds.c b/plugins/eds/gtd-provider-eds.c
index 4cfd6ab..c406f9d 100644
--- a/plugins/eds/gtd-provider-eds.c
+++ b/plugins/eds/gtd-provider-eds.c
@@ -161,7 +161,7 @@ gtd_provider_eds_fill_task_list (GObject      *client,
     {
       g_warning ("%s: %s: %s",
                  G_STRFUNC,
-                 _("Error fetching tasks from list"),
+                 "Error fetching tasks from list",
                  error->message);
 
       gtd_manager_emit_error_message (gtd_manager_get_default (),
@@ -199,7 +199,7 @@ gtd_provider_eds_on_client_connected (GObject      *source_object,
     {
       g_debug ("%s: %s (%s): %s",
                G_STRFUNC,
-               _("Failed to connect to task list"),
+               "Failed to connect to task list",
                e_source_get_uid (source),
                error->message);
 
@@ -255,7 +255,7 @@ gtd_provider_eds_on_client_connected (GObject      *source_object,
 
   g_debug ("%s: %s (%s)",
            G_STRFUNC,
-           _("Task list source successfully connected"),
+           "Task list source successfully connected",
            e_source_get_display_name (source));
 }
 
@@ -364,7 +364,7 @@ gtd_manager__invoke_authentication (GObject      *source_object,
     {
       g_warning ("%s: %s (%s): %s",
                  G_STRFUNC,
-                 _("Failed to prompt for credentials"),
+                 "Failed to prompt for credentials",
                  e_source_get_uid (source),
                  error->message);
     }
@@ -387,7 +387,7 @@ gtd_provider_local_credentials_prompt_done (GObject      *source_object,
     {
       g_warning ("%s: %s '%s': %s",
                  G_STRFUNC,
-                 _("Failed to prompt for credentials for"),
+                 "Failed to prompt for credentials for",
                  e_source_get_display_name (source),
                  error->message);
 
@@ -441,7 +441,7 @@ gtd_provider_eds_credentials_required (ESourceRegistry          *registry,
     {
       g_warning ("%s: %s '%s': %s",
                  G_STRFUNC,
-                 _("Authentication failure"),
+                 "Authentication failure",
                  e_source_get_display_name (source),
                  error->message);
     }
@@ -480,7 +480,7 @@ gtd_provider_eds_load_registry (GtdProviderEds  *provider)
 
   if (error != NULL)
     {
-      g_warning ("%s: %s", _("Error loading task manager"), error->message);
+      g_warning ("%s: %s", "Error loading task manager", error->message);
       g_error_free (error);
       return;
     }
diff --git a/plugins/eds/gtd-provider-local.c b/plugins/eds/gtd-provider-local.c
index 333f3e6..946171a 100644
--- a/plugins/eds/gtd-provider-local.c
+++ b/plugins/eds/gtd-provider-local.c
@@ -88,7 +88,7 @@ gtd_provider_local_create_source (GtdProviderEds *provider)
     {
       g_warning ("%s: %s: %s",
                  G_STRFUNC,
-                 _("Error creating new task list"),
+                 "Error creating new task list",
                  error->message);
 
       gtd_manager_emit_error_message (gtd_manager_get_default (),
diff --git a/plugins/eds/gtd-task-list-eds.c b/plugins/eds/gtd-task-list-eds.c
index bd5e8b3..43cd9c5 100644
--- a/plugins/eds/gtd-task-list-eds.c
+++ b/plugins/eds/gtd-task-list-eds.c
@@ -161,7 +161,7 @@ save_task_list_finished_cb (GObject      *source,
     {
       g_warning ("%s: %s: %s",
                  G_STRFUNC,
-                 _("Error saving task list"),
+                 "Error saving task list",
                  error->message);
       g_clear_error (&error);
     }
diff --git a/plugins/todo-txt/gtd-provider-todo-txt.c b/plugins/todo-txt/gtd-provider-todo-txt.c
index 47e7e10..2e9d281 100644
--- a/plugins/todo-txt/gtd-provider-todo-txt.c
+++ b/plugins/todo-txt/gtd-provider-todo-txt.c
@@ -105,7 +105,7 @@ emit_generic_error (GError *error)
 {
   g_warning ("%s: %s: %s",
              G_STRFUNC,
-             _("Error while opening Todo.txt"),
+             "Error while opening Todo.txt",
              error->message);
 
   gtd_manager_emit_error_message (gtd_manager_get_default (),
@@ -240,7 +240,7 @@ gtd_provider_todo_txt_load_tasks (GtdProviderTodoTxt *self)
         {
           g_warning ("%s: %s: %s",
                      G_STRFUNC,
-                     _("Error while reading a line from Todo.txt"),
+                     "Error while reading a line from Todo.txt",
                      error->message);
 
           gtd_manager_emit_error_message (gtd_manager_get_default (),
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9b17052..a99921b 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -22,7 +22,6 @@ plugins/eds/edit-pane.ui
 plugins/eds/gtd-plugin-eds.c
 plugins/eds/gtd-provider-eds.c
 plugins/eds/gtd-provider-local.c
-plugins/eds/gtd-task-list-eds.c
 plugins/scheduled-panel/gtd-panel-scheduled.c
 plugins/score/score/__init__.py
 plugins/today-panel/gtd-panel-today.c
diff --git a/src/views/gtd-list-selector-panel.c b/src/views/gtd-list-selector-panel.c
index dee6f66..ae83e22 100644
--- a/src/views/gtd-list-selector-panel.c
+++ b/src/views/gtd-list-selector-panel.c
@@ -185,7 +185,7 @@ gtd_list_selector_panel_list_color_set (GtkColorChooser      *button,
 
   g_debug ("%s: %s: %s",
            G_STRFUNC,
-           _("Setting new color for task list"),
+           "Setting new color for task list",
            gtd_task_list_get_name (list));
 
   gtk_color_chooser_get_rgba (button, &new_color);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]