forked from AuroraMiddleware/gtk
Use Unicode typography in new translatable strings
See https://developer.gnome.org/hig/stable/typography.html
This commit is contained in:
parent
7371d14718
commit
cf5f577834
@ -1314,7 +1314,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
|||||||
widget_props[PROP_OVERFLOW] =
|
widget_props[PROP_OVERFLOW] =
|
||||||
g_param_spec_enum ("overflow",
|
g_param_spec_enum ("overflow",
|
||||||
P_("Overflow"),
|
P_("Overflow"),
|
||||||
P_("How content outside the widget's content area is treated"),
|
P_("How content outside the widget’s content area is treated"),
|
||||||
GTK_TYPE_OVERFLOW,
|
GTK_TYPE_OVERFLOW,
|
||||||
GTK_OVERFLOW_VISIBLE,
|
GTK_OVERFLOW_VISIBLE,
|
||||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
|
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
|
||||||
|
@ -772,7 +772,7 @@ simplify_file (const char *filename,
|
|||||||
|
|
||||||
if (!g_file_get_contents (filename, &buffer, NULL, &error))
|
if (!g_file_get_contents (filename, &buffer, NULL, &error))
|
||||||
{
|
{
|
||||||
g_printerr (_("Can’t load '%s': %s\n"), filename, error->message);
|
g_printerr (_("Can’t load “%s”: %s\n"), filename, error->message);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -783,7 +783,7 @@ simplify_file (const char *filename,
|
|||||||
context = g_markup_parse_context_new (&parser, G_MARKUP_TREAT_CDATA_AS_TEXT, &data, NULL);
|
context = g_markup_parse_context_new (&parser, G_MARKUP_TREAT_CDATA_AS_TEXT, &data, NULL);
|
||||||
if (!g_markup_parse_context_parse (context, buffer, -1, &error))
|
if (!g_markup_parse_context_parse (context, buffer, -1, &error))
|
||||||
{
|
{
|
||||||
g_printerr (_("Can’t parse '%s': %s\n"), filename, error->message);
|
g_printerr (_("Can’t parse “%s”: %s\n"), filename, error->message);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -802,13 +802,13 @@ simplify_file (const char *filename,
|
|||||||
|
|
||||||
if (!g_file_get_contents (data.output_filename, &content, &length, &error))
|
if (!g_file_get_contents (data.output_filename, &content, &length, &error))
|
||||||
{
|
{
|
||||||
g_printerr (_("Failed to read '%s': %s\n"), data.output_filename, error->message);
|
g_printerr (_("Failed to read “%s”: %s\n"), data.output_filename, error->message);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_file_set_contents (data.input_filename, content, length, &error))
|
if (!g_file_set_contents (data.input_filename, content, length, &error))
|
||||||
{
|
{
|
||||||
g_printerr (_("Failed to write %s: '%s'\n"), data.input_filename, error->message);
|
g_printerr (_("Failed to write %s: “%s”\n"), data.input_filename, error->message);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user