Merge lp:~thomas-e-zander/exaile/artist_strip into lp:exaile/0.3.3
Proposed by
Thomas Zander
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Johannes Sasongko | ||||
Approved revision: | 2428 | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~thomas-e-zander/exaile/artist_strip | ||||
Merge into: | lp:exaile/0.3.3 | ||||
Diff against target: |
210 lines 6 files modified
data/ui/collection_prefs_pane.glade (+70/-0) po/de.po (+4/-0) xl/common.py (+4/-1) xlgui/prefs/__init__.py (+2/-2) xlgui/prefs/collection_prefs.py (+66/-0) xlgui/prefs/widgets.py (+1/-0) |
||||
To merge this branch: | bzr merge lp:~thomas-e-zander/exaile/artist_strip | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Johannes Sasongko | Approve | ||
Review via email: mp+12841@code.launchpad.net |
This proposal supersedes a proposal from 2009-09-22.
Commit message
Let users customize the list of "the"-like words they want to remove for artist sorting/grouping. The default list is now localizable.
To post a comment you must log in.
Rather than
+ default_list = ["el", "l'", "la", "le", "les", "los", "the"] list.extend( ["der", "die", "das"])
+ try:
+ (loc, enc) = getlocale()
+ if loc is None:
+ (loc, enc) = getdefaultlocale()
+ #TRANSLATORS: Alter default_list to appropriate content
+ if loc == 'de_DE':
+ default_
I'd prefer it to be a translatable string that translators can override completely. Something like
#TRANSLATORS: ...
default_list = _("the ")
A translator can then translate that, e.g.
"the" --> "le ;l';les "
This way, on locales where this kind of stripping doesn't make sense at all, it can be translated as
"the" --> ""