mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-06 13:34:05 +00:00
Fix PR #225 when translate language is not en...
... and there are no correct locales in the artist sort-name node.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user