[accounts-dialog/control-center-panel: 10/15] Fix a case of non-translatable strings



commit 23639fcc821886b9ffdf157268fd148277950399
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 13 22:48:17 2010 -0400

    Fix a case of non-translatable strings

 src/um-user-panel.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/um-user-panel.c b/src/um-user-panel.c
index 8f441c4..e7e7112 100644
--- a/src/um-user-panel.c
+++ b/src/um-user-panel.c
@@ -1087,6 +1087,7 @@ setup_main_window (UmUserPanelPrivate *d)
         GtkTreeIter iter;
         gint expander_size;
         GtkWidget *box;
+        gchar *title;
 
         userlist = get_widget (d, "list-treeview");
         store = gtk_list_store_new (NUM_USER_LIST_COLS,
@@ -1110,18 +1111,23 @@ setup_main_window (UmUserPanelPrivate *d)
         gtk_widget_style_get (userlist, "expander-size", &expander_size, NULL);
         gtk_tree_view_set_level_indentation (GTK_TREE_VIEW (userlist), - (expander_size + 6));
 
+        title = g_strdup_printf ("<small><span foreground=\"#555555\"></span></small>", _("My Account"));
         gtk_list_store_append (store, &iter);
         gtk_list_store_set (store, &iter,
-                            TITLE_COL, "<small><span foreground=\"#555555\">My Account</span></small>",
+                            TITLE_COL, title,
                             HEADING_ROW_COL, TRUE,
                             SORT_KEY_COL, 0,
                             -1);
+        g_free (title);
+
+        title = g_strdup_printf ("<small><span foreground=\"#555555\"></span></small>", _("Other Accounts"));
         gtk_list_store_append (store, &iter);
         gtk_list_store_set (store, &iter,
-                            TITLE_COL, "<small><span foreground=\"#555555\">Other Accounts</span></small>",
+                            TITLE_COL, title,
                             HEADING_ROW_COL, TRUE,
                             SORT_KEY_COL, 2,
                             -1);
+        g_free (title);
 
         column = gtk_tree_view_column_new ();
         cell = gtk_cell_renderer_pixbuf_new ();



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