From 4c8cec8489dd1bf3984ae512a54b985991a35ff2 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 3 Jul 2010 21:15:25 -0500 Subject: [PATCH] [ScreenTextEntry] replace hardcoded underscore and double space with AnswerCaret and AnswerBlank strings --- Themes/_fallback/Languages/en.ini | 2 ++ src/ScreenTextEntry.cpp | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Themes/_fallback/Languages/en.ini b/Themes/_fallback/Languages/en.ini index 20f77dd70a..575f1ca088 100644 --- a/Themes/_fallback/Languages/en.ini +++ b/Themes/_fallback/Languages/en.ini @@ -1533,6 +1533,8 @@ Done=Done HeaderText= Space=Space "%s" is an invalid floating point value.="%s" is an invalid floating point value. +AnswerCaret=_ +AnswerBlank= [ScreenTitleMenu] %d songs in %d groups=%d songs in %d groups diff --git a/src/ScreenTextEntry.cpp b/src/ScreenTextEntry.cpp index c011c50176..a1e318b207 100644 --- a/src/ScreenTextEntry.cpp +++ b/src/ScreenTextEntry.cpp @@ -143,6 +143,8 @@ void ScreenTextEntry::BeginScreen() UpdateAnswerText(); } +static LocalizedString ANSWER_CARET ( "ScreenTextEntry", "AnswerCaret" ); +static LocalizedString ANSWER_BLANK ( "ScreenTextEntry", "AnswerBlank" ); void ScreenTextEntry::UpdateAnswerText() { RString s; @@ -157,9 +159,11 @@ void ScreenTextEntry::UpdateAnswerText() s = g_pFormatAnswerForDisplay( s ); if( m_bShowAnswerCaret && !bAnswerFull ) - s += '_'; + s += ANSWER_CARET; // was '_' else - s += " "; // xxx: assumes that underscore is the width of two spaces + { + s += ANSWER_BLANK; // was " " + } FontCharAliases::ReplaceMarkers( s ); m_textAnswer.SetText( s );