[gnome-builder] Make sure strings are marked for translation



commit 977493605023233204610b92346c37cf1e183a69
Author: Alexandre Franke <alexandre franke gmail com>
Date:   Mon Oct 13 15:42:09 2014 -0400

    Make sure strings are marked for translation

 src/animation/gb-animation.c                       |   26 +++++-----
 src/app/gb-application.c                           |    4 +-
 src/devhelp/gb-devhelp-tab.c                       |    4 +-
 src/devhelp/gb-devhelp-workspace.c                 |    4 +-
 src/editor/gb-editor-settings.c                    |   52 ++++++++++----------
 src/editor/gb-editor-tab.c                         |   18 +++---
 src/editor/gb-source-change-monitor.c              |    4 +-
 src/editor/gb-source-formatter.c                   |    6 +-
 src/editor/gb-source-search-highlighter.c          |    8 ++--
 src/editor/gb-source-view.c                        |    8 ++--
 src/gd/gd-tagged-entry.c                           |   18 ++++---
 src/gedit/gedit-menu-stack-switcher.c              |    4 +-
 src/markdown/gb-markdown-preview.c                 |    2 +-
 src/markdown/gs-markdown.c                         |    4 +-
 src/nautilus/nautilus-floating-bar.c               |   14 +++--
 src/snippets/gb-source-snippet-chunk.c             |   20 ++++----
 src/snippets/gb-source-snippet-completion-item.c   |    4 +-
 .../gb-source-snippet-completion-provider.c        |   10 ++--
 src/snippets/gb-source-snippet-parser.c            |    2 +-
 src/snippets/gb-source-snippet.c                   |   22 ++++----
 src/tabs/gb-notebook.c                             |    2 +-
 src/tabs/gb-tab-label.c                            |    4 +-
 src/theatrics/gb-box-theatric.c                    |   28 +++++-----
 src/trie/trie.c                                    |    4 +-
 src/workbench/gb-workbench.c                       |    2 +-
 src/workbench/gb-workspace.c                       |    8 ++--
 26 files changed, 145 insertions(+), 137 deletions(-)
---
diff --git a/src/animation/gb-animation.c b/src/animation/gb-animation.c
index 431d877..6d4cd24 100644
--- a/src/animation/gb-animation.c
+++ b/src/animation/gb-animation.c
@@ -677,7 +677,7 @@ gb_animation_add_property (GbAnimation  *animation,
     {
       if (!GTK_IS_WIDGET (priv->target))
         {
-          g_critical ("Cannot locate property %s in class %s",
+          g_critical (_("Cannot locate property %s in class %s"),
                       pspec->name, g_type_name (type));
           return;
         }
@@ -813,8 +813,8 @@ gb_animation_class_init (GbAnimationClass *klass)
    */
   gParamSpecs[PROP_DURATION] =
     g_param_spec_uint ("duration",
-                       _ ("Duration"),
-                       _ ("The duration of the animation"),
+                       _("Duration"),
+                       _("The duration of the animation"),
                        0,
                        G_MAXUINT,
                        250,
@@ -826,8 +826,8 @@ gb_animation_class_init (GbAnimationClass *klass)
 
   gParamSpecs[PROP_FRAME_CLOCK] =
     g_param_spec_object ("frame-clock",
-                         _ ("Frame Clock"),
-                         _ ("An optional frame-clock to synchronize with."),
+                         _("Frame Clock"),
+                         _("An optional frame-clock to synchronize with."),
                          GDK_TYPE_FRAME_CLOCK,
                          (G_PARAM_WRITABLE |
                           G_PARAM_CONSTRUCT_ONLY |
@@ -844,8 +844,8 @@ gb_animation_class_init (GbAnimationClass *klass)
    */
   gParamSpecs[PROP_MODE] =
     g_param_spec_enum ("mode",
-                       _ ("Mode"),
-                       _ ("The animation mode"),
+                       _("Mode"),
+                       _("The animation mode"),
                        GB_TYPE_ANIMATION_MODE,
                        GB_ANIMATION_LINEAR,
                        (G_PARAM_WRITABLE |
@@ -862,8 +862,8 @@ gb_animation_class_init (GbAnimationClass *klass)
    */
   gParamSpecs[PROP_TARGET] =
     g_param_spec_object ("target",
-                         _ ("Target"),
-                         _ ("The target of the animation"),
+                         _("Target"),
+                         _("The target of the animation"),
                          G_TYPE_OBJECT,
                          (G_PARAM_WRITABLE |
                           G_PARAM_CONSTRUCT_ONLY |
@@ -1023,13 +1023,13 @@ gb_object_animatev (gpointer        object,
         {
           if (!g_type_is_a (type, GTK_TYPE_WIDGET))
             {
-              g_critical ("Failed to find property %s in %s",
+              g_critical (_("Failed to find property %s in %s"),
                           name, g_type_name (type));
               goto failure;
             }
           if (!(parent = gtk_widget_get_parent (object)))
             {
-              g_critical ("Failed to find property %s in %s",
+              g_critical (_("Failed to find property %s in %s"),
                           name, g_type_name (type));
               goto failure;
             }
@@ -1037,7 +1037,7 @@ gb_object_animatev (gpointer        object,
           ptype = G_TYPE_FROM_INSTANCE (parent);
           if (!(pspec = gtk_container_class_find_child_property (pklass, name)))
             {
-              g_critical ("Failed to find property %s in %s or parent %s",
+              g_critical (_("Failed to find property %s in %s or parent %s"),
                           name, g_type_name (type), g_type_name (ptype));
               goto failure;
             }
@@ -1047,7 +1047,7 @@ gb_object_animatev (gpointer        object,
       G_VALUE_COLLECT (&value, args, 0, &error);
       if (error != NULL)
         {
-          g_critical ("Failed to retrieve va_list value: %s", error);
+          g_critical (_("Failed to retrieve va_list value: %s"), error);
           g_free (error);
           goto failure;
         }
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index 20e1aba..eb04a56 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -175,7 +175,7 @@ gb_application_register_keybindings (GbApplication *self)
                                    G_RESOURCE_LOOKUP_FLAGS_NONE, NULL);
   if (!gb_keybindings_load_bytes (keybindings, bytes, &error))
     {
-      g_warning ("Failed to load default keybindings: %s", error->message);
+      g_warning (_("Failed to load default keybindings: %s"), error->message);
       g_clear_error (&error);
     }
   g_bytes_unref (bytes);
@@ -190,7 +190,7 @@ gb_application_register_keybindings (GbApplication *self)
   if (g_file_test (path, G_FILE_TEST_EXISTS) &&
       !gb_keybindings_load_path (keybindings, path, &error))
     {
-      g_warning ("Failed to load local keybindings: %s", error->message);
+      g_warning (_("Failed to load local keybindings: %s"), error->message);
       g_clear_error (&error);
     }
   g_free (path);
diff --git a/src/devhelp/gb-devhelp-tab.c b/src/devhelp/gb-devhelp-tab.c
index 910b796..611918e 100644
--- a/src/devhelp/gb-devhelp-tab.c
+++ b/src/devhelp/gb-devhelp-tab.c
@@ -158,8 +158,8 @@ gb_devhelp_tab_class_init (GbDevhelpTabClass *klass)
 
   gParamSpecs[PROP_URI] =
     g_param_spec_string ("uri",
-                         _ ("Uri"),
-                         _ ("The uri for the web_view."),
+                         _("Uri"),
+                         _("The uri for the web_view."),
                          NULL,
                          (G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_URI,
diff --git a/src/devhelp/gb-devhelp-workspace.c b/src/devhelp/gb-devhelp-workspace.c
index 8f8f6a8..ccc94b9 100644
--- a/src/devhelp/gb-devhelp-workspace.c
+++ b/src/devhelp/gb-devhelp-workspace.c
@@ -96,7 +96,7 @@ on_new_tab_activated (GSimpleAction *action,
   priv = workspace->priv;
 
   tab = g_object_new (GB_TYPE_DEVHELP_TAB,
-                      "title", _ ("Empty Page"),
+                      "title", _("Empty Page"),
                       "visible", TRUE,
                       NULL);
   notebook = gb_multi_notebook_get_active_notebook (priv->multi_notebook);
@@ -298,7 +298,7 @@ gb_devhelp_workspace_init (GbDevhelpWorkspace *workspace)
   gtk_paned_add2 (priv->paned, GTK_WIDGET (priv->multi_notebook));
 
   tab = g_object_new (GB_TYPE_DEVHELP_TAB,
-                      "title", _ ("Empty Page"),
+                      "title", _("Empty Page"),
                       "visible", TRUE,
                       NULL);
   notebook = gb_multi_notebook_get_active_notebook (priv->multi_notebook);
diff --git a/src/editor/gb-editor-settings.c b/src/editor/gb-editor-settings.c
index c23adfd..aacb469 100644
--- a/src/editor/gb-editor-settings.c
+++ b/src/editor/gb-editor-settings.c
@@ -569,8 +569,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_AUTO_INDENT] =
     g_param_spec_boolean ("auto-indent",
-                          _ ("auto indent"),
-                          _ ("auto indent"),
+                          _("auto indent"),
+                          _("auto indent"),
                           TRUE,
                           (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_AUTO_INDENT,
@@ -578,8 +578,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_HIGHLIGHT_CURRENT_LINE] =
     g_param_spec_boolean ("highlight-current-line",
-                          _ ("highlight current line"),
-                          _ ("highlight current line"),
+                          _("highlight current line"),
+                          _("highlight current line"),
                           TRUE,
                           (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_HIGHLIGHT_CURRENT_LINE,
@@ -597,8 +597,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_INDENT_ON_TAB] =
     g_param_spec_boolean ("indent-on-tab",
-                          _ ("indent on tab"),
-                          _ ("indent on tab"),
+                          _("indent on tab"),
+                          _("indent on tab"),
                           FALSE,
                           (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_INDENT_ON_TAB,
@@ -606,8 +606,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_INSERT_SPACES_INSTEAD_OF_TABS] =
     g_param_spec_boolean ("insert-spaces-instead-of-tabs",
-                          _ ("insert spaces instead of tabs"),
-                          _ ("insert spaces instead of tabs"),
+                          _("insert spaces instead of tabs"),
+                          _("insert spaces instead of tabs"),
                           FALSE,
                           (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_INSERT_SPACES_INSTEAD_OF_TABS,
@@ -615,8 +615,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_SHOW_LINE_MARKS] =
     g_param_spec_boolean ("show-line-marks",
-                          _ ("show line marks"),
-                          _ ("show line marks"),
+                          _("show line marks"),
+                          _("show line marks"),
                           FALSE,
                           (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SHOW_LINE_MARKS,
@@ -624,8 +624,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_SHOW_LINE_NUMBERS] =
     g_param_spec_boolean ("show-line-numbers",
-                          _ ("show line numbers"),
-                          _ ("show line numbers"),
+                          _("show line numbers"),
+                          _("show line numbers"),
                           TRUE,
                           (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SHOW_LINE_NUMBERS,
@@ -633,8 +633,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_SHOW_RIGHT_MARGIN] =
     g_param_spec_boolean ("show-right-margin",
-                          _ ("show right margin"),
-                          _ ("show right margin"),
+                          _("show right margin"),
+                          _("show right margin"),
                           TRUE,
                           (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SHOW_RIGHT_MARGIN,
@@ -642,8 +642,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_SMART_HOME_END] =
     g_param_spec_boolean ("smart-home-end",
-                          _ ("smart home end"),
-                          _ ("smart home end"),
+                          _("smart home end"),
+                          _("smart home end"),
                           FALSE,
                           (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SMART_HOME_END,
@@ -651,8 +651,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_RIGHT_MARGIN_POSITION] =
     g_param_spec_uint ("right-margin-position",
-                       _ ("Right Margin Position"),
-                       _ ("The position of the right margin, if any."),
+                       _("Right Margin Position"),
+                       _("The position of the right margin, if any."),
                        1,
                        1000,
                        80,
@@ -662,8 +662,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_INDENT_WIDTH] =
     g_param_spec_uint ("indent-width",
-                       _ ("Indent Width"),
-                       _ ("The indent width."),
+                       _("Indent Width"),
+                       _("The indent width."),
                        1,
                        100,
                        2,
@@ -673,8 +673,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_TAB_WIDTH] =
     g_param_spec_uint ("tab-width",
-                       _ ("Tab Width"),
-                       _ ("The width of tabs."),
+                       _("Tab Width"),
+                       _("The width of tabs."),
                        1,
                        32,
                        2,
@@ -684,8 +684,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_FONT_DESC] =
     g_param_spec_boxed ("font-desc",
-                        _ ("Font Description"),
-                        _ ("A PangoFontDescription to be used."),
+                        _("Font Description"),
+                        _("A PangoFontDescription to be used."),
                         PANGO_TYPE_FONT_DESCRIPTION,
                         (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_FONT_DESC,
@@ -693,8 +693,8 @@ gb_editor_settings_class_init (GbEditorSettingsClass *klass)
 
   gParamSpecs[PROP_STYLE_SCHEME] =
     g_param_spec_object ("style-scheme",
-                         _ ("Style Scheme"),
-                         _ ("The style scheme to use in the source view."),
+                         _("Style Scheme"),
+                         _("The style scheme to use in the source view."),
                          GTK_SOURCE_TYPE_STYLE_SCHEME,
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_STYLE_SCHEME,
diff --git a/src/editor/gb-editor-tab.c b/src/editor/gb-editor-tab.c
index 12e0733..bfa5623 100644
--- a/src/editor/gb-editor-tab.c
+++ b/src/editor/gb-editor-tab.c
@@ -405,7 +405,7 @@ update_search_position_label (GbEditorTab *tab)
   else
     gtk_style_context_remove_class (context, GTK_STYLE_CLASS_ERROR);
 
-  text = g_strdup_printf (_ ("%u of %u"), pos, count);
+  text = g_strdup_printf (_("%u of %u"), pos, count);
   set_search_position_label (tab, text);
   g_free (text);
 }
@@ -478,10 +478,10 @@ gb_editor_tab_cursor_moved (GbEditorTab      *tab,
     phrase = gb_editor_vim_get_phrase (tab->priv->vim);
 
   if (!gb_str_empty0 (phrase))
-    text = g_strdup_printf (_ ("%s\tLine %u, Column %u"),
+    text = g_strdup_printf (_("%s\tLine %u, Column %u"),
                             phrase, ln + 1, col + 1);
   else
-    text = g_strdup_printf (_ ("Line %u, Column %u"), ln + 1, col + 1);
+    text = g_strdup_printf (_("Line %u, Column %u"), ln + 1, col + 1);
 
   nautilus_floating_bar_set_primary_label (tab->priv->floating_bar, text);
   g_free (text);
@@ -1563,8 +1563,8 @@ gb_editor_tab_class_init (GbEditorTabClass *klass)
 
   gParamSpecs [PROP_DOCUMENT] =
     g_param_spec_object ("document",
-                         _ ("Document"),
-                         _ ("The document to edit."),
+                         _("Document"),
+                         _("The document to edit."),
                          GB_TYPE_EDITOR_DOCUMENT,
                          (G_PARAM_READABLE |
                           G_PARAM_STATIC_STRINGS));
@@ -1593,8 +1593,8 @@ gb_editor_tab_class_init (GbEditorTabClass *klass)
 
   gParamSpecs [PROP_FONT_DESC] =
     g_param_spec_boxed ("font-desc",
-                        _ ("Font Description"),
-                        _ ("The Pango Font Description to use in the editor."),
+                        _("Font Description"),
+                        _("The Pango Font Description to use in the editor."),
                         PANGO_TYPE_FONT_DESCRIPTION,
                         (G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_FONT_DESC,
@@ -1602,8 +1602,8 @@ gb_editor_tab_class_init (GbEditorTabClass *klass)
 
   gParamSpecs [PROP_SETTINGS] =
     g_param_spec_object ("settings",
-                         _ ("Settings"),
-                         _ ("The editor settings."),
+                         _("Settings"),
+                         _("The editor settings."),
                          GB_TYPE_EDITOR_SETTINGS,
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SETTINGS,
diff --git a/src/editor/gb-source-change-monitor.c b/src/editor/gb-source-change-monitor.c
index 5e63c82..f917122 100644
--- a/src/editor/gb-source-change-monitor.c
+++ b/src/editor/gb-source-change-monitor.c
@@ -440,7 +440,7 @@ gb_source_change_monitor_discover_repository (GbSourceChangeMonitor *monitor)
 
       if (!repo_file)
         {
-          g_message ("Failed to locate a gir repository: %s", error->message);
+          g_message (_("Failed to locate a gir repository: %s"), error->message);
           g_clear_error (&error);
           EXIT;
         }
@@ -449,7 +449,7 @@ gb_source_change_monitor_discover_repository (GbSourceChangeMonitor *monitor)
 
       if (!priv->repo)
         {
-          g_message ("Failed to open git repository: %s", error->message);
+          g_message (_("Failed to open git repository: %s"), error->message);
           g_clear_error (&error);
         }
 
diff --git a/src/editor/gb-source-formatter.c b/src/editor/gb-source-formatter.c
index 554e756..8e97933 100644
--- a/src/editor/gb-source-formatter.c
+++ b/src/editor/gb-source-formatter.c
@@ -115,7 +115,7 @@ gb_source_formatter_format (GbSourceFormatter *formatter,
       g_set_error (error,
                    G_IO_ERROR,
                    G_IO_ERROR_FAILED,
-                   "Failed to locate uncrustify configuration.");
+                   _("Failed to locate uncrustify configuration."));
       return FALSE;
     }
 
@@ -141,7 +141,7 @@ gb_source_formatter_format (GbSourceFormatter *formatter,
       g_set_error (error,
                    G_IO_ERROR,
                    G_IO_ERROR_FAILED,
-                   _ ("unrustify failure: %s"),
+                   _("uncrustify failure: %s"),
                    stderr_buf);
       goto finish;
     }
@@ -238,7 +238,7 @@ gb_source_formatter_extract_configs (void)
           if (!g_file_copy (file, target_file, G_FILE_COPY_NONE, NULL, NULL,
                             NULL, &error))
             {
-              g_warning ("Failure copying to \"%s\": %s", target_path,
+              g_warning (_("Failure copying to \"%s\": %s"), target_path,
                          error->message);
               g_clear_error (&error);
             }
diff --git a/src/editor/gb-source-search-highlighter.c b/src/editor/gb-source-search-highlighter.c
index 8e2e9fe..685807f 100644
--- a/src/editor/gb-source-search-highlighter.c
+++ b/src/editor/gb-source-search-highlighter.c
@@ -331,8 +331,8 @@ gb_source_search_highlighter_class_init (GbSourceSearchHighlighterClass *klass)
 
   gParamSpecs[PROP_SEARCH_CONTEXT] =
     g_param_spec_object ("search-context",
-                         _ ("Search Context"),
-                         _ ("Search Context"),
+                         _("Search Context"),
+                         _("Search Context"),
                          GTK_SOURCE_TYPE_SEARCH_CONTEXT,
                          (G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SEARCH_CONTEXT,
@@ -340,8 +340,8 @@ gb_source_search_highlighter_class_init (GbSourceSearchHighlighterClass *klass)
 
   gParamSpecs[PROP_SEARCH_SETTINGS] =
     g_param_spec_object ("search-settings",
-                         _ ("Search Settings"),
-                         _ ("Search Settings"),
+                         _("Search Settings"),
+                         _("Search Settings"),
                          GTK_SOURCE_TYPE_SEARCH_SETTINGS,
                          (G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SEARCH_SETTINGS,
diff --git a/src/editor/gb-source-view.c b/src/editor/gb-source-view.c
index c567295..632c28f 100644
--- a/src/editor/gb-source-view.c
+++ b/src/editor/gb-source-view.c
@@ -1425,8 +1425,8 @@ gb_source_view_class_init (GbSourceViewClass *klass)
 
   gParamSpecs[PROP_SHOW_SHADOW] =
     g_param_spec_boolean ("show-shadow",
-                          _ ("Show Shadow"),
-                          _ ("Show the search shadow"),
+                          _("Show Shadow"),
+                          _("Show the search shadow"),
                           FALSE,
                           (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SHOW_SHADOW,
@@ -1434,8 +1434,8 @@ gb_source_view_class_init (GbSourceViewClass *klass)
 
   gParamSpecs[PROP_SEARCH_HIGHLIGHTER] =
     g_param_spec_object ("search-highlighter",
-                         _ ("Search Highlighter"),
-                         _ ("Search Highlighter"),
+                         _("Search Highlighter"),
+                         _("Search Highlighter"),
                          GB_TYPE_SOURCE_SEARCH_HIGHLIGHTER,
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SEARCH_HIGHLIGHTER,
diff --git a/src/gd/gd-tagged-entry.c b/src/gd/gd-tagged-entry.c
index 82baed4..0ff2234 100644
--- a/src/gd/gd-tagged-entry.c
+++ b/src/gd/gd-tagged-entry.c
@@ -22,6 +22,8 @@
 
 #include "gd-tagged-entry.h"
 
+#include <glib/gi18n.h>
+
 #include <math.h>
 
 #define BUTTON_INTERNAL_SPACING 6
@@ -932,8 +934,8 @@ gd_tagged_entry_class_init (GdTaggedEntryClass *klass)
                   1, GD_TYPE_TAGGED_ENTRY_TAG);
 
   properties[PROP_TAG_BUTTON_VISIBLE] =
-    g_param_spec_boolean ("tag-close-visible", "Tag close icon visibility",
-                          "Whether the close button should be shown in tags.", TRUE,
+    g_param_spec_boolean ("tag-close-visible", _("Tag close icon visibility"),
+                          _("Whether the close button should be shown in tags."), TRUE,
                           G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS);
 
   g_type_class_add_private (klass, sizeof (GdTaggedEntryPrivate));
@@ -1026,16 +1028,16 @@ gd_tagged_entry_tag_class_init (GdTaggedEntryTagClass *klass)
   oclass->get_property = gd_tagged_entry_tag_get_property;
 
   tag_properties[PROP_TAG_LABEL] =
-    g_param_spec_string ("label", "Label",
-                         "Text to show on the tag.", NULL,
+    g_param_spec_string ("label", _("Label"),
+                         _("Text to show on the tag."), NULL,
                          G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
   tag_properties[PROP_TAG_HAS_CLOSE_BUTTON] =
-    g_param_spec_boolean ("has-close-button", "Tag has a close button",
-                          "Whether the tag has a close button.", TRUE,
+    g_param_spec_boolean ("has-close-button", _("Tag has a close button"),
+                          _("Whether the tag has a close button."), TRUE,
                           G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
   tag_properties[PROP_TAG_STYLE] =
-    g_param_spec_string ("style", "Style",
-                         "Style of the tag.", "documents-entry-tag",
+    g_param_spec_string ("style", _("Style"),
+                         _("Style of the tag."), "documents-entry-tag",
                          G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
 
   g_type_class_add_private (klass, sizeof (GdTaggedEntryTagPrivate));
diff --git a/src/gedit/gedit-menu-stack-switcher.c b/src/gedit/gedit-menu-stack-switcher.c
index 29d0bbc..15fc289 100644
--- a/src/gedit/gedit-menu-stack-switcher.c
+++ b/src/gedit/gedit-menu-stack-switcher.c
@@ -420,8 +420,8 @@ gedit_menu_stack_switcher_class_init (GeditMenuStackSwitcherClass *klass)
   g_object_class_install_property (object_class,
                                    PROP_STACK,
                                    g_param_spec_object ("stack",
-                                                        "Stack",
-                                                        "Stack",
+                                                        _("Stack"),
+                                                        _("Stack"),
                                                         GTK_TYPE_STACK,
                                                         G_PARAM_READWRITE |
                                                         G_PARAM_CONSTRUCT));
diff --git a/src/markdown/gb-markdown-preview.c b/src/markdown/gb-markdown-preview.c
index 6bf1c8a..8366628 100644
--- a/src/markdown/gb-markdown-preview.c
+++ b/src/markdown/gb-markdown-preview.c
@@ -116,7 +116,7 @@ gb_markdown_preview_reload (GbMarkdownPreview *preview)
 
   if (!(html = gs_markdown_parse (markdown, text)))
     {
-      g_warning ("Failed to parse markdown.");
+      g_warning (_("Failed to parse markdown."));
       GOTO (cleanup);
     }
 
diff --git a/src/markdown/gs-markdown.c b/src/markdown/gs-markdown.c
index b57bfa0..1cdb173 100644
--- a/src/markdown/gs-markdown.c
+++ b/src/markdown/gs-markdown.c
@@ -24,6 +24,8 @@
 #include <string.h>
 #include <glib.h>
 
+#include <glib/gi18n.h>
+
 #include "gs-markdown.h"
 
 #if 0
@@ -967,7 +969,7 @@ gs_markdown_set_output_kind (GsMarkdown *self, GsMarkdownOutputKind output)
                break;
        case GS_MARKDOWN_OUTPUT_LAST:
        default:
-               g_warning ("unknown output enum");
+               g_warning (_("Unknown output enum"));
                break;
        }
 }
diff --git a/src/nautilus/nautilus-floating-bar.c b/src/nautilus/nautilus-floating-bar.c
index 350717e..239c2e3 100644
--- a/src/nautilus/nautilus-floating-bar.c
+++ b/src/nautilus/nautilus-floating-bar.c
@@ -25,6 +25,8 @@
 
 #include <string.h>
 
+#include <glib/gi18n.h>
+
 #include "nautilus-floating-bar.h"
 
 struct _NautilusFloatingBarDetails {
@@ -309,20 +311,20 @@ nautilus_floating_bar_class_init (NautilusFloatingBarClass *klass)
 
        properties[PROP_PRIMARY_LABEL] =
                g_param_spec_string ("primary-label",
-                                    "Bar's primary label",
-                                    "Primary label displayed by the bar",
+                                    _("Bar's primary label"),
+                                    _("Primary label displayed by the bar"),
                                     NULL,
                                     G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS);
        properties[PROP_DETAILS_LABEL] =
                g_param_spec_string ("details-label",
-                                    "Bar's details label",
-                                    "Details label displayed by the bar",
+                                    _("Bar's details label"),
+                                    _("Details label displayed by the bar"),
                                     NULL,
                                     G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS);
        properties[PROP_SHOW_SPINNER] =
                g_param_spec_boolean ("show-spinner",
-                                     "Show spinner",
-                                     "Whether a spinner should be shown in the floating bar",
+                                     _("Show spinner"),
+                                     _("Whether a spinner should be shown in the floating bar"),
                                      FALSE,
                                      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
 
diff --git a/src/snippets/gb-source-snippet-chunk.c b/src/snippets/gb-source-snippet-chunk.c
index 5ed88cd..4389ca5 100644
--- a/src/snippets/gb-source-snippet-chunk.c
+++ b/src/snippets/gb-source-snippet-chunk.c
@@ -292,8 +292,8 @@ gb_source_snippet_chunk_class_init (GbSourceSnippetChunkClass *klass)
 
   gParamSpecs[PROP_CONTEXT] =
     g_param_spec_object ("context",
-                         _ ("Context"),
-                         _ ("The snippet context."),
+                         _("Context"),
+                         _("The snippet context."),
                          GB_TYPE_SOURCE_SNIPPET_CONTEXT,
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_CONTEXT,
@@ -301,8 +301,8 @@ gb_source_snippet_chunk_class_init (GbSourceSnippetChunkClass *klass)
 
   gParamSpecs[PROP_SPEC] =
     g_param_spec_string ("spec",
-                         _ ("Spec"),
-                         _ ("The specification to expand using the contxt."),
+                         _("Spec"),
+                         _("The specification to expand using the contxt."),
                          NULL,
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SPEC,
@@ -310,8 +310,8 @@ gb_source_snippet_chunk_class_init (GbSourceSnippetChunkClass *klass)
 
   gParamSpecs[PROP_TAB_STOP] =
     g_param_spec_int ("tab-stop",
-                      _ ("Tab Stop"),
-                      _ ("The tab stop for the chunk."),
+                      _("Tab Stop"),
+                      _("The tab stop for the chunk."),
                       -1,
                       G_MAXINT,
                       -1,
@@ -321,8 +321,8 @@ gb_source_snippet_chunk_class_init (GbSourceSnippetChunkClass *klass)
 
   gParamSpecs[PROP_TEXT] =
     g_param_spec_string ("text",
-                         _ ("Text"),
-                         _ ("The text for the chunk."),
+                         _("Text"),
+                         _("The text for the chunk."),
                          NULL,
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_TEXT,
@@ -330,8 +330,8 @@ gb_source_snippet_chunk_class_init (GbSourceSnippetChunkClass *klass)
 
   gParamSpecs[PROP_TEXT_SET] =
     g_param_spec_boolean ("text-set",
-                          _ ("Text Set"),
-                          _ ("If the text property has been manually set."),
+                          _("Text Set"),
+                          _("If the text property has been manually set."),
                           FALSE,
                           (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_TEXT_SET,
diff --git a/src/snippets/gb-source-snippet-completion-item.c 
b/src/snippets/gb-source-snippet-completion-item.c
index fbccc8a..7b03fb5 100644
--- a/src/snippets/gb-source-snippet-completion-item.c
+++ b/src/snippets/gb-source-snippet-completion-item.c
@@ -131,8 +131,8 @@ gb_source_snippet_completion_item_class_init (GbSourceSnippetCompletionItemClass
 
   gParamSpecs[PROP_SNIPPET] =
     g_param_spec_object ("snippet",
-                         _ ("Snippet"),
-                         _ ("The snippet to insert."),
+                         _("Snippet"),
+                         _("The snippet to insert."),
                          GB_TYPE_SOURCE_SNIPPET,
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SNIPPET,
diff --git a/src/snippets/gb-source-snippet-completion-provider.c 
b/src/snippets/gb-source-snippet-completion-provider.c
index a6a7601..1ad347c 100644
--- a/src/snippets/gb-source-snippet-completion-provider.c
+++ b/src/snippets/gb-source-snippet-completion-provider.c
@@ -165,8 +165,8 @@ gb_source_snippet_completion_provider_class_init (GbSourceSnippetCompletionProvi
 
   gParamSpecs[PROP_SOURCE_VIEW] =
     g_param_spec_object ("source-view",
-                         _ ("Source View"),
-                         _ ("The source view to insert snippet into."),
+                         _("Source View"),
+                         _("The source view to insert snippet into."),
                          GB_TYPE_SOURCE_VIEW,
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SOURCE_VIEW,
@@ -174,8 +174,8 @@ gb_source_snippet_completion_provider_class_init (GbSourceSnippetCompletionProvi
 
   gParamSpecs[PROP_SNIPPETS] =
     g_param_spec_object ("snippets",
-                         _ ("Snippets"),
-                         _ ("The snippets to complete with this provider."),
+                         _("Snippets"),
+                         _("The snippets to complete with this provider."),
                          GB_TYPE_SOURCE_SNIPPETS,
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_SNIPPETS,
@@ -259,7 +259,7 @@ provider_get_priority (GtkSourceCompletionProvider *provider)
 static gchar *
 provider_get_name (GtkSourceCompletionProvider *provider)
 {
-  return g_strdup (_ ("Snippets"));
+  return g_strdup (_("Snippets"));
 }
 
 static void
diff --git a/src/snippets/gb-source-snippet-parser.c b/src/snippets/gb-source-snippet-parser.c
index 690e1fe..333164e 100644
--- a/src/snippets/gb-source-snippet-parser.c
+++ b/src/snippets/gb-source-snippet-parser.c
@@ -387,7 +387,7 @@ gb_source_snippet_parser_feed_line (GbSourceSnippetParser *parser,
 
     /* Fall through */
     default:
-      g_warning ("Invalid snippet at line %d: %s", priv->lineno, line);
+      g_warning (_("Invalid snippet at line %d: %s"), priv->lineno, line);
       break;
     }
 }
diff --git a/src/snippets/gb-source-snippet.c b/src/snippets/gb-source-snippet.c
index 9f5a7e0..1095a68 100644
--- a/src/snippets/gb-source-snippet.c
+++ b/src/snippets/gb-source-snippet.c
@@ -306,7 +306,7 @@ gb_source_snippet_get_chunk_range (GbSourceSnippet      *snippet,
         }
     }
 
-  g_warning ("chunk does not belong to snippet.");
+  g_warning (_("Chunk does not belong to snippet."));
 }
 
 static void
@@ -938,8 +938,8 @@ gb_source_snippet_class_init (GbSourceSnippetClass *klass)
 
   gParamSpecs[PROP_BUFFER] =
     g_param_spec_object ("buffer",
-                         _ ("Buffer"),
-                         _ ("The GtkTextBuffer for the snippet."),
+                         _("Buffer"),
+                         _("The GtkTextBuffer for the snippet."),
                          GTK_TYPE_TEXT_BUFFER,
                          (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_BUFFER,
@@ -947,8 +947,8 @@ gb_source_snippet_class_init (GbSourceSnippetClass *klass)
 
   gParamSpecs[PROP_MARK_BEGIN] =
     g_param_spec_object ("mark-begin",
-                         _ ("Mark Begin"),
-                         _ ("The beginning text mark."),
+                         _("Mark Begin"),
+                         _("The beginning text mark."),
                          GTK_TYPE_TEXT_MARK,
                          (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_MARK_BEGIN,
@@ -956,8 +956,8 @@ gb_source_snippet_class_init (GbSourceSnippetClass *klass)
 
   gParamSpecs[PROP_MARK_END] =
     g_param_spec_object ("mark-end",
-                         _ ("Mark End"),
-                         _ ("The ending text mark."),
+                         _("Mark End"),
+                         _("The ending text mark."),
                          GTK_TYPE_TEXT_MARK,
                          (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_MARK_END,
@@ -965,8 +965,8 @@ gb_source_snippet_class_init (GbSourceSnippetClass *klass)
 
   gParamSpecs[PROP_TRIGGER] =
     g_param_spec_string ("trigger",
-                         _ ("Trigger"),
-                         _ ("The trigger for the snippet."),
+                         _("Trigger"),
+                         _("The trigger for the snippet."),
                          NULL,
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_TRIGGER,
@@ -974,8 +974,8 @@ gb_source_snippet_class_init (GbSourceSnippetClass *klass)
 
   gParamSpecs[PROP_TAB_STOP] =
     g_param_spec_int ("tab-stop",
-                      _ ("Tab Stop"),
-                      _ ("The current tab stop."),
+                      _("Tab Stop"),
+                      _("The current tab stop."),
                       -1,
                       G_MAXINT,
                       -1,
diff --git a/src/tabs/gb-notebook.c b/src/tabs/gb-notebook.c
index 605d0f4..21d251a 100644
--- a/src/tabs/gb-notebook.c
+++ b/src/tabs/gb-notebook.c
@@ -49,7 +49,7 @@ gb_notebook_raise_tab (GbNotebook *notebook,
 
   if (gtk_widget_get_parent (GTK_WIDGET (tab)) != GTK_WIDGET (notebook))
     {
-      g_warning ("Cannot raise tab, does not belong to requested notebook.");
+      g_warning (_("Cannot raise tab, does not belong to requested notebook."));
       return;
     }
 
diff --git a/src/tabs/gb-tab-label.c b/src/tabs/gb-tab-label.c
index 0cf7ac5..1955c1e 100644
--- a/src/tabs/gb-tab-label.c
+++ b/src/tabs/gb-tab-label.c
@@ -214,8 +214,8 @@ gb_tab_label_class_init (GbTabLabelClass *klass)
 
   gParamSpecs [PROP_TAB] =
     g_param_spec_object ("tab",
-                         _ ("Tab"),
-                         _ ("The tab the label is observing."),
+                         _("Tab"),
+                         _("The tab the label is observing."),
                          GB_TYPE_TAB,
                          (G_PARAM_READWRITE |
                           G_PARAM_CONSTRUCT_ONLY |
diff --git a/src/theatrics/gb-box-theatric.c b/src/theatrics/gb-box-theatric.c
index 39666dc..6b0a564 100644
--- a/src/theatrics/gb-box-theatric.c
+++ b/src/theatrics/gb-box-theatric.c
@@ -255,8 +255,8 @@ gb_box_theatric_class_init (GbBoxTheatricClass *klass)
 
   gParamSpecs[PROP_ALPHA] =
     g_param_spec_double ("alpha",
-                         _ ("Alpha"),
-                         _ ("Alpha"),
+                         _("Alpha"),
+                         _("Alpha"),
                          0.0,
                          1.0,
                          1.0,
@@ -266,8 +266,8 @@ gb_box_theatric_class_init (GbBoxTheatricClass *klass)
 
   gParamSpecs[PROP_BACKGROUND] =
     g_param_spec_string ("background",
-                         _ ("background"),
-                         _ ("background"),
+                         _("background"),
+                         _("background"),
                          "#000000",
                          (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (object_class, PROP_BACKGROUND,
@@ -275,8 +275,8 @@ gb_box_theatric_class_init (GbBoxTheatricClass *klass)
 
   gParamSpecs[PROP_HEIGHT] =
     g_param_spec_int ("height",
-                      _ ("height"),
-                      _ ("height"),
+                      _("height"),
+                      _("height"),
                       0,
                       G_MAXINT,
                       0,
@@ -286,8 +286,8 @@ gb_box_theatric_class_init (GbBoxTheatricClass *klass)
 
   gParamSpecs[PROP_TARGET] =
     g_param_spec_object ("target",
-                         _ ("Target"),
-                         _ ("Target"),
+                         _("Target"),
+                         _("Target"),
                          GTK_TYPE_WIDGET,
                          (G_PARAM_READWRITE |
                           G_PARAM_CONSTRUCT_ONLY |
@@ -297,8 +297,8 @@ gb_box_theatric_class_init (GbBoxTheatricClass *klass)
 
   gParamSpecs[PROP_WIDTH] =
     g_param_spec_int ("width",
-                      _ ("width"),
-                      _ ("width"),
+                      _("width"),
+                      _("width"),
                       0,
                       G_MAXINT,
                       0,
@@ -308,8 +308,8 @@ gb_box_theatric_class_init (GbBoxTheatricClass *klass)
 
   gParamSpecs[PROP_X] =
     g_param_spec_int ("x",
-                      _ ("x"),
-                      _ ("x"),
+                      _("x"),
+                      _("x"),
                       G_MININT,
                       G_MAXINT,
                       0,
@@ -319,8 +319,8 @@ gb_box_theatric_class_init (GbBoxTheatricClass *klass)
 
   gParamSpecs[PROP_Y] =
     g_param_spec_int ("y",
-                      _ ("y"),
-                      _ ("y"),
+                      _("y"),
+                      _("y"),
                       G_MININT,
                       G_MAXINT,
                       0,
diff --git a/src/trie/trie.c b/src/trie/trie.c
index 38f1389..9a3d149 100644
--- a/src/trie/trie.c
+++ b/src/trie/trie.c
@@ -18,6 +18,8 @@
 
 #include <string.h>
 
+#include <glib/gi18n.h>
+
 #include "trie.h"
 
 #if defined(__LP64__) || __WORDSIZE == 64
@@ -785,7 +787,7 @@ trie_traverse (Trie             *trie,
          trie_traverse_node_post_order(trie, node, str, flags,
                                        max_depth, func, user_data);
       } else {
-         g_warning("Traversal order %u is not supported on Trie.", order);
+         g_warning(_("Traversal order %u is not supported on Trie."), order);
       }
    }
 
diff --git a/src/workbench/gb-workbench.c b/src/workbench/gb-workbench.c
index e512f52..adccc99 100644
--- a/src/workbench/gb-workbench.c
+++ b/src/workbench/gb-workbench.c
@@ -194,7 +194,7 @@ gb_workbench_load_workspace_actions (GbWorkbench *workbench,
 
   if (group)
     {
-      g_message ("Registering actions for \"%s\" prefix.", name);
+      g_message (_("Registering actions for \"%s\" prefix."), name);
       gtk_widget_insert_action_group (GTK_WIDGET (workbench), name, group);
     }
 }
diff --git a/src/workbench/gb-workspace.c b/src/workbench/gb-workspace.c
index 6fa2827..d19a3c2 100644
--- a/src/workbench/gb-workspace.c
+++ b/src/workbench/gb-workspace.c
@@ -169,8 +169,8 @@ gb_workspace_class_init (GbWorkspaceClass *klass)
 
   gParamSpecs[PROP_TITLE] =
     g_param_spec_string ("title",
-                         _ ("Title"),
-                         _ ("The title of the workspace."),
+                         _("Title"),
+                         _("The title of the workspace."),
                          NULL,
                          (G_PARAM_READWRITE |
                           G_PARAM_STATIC_STRINGS));
@@ -179,8 +179,8 @@ gb_workspace_class_init (GbWorkspaceClass *klass)
 
   gParamSpecs[PROP_ICON_NAME] =
     g_param_spec_string ("icon-name",
-                         _ ("Icon Name"),
-                         _ ("The name of the icon to use."),
+                         _("Icon Name"),
+                         _("The name of the icon to use."),
                          NULL,
                          (G_PARAM_READWRITE |
                           G_PARAM_STATIC_STRINGS));



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