[tracker] build: Add context for translators for command line binaries
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] build: Add context for translators for command line binaries
- Date: Tue, 10 Sep 2013 08:40:25 +0000 (UTC)
commit d17d1f5b9c1409f719916d84e2a66c7138c69ba7
Author: Martyn Russell <martyn lanedo com>
Date: Tue Sep 10 09:39:10 2013 +0100
build: Add context for translators for command line binaries
https://bugzilla.gnome.org/show_bug.cgi?id=707501
src/tracker-preferences/tracker-preferences.vala | 11 +++++++++--
src/tracker-utils/tracker-search.c | 4 ++--
src/tracker-utils/tracker-sparql.c | 8 ++++++++
src/tracker-utils/tracker-stats.c | 3 +++
src/tracker-utils/tracker-tag.c | 20 ++++++++++++++++++--
5 files changed, 40 insertions(+), 6 deletions(-)
---
diff --git a/src/tracker-preferences/tracker-preferences.vala
b/src/tracker-preferences/tracker-preferences.vala
index 4b449ea..f547223 100644
--- a/src/tracker-preferences/tracker-preferences.vala
+++ b/src/tracker-preferences/tracker-preferences.vala
@@ -326,19 +326,26 @@ public class Tracker.Preferences {
[CCode (instance_pos = -1)]
public string hscale_disk_space_limit_format_value_cb (Scale source, double value) {
if (((int) value) == -1) {
+ /* To translators: This is a feature that is
+ * disabled for disk space checking.
+ */
return _("Disabled");
}
- return _("%d%%").printf ((int) value);
+ return "%d%%".printf ((int) value);
}
[CCode (instance_pos = -1)]
public string hscale_drop_device_threshold_format_value_cb (Scale source, double value) {
if (((int) value) == 0) {
+ /* To translators: This is a feature that is
+ * disabled for removing a device from a
+ * database cache.
+ */
return _("Disabled");
}
- return _("%d").printf ((int) value);
+ return "%d".printf ((int) value);
}
[CCode (instance_pos = -1)]
diff --git a/src/tracker-utils/tracker-search.c b/src/tracker-utils/tracker-search.c
index 59729cd..c809b63 100644
--- a/src/tracker-utils/tracker-search.c
+++ b/src/tracker-utils/tracker-search.c
@@ -78,11 +78,11 @@ static gboolean print_version;
static GOptionEntry semantic_entries[] = {
{ "limit", 'l', 0, G_OPTION_ARG_INT, &limit,
N_("Limit the number of results shown"),
- N_("512")
+ "512"
},
{ "offset", 'o', 0, G_OPTION_ARG_INT, &offset,
N_("Offset the results"),
- N_("0")
+ "0"
},
{ "or-operator", 'r', 0, G_OPTION_ARG_NONE, &or_operator,
N_("Use OR for search terms instead of AND (the default)"),
diff --git a/src/tracker-utils/tracker-sparql.c b/src/tracker-utils/tracker-sparql.c
index ba1e07e..201915d 100644
--- a/src/tracker-utils/tracker-sparql.c
+++ b/src/tracker-utils/tracker-sparql.c
@@ -368,6 +368,10 @@ print_cursor_with_ftsoffsets (TrackerSparqlCursor *cursor,
}
if (count == 0) {
+ /* To translators: This is to say there are no
+ * search results found. We use a "foo: None"
+ * with multiple print statements, where "foo"
+ * may be Music or Images, etc. */
g_print (" %s\n", _("None"));
}
@@ -412,6 +416,10 @@ print_cursor (TrackerSparqlCursor *cursor,
}
if (count == 0) {
+ /* To translators: This is to say there are no
+ * search results found. We use a "foo: None"
+ * with multiple print statements, where "foo"
+ * may be Music or Images, etc. */
g_print (" %s\n", _("None"));
}
diff --git a/src/tracker-utils/tracker-stats.c b/src/tracker-utils/tracker-stats.c
index d254f41..1a2cedb 100644
--- a/src/tracker-utils/tracker-stats.c
+++ b/src/tracker-utils/tracker-stats.c
@@ -114,6 +114,9 @@ main (int argc, char **argv)
}
if (count == 0) {
+ /* To translators: This is to say there are no
+ * statistics found. We use a "Statistics:
+ * None" with multiple print statements */
g_print (" %s\n", _("None"));
}
diff --git a/src/tracker-utils/tracker-tag.c b/src/tracker-utils/tracker-tag.c
index 36b5ad4..42c4b95 100644
--- a/src/tracker-utils/tracker-tag.c
+++ b/src/tracker-utils/tracker-tag.c
@@ -53,11 +53,11 @@ static gboolean print_version;
static GOptionEntry entries[] = {
{ "limit", 'l', 0, G_OPTION_ARG_INT, &limit,
N_("Limit the number of results shown"),
- N_("512")
+ "512"
},
{ "offset", 'o', 0, G_OPTION_ARG_INT, &offset,
N_("Offset the results"),
- N_("0")
+ "0"
},
{ "or-operator", 'r', 0, G_OPTION_ARG_NONE, &or_operator,
N_("Use OR for search terms instead of AND (the default)"),
@@ -323,6 +323,8 @@ get_all_tags_show_tag_id (TrackerSparqlConnection *connection,
}
if (!cursor) {
+ /* To translators: This is to say there are no
+ * tags found with a particular unique ID. */
g_print (" %s\n", _("None"));
return;
}
@@ -452,6 +454,13 @@ get_all_tags (TrackerSparqlConnection *connection,
}
if (count == 0) {
+ /* To translators: This is to say there are no
+ * files found associated with this tag, e.g.:
+ *
+ * Tags (shown by name):
+ * None
+ *
+ */
g_print (" %s\n", _("None"));
}
@@ -824,6 +833,13 @@ get_tags_by_file (TrackerSparqlConnection *connection,
}
if (count == 0) {
+ /* To translators: This is to say there are no
+ * tags found for a particular file, e.g.:
+ *
+ * /path/to/some/file:
+ * None
+ *
+ */
g_print (" %s\n", _("None"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]