[nautilus] nautilus-window: don't use bold for notifications
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] nautilus-window: don't use bold for notifications
- Date: Fri, 6 Mar 2015 13:43:18 +0000 (UTC)
commit 1bfd36c4d54b6eaded7b9d9a423c639e5941bf27
Author: Carlos Soriano <csoriano gnome org>
Date: Fri Mar 6 14:40:41 2015 +0100
nautilus-window: don't use bold for notifications
Splitting sentences is a problem for translators, and after
some discussion for gnome-photos here:
https://bugzilla.gnome.org/show_bug.cgi?id=745658
The agreement was to just use quotes for deleted files.
Do the same for Nautilus
src/nautilus-window.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index d55fcce..607551e 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1534,27 +1534,18 @@ nautilus_window_notification_delete_get_label (NautilusFileUndoInfo *undo_info,
GList *files)
{
gchar *file_label;
- gchar *markup;
gchar *label;
gint length;
length = g_list_length (files);
if (length == 1) {
file_label = g_file_get_basename (files->data);
- markup = g_markup_printf_escaped ("<b>%s</b>", file_label);
- label = g_strdup_printf (_("%s deleted"), markup);
+ label = g_strdup_printf (_("“%s” deleted"), file_label);
+ g_free (file_label);
} else {
- /* Translators: this is the first part of a "%d files deleted" string */
- file_label = g_strdup_printf (ngettext ("%d file", "%d files", length), length);
- markup = g_markup_printf_escaped ("<b>%s</b>", file_label);
-
- /* Translators: this is the second part of a "%d files deleted" string */
- label = g_strdup_printf (ngettext ("%s deleted", "%s deleted", length), markup);
+ label = g_strdup_printf (ngettext ("%d file deleted", "%d files deleted", length), length);
}
- g_free (file_label);
- g_free (markup);
-
return label;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]