[tracker/tracker-0.16] build: Unify variations of "no error given" to save translators work
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.16] build: Unify variations of "no error given" to save translators work
- Date: Fri, 1 Nov 2013 15:28:40 +0000 (UTC)
commit 3a283e5ca53fca937ddd146474c172d18cc4131d
Author: Martyn Russell <martyn lanedo com>
Date: Tue Sep 10 09:49:14 2013 +0100
build: Unify variations of "no error given" to save translators work
https://bugzilla.gnome.org/show_bug.cgi?id=707150
src/plugins/nautilus/tracker-tags-view.c | 2 +-
src/tracker-control/tracker-control-general.c | 40 ++++++++++++------------
src/tracker-needle/tracker-tags-view.vala | 2 +-
3 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/src/plugins/nautilus/tracker-tags-view.c b/src/plugins/nautilus/tracker-tags-view.c
index ceb041a..6fb94d8 100644
--- a/src/plugins/nautilus/tracker-tags-view.c
+++ b/src/plugins/nautilus/tracker-tags-view.c
@@ -238,7 +238,7 @@ show_error_dialog (GError *error)
GtkWidget *dialog;
const gchar *str;
- str = error->message ? error->message : _("No error was given");
+ str = error->message ? error->message : _("No error given");
dialog = gtk_message_dialog_new (NULL,
0,
diff --git a/src/tracker-control/tracker-control-general.c b/src/tracker-control/tracker-control-general.c
index 854dba7..7b7ee57 100644
--- a/src/tracker-control/tracker-control-general.c
+++ b/src/tracker-control/tracker-control-general.c
@@ -131,9 +131,9 @@ get_pids (void)
dir = g_dir_open ("/proc", 0, &error);
if (error) {
- g_printerr ("%s, %s\n",
+ g_printerr ("%s: %s\n",
_("Could not open /proc"),
- error ? error->message : _("no error given"));
+ error ? error->message : _("No error given"));
g_clear_error (&error);
return NULL;
}
@@ -693,9 +693,9 @@ tracker_control_general_run (void)
/* Get contents to determine basename */
if (!g_file_get_contents (filename, &contents, NULL, &error)) {
str = g_strdup_printf (_("Could not open '%s'"), filename);
- g_printerr ("%s, %s\n",
+ g_printerr ("%s: %s\n",
str,
- error ? error->message : _("no error given"));
+ error ? error->message : _("No error given"));
g_free (str);
g_clear_error (&error);
g_free (contents);
@@ -739,9 +739,9 @@ tracker_control_general_run (void)
const gchar *errstr = g_strerror (errno);
str = g_strdup_printf (_("Could not terminate process
%d"), pid);
- g_printerr (" %s, %s\n",
+ g_printerr (" %s: %s\n",
str,
- errstr ? errstr : _("no error given"));
+ errstr ? errstr : _("No error given"));
g_free (str);
} else {
str = g_strdup_printf (_("Terminated process %d"),
pid);
@@ -760,9 +760,9 @@ tracker_control_general_run (void)
const gchar *errstr = g_strerror (errno);
str = g_strdup_printf (_("Could not kill process
%d"), pid);
- g_printerr (" %s, %s\n",
+ g_printerr (" %s: %s\n",
str,
- errstr ? errstr : _("no error given"));
+ errstr ? errstr : _("No error given"));
g_free (str);
} else {
str = g_strdup_printf (_("Killed process %d"), pid);
@@ -1081,8 +1081,8 @@ tracker_control_general_run (void)
connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
if (!connection) {
- g_critical ("Could not connect to the D-Bus session bus, %s",
- error ? error->message : "no error given.");
+ g_critical ("Could not connect to the D-Bus session bus: %s",
+ error ? error->message : "No error given");
g_clear_error (&error);
g_free (uri);
@@ -1099,8 +1099,8 @@ tracker_control_general_run (void)
&error);
if (error) {
- g_critical ("Could not create proxy on the D-Bus session bus, %s",
- error ? error->message : "no error given.");
+ g_critical ("Could not create proxy on the D-Bus session bus: %s",
+ error ? error->message : "No error given");
g_clear_error (&error);
g_free (uri);
@@ -1123,8 +1123,8 @@ tracker_control_general_run (void)
}
if (error) {
- g_critical ("Could not backup database, %s",
- error ? error->message : "no error given.");
+ g_critical ("Could not backup database: %s",
+ error ? error->message : "No error given");
g_clear_error (&error);
g_free (uri);
@@ -1153,8 +1153,8 @@ tracker_control_general_run (void)
connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
if (!connection) {
- g_critical ("Could not connect to the D-Bus session bus, %s",
- error ? error->message : "no error given.");
+ g_critical ("Could not connect to the D-Bus session bus: %s",
+ error ? error->message : "No error given");
g_clear_error (&error);
g_free (uri);
@@ -1171,8 +1171,8 @@ tracker_control_general_run (void)
&error);
if (error) {
- g_critical ("Could not create proxy on the D-Bus session bus, %s",
- error ? error->message : "no error given.");
+ g_critical ("Could not create proxy on the D-Bus session bus: %s",
+ error ? error->message : "No error given");
g_clear_error (&error);
g_free (uri);
@@ -1195,8 +1195,8 @@ tracker_control_general_run (void)
}
if (error) {
- g_critical ("Could not restore database, %s",
- error ? error->message : "no error given.");
+ g_critical ("Could not restore database: %s",
+ error ? error->message : "No error given");
g_clear_error (&error);
g_free (uri);
diff --git a/src/tracker-needle/tracker-tags-view.vala b/src/tracker-needle/tracker-tags-view.vala
index 98e695d..2bd97ad 100644
--- a/src/tracker-needle/tracker-tags-view.vala
+++ b/src/tracker-needle/tracker-tags-view.vala
@@ -156,7 +156,7 @@ public class TrackerTagsView : VBox {
}
private void show_error_dialog (string action, Error e) {
- string str = e.message != null ? e.message : _("No error was given");
+ string str = e.message != null ? e.message : _("No error given");
var msg = new MessageDialog (null,
DialogFlags.MODAL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]