[gnome-control-center/gnome-3-4] display: Translate the rotation drop-down again



commit 6c175e994b2b25b73505f5bc096762df2c75c23c
Author: Gabor Kelemen <kelemeng gnome hu>
Date:   Mon Apr 9 09:20:31 2012 +0300

    display: Translate the rotation drop-down again
    
    The rotation combo box items on the Displays panel do not appear
    translated.  This is because the items got translation context support
    in 5a5a037d09787da48f3c8b60ca5ce6dcb5ebcbf3, but to get the localized
    strings, one needs to use g_dpgettext2()[1], not gettext().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=673766

 panels/display/cc-display-panel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index a7ccf13..ec14a35 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -499,10 +499,10 @@ rebuild_rotation_combo (CcDisplayPanel *self)
       /* NULL-GError --- FIXME: we should say why this rotation is not available! */
       if (gnome_rr_config_applicable (self->priv->current_configuration, self->priv->screen, NULL))
         {
-          add_key (gtk_combo_box_get_model (GTK_COMBO_BOX (self->priv->rotation_combo)), _(info->name), FALSE, 0, 0, 0, info->rotation);
+          add_key (gtk_combo_box_get_model (GTK_COMBO_BOX (self->priv->rotation_combo)), g_dpgettext2 (NULL, "display panel, rotation", info->name), FALSE, 0, 0, 0, info->rotation);
 
           if (info->rotation == current)
-            selection = _(info->name);
+            selection = g_dpgettext2 (NULL, "display panel, rotation", info->name);
         }
     }
 



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