From 754b75f0dda08b7cac188fa285e349b22ef6bf75 Mon Sep 17 00:00:00 2001 From: Sophist Date: Fri, 21 Mar 2014 07:38:57 +0000 Subject: [PATCH] Fix PR #225 when translate language is not en... ... and there are no correct locales in the artist sort-name node. --- picard/mbxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/mbxml.py b/picard/mbxml.py index c5ea50ad9..3157913af 100644 --- a/picard/mbxml.py +++ b/picard/mbxml.py @@ -129,7 +129,7 @@ def _translate_artist_node(node): transl, translsort = alias.text, alias.attribs["sort_name"] if alias.attribs.get("primary") == "primary": found_primary = True - if lang == "en" and not transl: + if not transl: translsort = node.sort_name[0].text transl = translate_from_sortname(node.name[0].text, translsort) else: