Add message contexts to translated strings

The string "None" is used in multiple contexts; add message contexts
to give translators a chance to translate them accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=762165
This commit is contained in:
Matthias Clasen 2016-02-16 18:33:16 -05:00
parent a64dd9ccf3
commit 13e5e83798
5 changed files with 12 additions and 12 deletions

View File

@ -1221,7 +1221,7 @@ gtk_font_button_update_font_info (GtkFontButton *font_button)
if (priv->font_family) if (priv->font_family)
fam_name = pango_font_family_get_name (priv->font_family); fam_name = pango_font_family_get_name (priv->font_family);
else else
fam_name = _("None"); fam_name = C_("font", "None");
if (priv->font_face) if (priv->font_face)
face_name = pango_font_face_get_face_name (priv->font_face); face_name = pango_font_face_get_face_name (priv->font_face);
else else

View File

@ -222,8 +222,8 @@ init_gl (GtkInspectorGeneral *gen)
else else
#endif #endif
{ {
gtk_label_set_text (GTK_LABEL (gen->priv->gl_version), _("None")); gtk_label_set_text (GTK_LABEL (gen->priv->gl_version), C_("GL version", "None"));
gtk_label_set_text (GTK_LABEL (gen->priv->gl_vendor), _("None")); gtk_label_set_text (GTK_LABEL (gen->priv->gl_vendor), C_("GL vendor", "None"));
} }
} }

View File

@ -125,10 +125,10 @@ add_gesture (GtkInspectorGestures *sl,
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE); gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
combo = gtk_combo_box_text_new (); combo = gtk_combo_box_text_new ();
gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combo), GTK_PHASE_NONE, _("None")); gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combo), GTK_PHASE_NONE, C_("event phase", "None"));
gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combo), GTK_PHASE_CAPTURE, _("Capture")); gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combo), GTK_PHASE_CAPTURE, C_("event phase", "Capture"));
gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combo), GTK_PHASE_BUBBLE, _("Bubble")); gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combo), GTK_PHASE_BUBBLE, C_("event phase", "Bubble"));
gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combo), GTK_PHASE_TARGET, _("Target")); gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combo), GTK_PHASE_TARGET, C_("event phase", "Target"));
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), phase); gtk_combo_box_set_active (GTK_COMBO_BOX (combo), phase);
gtk_container_add (GTK_CONTAINER (box), combo); gtk_container_add (GTK_CONTAINER (box), combo);
gtk_widget_show (combo); gtk_widget_show (combo);

View File

@ -1282,7 +1282,7 @@ attribute_editor (GObject *object,
"sensitive", 1, "sensitive", 1,
NULL); NULL);
gtk_list_store_append (store, &iter); gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter, 0, _("None"), 1, TRUE, -1); gtk_list_store_set (store, &iter, 0, C_("property name", "None"), 1, TRUE, -1);
for (i = 0; i < gtk_tree_model_get_n_columns (model); i++) for (i = 0; i < gtk_tree_model_get_n_columns (model); i++)
{ {
text = g_strdup_printf ("%d", i); text = g_strdup_printf ("%d", i);

View File

@ -249,10 +249,10 @@ add_size_group (GtkInspectorSizeGroups *sl,
g_object_set (combo, "margin", 10, NULL); g_object_set (combo, "margin", 10, NULL);
gtk_widget_set_halign (combo, GTK_ALIGN_END); gtk_widget_set_halign (combo, GTK_ALIGN_END);
gtk_widget_set_valign (combo, GTK_ALIGN_BASELINE); gtk_widget_set_valign (combo, GTK_ALIGN_BASELINE);
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("None")); gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), C_("sizegroup mode", "None"));
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("Horizontal")); gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), C_("sizegroup mode", "Horizontal"));
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("Vertical")); gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), C_("sizegroup mode", "Vertical"));
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("Both")); gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), C_("sizegroup mode", "Both"));
g_object_bind_property (group, "mode", g_object_bind_property (group, "mode",
combo, "active", combo, "active",
G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);