[gnome-music] query: Use vertical bar instead of space as I18N separator
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] query: Use vertical bar instead of space as I18N separator
- Date: Tue, 4 Oct 2016 12:11:16 +0000 (UTC)
commit 799d8cd195a45cc2fbfb8162be1f92b415c46c21
Author: Marinus Schraal <mschraal src gnome org>
Date: Thu Sep 15 08:48:46 2016 +0200
query: Use vertical bar instead of space as I18N separator
Some languages use space as part of articles used in band names, so
using it as a separator is a bad idea. Use a vertical bar (|) instead.
https://bugzilla.gnome.org/show_bug.cgi?id=771348
gnomemusic/query.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index a511938..b6483de 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -84,13 +84,13 @@ class Query():
}
# TRANSLATORS: The following translatable string should be a
- # space-separated list of all-lowercase articles that should be
- # ignored when alphabetizing artists/albums. This list should
- # include the basic english translatable strings regardless of
- # language because it is so universal.
+ # vertical bar-separated list of all-lowercase articles that
+ # should be ignored when alphabetizing artists/albums. This
+ # list should include the basic english translatable strings
+ # regardless of language because they are so universal.
# If some articles occur more frequently than others, the most
# common one should appear first, the least common one last.
- for article in reversed(_("the a an").split(" ")):
+ for article in reversed(_("the|a|an").split("|")):
return_statement = """IF(STRSTARTS(%(attribute)s, "%(article)s"),
SUBSTR(%(attribute)s, %(substr_start)s), %(nested_if)s)
""" % {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]