allow multiple translation.xml entries to match a single song

This commit is contained in:
Chris Danford
2008-03-31 14:34:37 +00:00
parent 0e44b4a208
commit 0a27aad739
+3 -2
View File
@@ -79,7 +79,7 @@ void TitleSubst::Subst( TitleFields &tf )
TitleTrans* tt = *iter;
TitleFields to;
if(!tt->Matches(tf,to))
if( !tt->Matches(tf,to) )
continue;
/* The song matches. Replace whichever strings aren't empty. */
@@ -123,7 +123,8 @@ void TitleSubst::Subst( TitleFields &tf )
FontCharAliases::ReplaceMarkers( tf.ArtistTranslit );
}
break; // Matched once. Done.
// Matched once. Keep processing to allow multiple matching entries. For example, allow
// one entry to translate a title, and another entry to translate the artist.
}
}