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 5a5a037d09
, but to get the localized
strings, one needs to use g_dpgettext2()[1], not gettext().
https://bugzilla.gnome.org/show_bug.cgi?id=673766
This commit is contained in:
parent
a47bdcfdb4
commit
80fdb0bee2
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue