[gnome-music] query: add a/an to articles



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]