[gnome-music] query: add a/an to articles
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] query: add a/an to articles
- Date: Tue, 6 Jan 2015 11:05:02 +0000 (UTC)
commit 8d2b6392b12697fac74da98933c6ec0d7a5ebb6f
Author: burningTyger <b6tyger gmail com>
Date: Sat Dec 27 00:45:15 2014 +0100
query: add a/an to articles
https://bugzilla.gnome.org/show_bug.cgi?id=742011
gnomemusic/query.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index cef96fc..a208a41 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -56,7 +56,7 @@ class Query():
# (such as 'the') that should be ignored when alphabetizing artists/albums. This
# list should include 'the' regardless of language. If some articles occur more
# frequently than others, most common should appear first, least common last.
- for article in reversed(_("the").split(" ")):
+ for article in reversed(_("the a an").split(" ")):
return_statement = '''IF(fn:starts-with(fn:lower-case(%(attribute)s), "%(article)s"),
fn:substring(fn:lower-case(%(attribute)s), %(substr_start)s),
%(nested_if)s)''' % {'attribute' : attr,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]