[tracker] libtracker-data: Use '|' as separator for title articles.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Use '|' as separator for title articles.
- Date: Wed, 19 Jul 2017 21:09:39 +0000 (UTC)
commit 07ef7683c2e43f80a4a159661168febc47a7412e
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jul 19 23:01:47 2017 +0200
libtracker-data: Use '|' as separator for title articles.
As suggested in https://bugzilla.gnome.org/show_bug.cgi?id=785146
and following https://bugzilla.gnome.org/show_bug.cgi?id=771348,
change the separator used for common articles.
Translators, apologies for the moving target.
src/libtracker-data/tracker-collation.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-data/tracker-collation.c b/src/libtracker-data/tracker-collation.c
index 2e28a17..d7d2b52 100644
--- a/src/libtracker-data/tracker-collation.c
+++ b/src/libtracker-data/tracker-collation.c
@@ -280,16 +280,16 @@ tracker_collation_utf8_title (gpointer collator,
const gchar *res1 = NULL, *res2 = NULL;
gint i;
- /* Translators: this is a space-separated list of common title
- * beginnings. Meant to be skipped for sorting purposes, case
- * doesn't matter. Given English media is quite common, it is
+ /* Translators: this is a '|' (U+007C) separated list of common
+ * title beginnings. Meant to be skipped for sorting purposes,
+ * case doesn't matter. Given English media is quite common, it is
* advised to leave the untranslated articles in addition to
* the translated ones.
*/
- title_beginnings_str = N_("the a an");
+ title_beginnings_str = N_("the|a|an");
if (!title_beginnings)
- title_beginnings = g_strsplit (_(title_beginnings_str), " ", -1);
+ title_beginnings = g_strsplit (_(title_beginnings_str), "|", -1);
for (i = 0; title_beginnings[i]; i++) {
gchar *prefix, *str;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]