reenable translation for songs that already have translits
too many songs have hacked titles with translits
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
#include "SDL_image.h"
|
||||
|
||||
|
||||
const int FILE_CACHE_VERSION = 111; // increment this when Song or Notes changes to invalidate cache
|
||||
const int FILE_CACHE_VERSION = 112; // increment this when Song or Notes changes to invalidate cache
|
||||
|
||||
const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;
|
||||
|
||||
|
||||
@@ -47,20 +47,22 @@ void TitleSubst::Subst(CString &title, CString &subtitle, CString &artist,
|
||||
continue;
|
||||
|
||||
/* The song matches. Replace whichever strings aren't empty.
|
||||
* Don't replace any that already have a transliteration set. */
|
||||
if(!ttab[i]->TitleTo.empty() && ttitle.empty())
|
||||
* Don't replace any that already have a transliteration set.
|
||||
* Wait, do; too many songs have translits set with hacked
|
||||
* titles. */
|
||||
if(!ttab[i]->TitleTo.empty()) // && ttitle.empty())
|
||||
{
|
||||
if(ttab[i]->translit) ttitle = title;
|
||||
title = ttab[i]->TitleTo;
|
||||
FontCharAliases::ReplaceMarkers( title );
|
||||
}
|
||||
if(!ttab[i]->SubTo.empty() && tsubtitle.empty())
|
||||
if(!ttab[i]->SubTo.empty()) // && tsubtitle.empty())
|
||||
{
|
||||
if(ttab[i]->translit) tsubtitle = subtitle;
|
||||
subtitle = ttab[i]->SubTo;
|
||||
FontCharAliases::ReplaceMarkers( subtitle );
|
||||
}
|
||||
if(!ttab[i]->ArtistTo.empty() && tartist.empty())
|
||||
if(!ttab[i]->ArtistTo.empty()) // && tartist.empty())
|
||||
{
|
||||
if(ttab[i]->translit) tartist = artist;
|
||||
artist = ttab[i]->ArtistTo;
|
||||
|
||||
Reference in New Issue
Block a user