Merge branch 'for-master' into 'master'
appchooserdialog: Don't show broken subtitles See merge request GNOME/gtk!1809
This commit is contained in:
@@ -200,16 +200,18 @@ set_dialog_properties (GtkAppChooserDialog *self)
|
|||||||
unknown = g_content_type_is_unknown (self->content_type);
|
unknown = g_content_type_is_unknown (self->content_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
title = g_strdup (_("Select Application"));
|
||||||
|
subtitle = NULL;
|
||||||
|
string = NULL;
|
||||||
|
|
||||||
if (name != NULL)
|
if (name != NULL)
|
||||||
{
|
{
|
||||||
title = g_strdup (_("Select Application"));
|
|
||||||
/* Translators: %s is a filename */
|
/* Translators: %s is a filename */
|
||||||
subtitle = g_strdup_printf (_("Opening “%s”."), name);
|
subtitle = g_strdup_printf (_("Opening “%s”."), name);
|
||||||
string = g_strdup_printf (_("No applications found for “%s”"), name);
|
string = g_strdup_printf (_("No applications found for “%s”"), name);
|
||||||
}
|
}
|
||||||
else
|
else if (self->content_type)
|
||||||
{
|
{
|
||||||
title = g_strdup (_("Select Application"));
|
|
||||||
/* Translators: %s is a file type description */
|
/* Translators: %s is a file type description */
|
||||||
subtitle = g_strdup_printf (_("Opening “%s” files."),
|
subtitle = g_strdup_printf (_("Opening “%s” files."),
|
||||||
unknown ? self->content_type : description);
|
unknown ? self->content_type : description);
|
||||||
|
|||||||
Reference in New Issue
Block a user