[gnome-builder] fixit: use "Insert" instead of "Replace" when appropriate.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] fixit: use "Insert" instead of "Replace" when appropriate.
- Date: Wed, 25 Mar 2015 09:05:48 +0000 (UTC)
commit dd0efe9837a03f6addaf6555c1511ff3052f4e3e
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 25 02:05:42 2015 -0700
fixit: use "Insert" instead of "Replace" when appropriate.
libide/ide-source-view.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index b56ebcf..39e8778 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -4546,7 +4546,10 @@ ide_source_view_get_fixit_label (IdeSourceView *self,
new_text = g_markup_escape_text (new_text, -1);
g_free (tmp);
- ret = g_strdup_printf (_("Replace \"%s\" with \"%s\""), old_text, new_text);
+ if (old_text [0] == '\0')
+ ret = g_strdup_printf (_("Insert \"%s\""), new_text);
+ else
+ ret = g_strdup_printf (_("Replace \"%s\" with \"%s\""), old_text, new_text);
g_free (old_text);
g_free (new_text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]