event-widget: Don't modify translated strings
This commit is contained in:
@@ -370,14 +370,16 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Translators: %s is a URL informed as the location of the event */
|
g_autoptr (GString) truncated_location = g_string_new (location);
|
||||||
g_string_append_printf (string, _("\n\nAt %s"), location);
|
|
||||||
|
|
||||||
if (g_utf8_strlen (location, -1) > LOCATION_MAX_LEN)
|
if (truncated_location->len > LOCATION_MAX_LEN)
|
||||||
{
|
{
|
||||||
g_string_truncate (string, string->len - 1);
|
g_string_truncate (string, LOCATION_MAX_LEN - 1);
|
||||||
g_string_append (string, "…");
|
g_string_append (string, "…");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Translators: %s is a URL informed as the location of the event */
|
||||||
|
g_string_append_printf (string, _("\n\nAt %s"), truncated_location->str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user