[evolution] Misc: Mark ellipsis for translation
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Misc: Mark ellipsis for translation
- Date: Wed, 6 Jan 2021 09:31:29 +0000 (UTC)
commit 1ff89da2836c591e8dbfe53b47b9190e1eb4ff72
Author: Milan Crha <mcrha redhat com>
Date: Wed Jan 6 10:30:08 2021 +0100
Misc: Mark ellipsis for translation
Thus the translators can change them to appropriate text for their
language.
src/calendar/gui/e-calendar-view.c | 2 +-
src/calendar/gui/e-memo-table.c | 2 +-
src/calendar/gui/e-task-table.c | 2 +-
src/calendar/gui/e-to-do-pane.c | 2 +-
src/e-util/e-misc-utils.c | 2 +-
src/e-util/e-text.c | 2 +-
src/e-util/e-web-view.c | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/calendar/gui/e-calendar-view.c b/src/calendar/gui/e-calendar-view.c
index d0826fd195..16a6eeae4d 100644
--- a/src/calendar/gui/e-calendar-view.c
+++ b/src/calendar/gui/e-calendar-view.c
@@ -2093,7 +2093,7 @@ e_calendar_view_get_tooltips (const ECalendarViewEventData *data)
end = g_utf8_offset_to_pointer (description, MAX_TOOLTIP_DESCRIPTION_LEN);
str = g_string_new_len (description, end - description);
- g_string_append (str, "…");
+ g_string_append (str, _("…"));
tmp = g_string_free (str, FALSE);
}
diff --git a/src/calendar/gui/e-memo-table.c b/src/calendar/gui/e-memo-table.c
index 042c0598e0..86fa2f3470 100644
--- a/src/calendar/gui/e-memo-table.c
+++ b/src/calendar/gui/e-memo-table.c
@@ -657,7 +657,7 @@ memo_table_query_tooltip (GtkWidget *widget,
g_string_append (tmp2, value);
if (len > 1024) {
g_string_set_size (tmp2, 1020);
- g_string_append (tmp2, "…");
+ g_string_append (tmp2, _("…"));
break;
}
}
diff --git a/src/calendar/gui/e-task-table.c b/src/calendar/gui/e-task-table.c
index 84786d09c5..c4c0c4442d 100644
--- a/src/calendar/gui/e-task-table.c
+++ b/src/calendar/gui/e-task-table.c
@@ -879,7 +879,7 @@ task_table_query_tooltip (GtkWidget *widget,
g_string_append (tmp2, e_cal_component_text_get_value (text));
if (len > 1024) {
g_string_set_size (tmp2, 1023);
- g_string_append (tmp2, "…");
+ g_string_append (tmp2, _("…"));
break;
}
}
diff --git a/src/calendar/gui/e-to-do-pane.c b/src/calendar/gui/e-to-do-pane.c
index 6e956d0050..05f17c5579 100644
--- a/src/calendar/gui/e-to-do-pane.c
+++ b/src/calendar/gui/e-to-do-pane.c
@@ -587,7 +587,7 @@ etdp_get_component_data (EToDoPane *to_do_pane,
end = g_utf8_offset_to_pointer (description, MAX_TOOLTIP_DESCRIPTION_LEN);
str = g_string_new_len (description, end - description);
- g_string_append (str, "…");
+ g_string_append (str, _("…"));
tmp = g_string_free (str, FALSE);
}
diff --git a/src/e-util/e-misc-utils.c b/src/e-util/e-misc-utils.c
index 4f62b39065..5efdfb6c2b 100644
--- a/src/e-util/e-misc-utils.c
+++ b/src/e-util/e-misc-utils.c
@@ -4597,7 +4597,7 @@ e_util_get_uri_tooltip (const gchar *uri)
pos = g_utf8_offset_to_pointer (message->str, 150);
g_string_truncate (message, pos - message->str);
- g_string_append (message , "…");
+ g_string_append (message , _("…"));
}
return g_string_free (message, FALSE);
diff --git a/src/e-util/e-text.c b/src/e-util/e-text.c
index 4fc0f6f4a3..bd7b309e41 100644
--- a/src/e-util/e-text.c
+++ b/src/e-util/e-text.c
@@ -563,7 +563,7 @@ calc_ellipsis (EText *text)
gint width;
PangoLayout *layout = gtk_widget_create_pango_layout (
GTK_WIDGET (GNOME_CANVAS_ITEM (text)->canvas),
- text->ellipsis ? text->ellipsis : "…");
+ text->ellipsis ? text->ellipsis : _("…"));
pango_layout_get_size (layout, &width, NULL);
text->ellipsis_width = width;
diff --git a/src/e-util/e-web-view.c b/src/e-util/e-web-view.c
index eebe00018a..d4a226c30e 100644
--- a/src/e-util/e-web-view.c
+++ b/src/e-util/e-web-view.c
@@ -4105,7 +4105,7 @@ e_web_view_request (EWebView *web_view,
shorten_uri = g_string_sized_new (ptr - uri + 16);
g_string_append_len (shorten_uri, uri, ptr - uri);
- g_string_append (shorten_uri, "…");
+ g_string_append (shorten_uri, _("…"));
}
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]