Merge branch 'for-3-24' into 'gtk-3-24'

appchooserdialog: Don't show broken subtitles

See merge request GNOME/gtk!1810
This commit is contained in:
Matthias Clasen
2020-05-01 17:54:09 +00:00

View File

@@ -199,16 +199,18 @@ set_dialog_properties (GtkAppChooserDialog *self)
unknown = g_content_type_is_unknown (self->priv->content_type);
}
title = g_strdup (_("Select Application"));
subtitle = NULL;
string = NULL;
if (name != NULL)
{
title = g_strdup (_("Select Application"));
/* Translators: %s is a filename */
subtitle = g_strdup_printf (_("Opening “%s”."), name);
string = g_strdup_printf (_("No applications found for “%s”"), name);
}
else
else if (self->priv->content_type)
{
title = g_strdup (_("Select Application"));
/* Translators: %s is a file type description */
subtitle = g_strdup_printf (_("Opening “%s” files."),
unknown ? self->priv->content_type : description);