[gnome-control-center] user-accounts: Avoid markup in "Your Account" label



commit 50c2af0cfbcdf4d4d974ea75dcbf36e70faa42dd
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri Feb 24 17:12:10 2017 +0100

    user-accounts: Avoid markup in "Your Account" label
    
    The label indicating which photo in the Carousel belongs to the
    current user had the <small> markup within the translatable string,
    causing unnecessary work for translators. See
    https://wiki.gnome.org/TranslationProject/DevGuidelines/Avoid%20markup%20wherever%20possible
    
    This patch formats the string with g_strdup_printf, leaving the
    markup tags out of the translatable message.

 panels/user-accounts/um-user-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index 4d70999..8f2caf1 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -192,7 +192,7 @@ create_carousel_entry (CcUserPanelPrivate *d, ActUser *user)
         g_free (label);
 
         if (act_user_get_uid (user) == getuid ())
-                label = g_strdup (_("<small>Your account</small>"));
+                label = g_strdup_printf ("<small>%s</small>", _("Your account"));
         else
                 label = g_strdup (" ");
 


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