make string localizable

This commit is contained in:
Chris Danford
2006-01-18 10:03:45 +00:00
parent d5cde8a0f7
commit cec914461e
3 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -335,6 +335,7 @@ void EditMenu::UpdateArrows()
m_sprArrows[1].EnableAnimation( CanGoRight() );
}
static LocalizedString BLANK ( "EditMenu", "Blank" );
void EditMenu::OnRowValueChanged( EditMenuRow row )
{
UpdateArrows();
@@ -499,7 +500,7 @@ void EditMenu::OnRowValueChanged( EditMenuRow row )
CString s;
Steps *pSourceSteps = GetSelectedSourceSteps();
if( GetSelectedSourceDifficulty() == DIFFICULTY_INVALID )
s = "Blank";
s = BLANK;
else if( pSourceSteps && GetSelectedSourceDifficulty() == DIFFICULTY_EDIT )
s = pSourceSteps->GetDescription() + " (" + DifficultyToLocalizedString(DIFFICULTY_EDIT) + ")";
else
+5 -4
View File
@@ -171,9 +171,10 @@ static void DeleteCurrentSteps()
GAMESTATE->m_pCurSteps[0].Set( NULL );
}
static LocalizedString MISSING_MUSIC_FILE ( "ScreenEditMenu", "This song is missing a music file and cannot be edited." );
static LocalizedString STEPS_WILL_BE_LOST ( "ScreenEditMenu", "These steps will be lost permanently." );
static LocalizedString CONTINUE_WITH_DELETE ( "ScreenEditMenu", "Continue with delete?" );
static LocalizedString MISSING_MUSIC_FILE ( "ScreenEditMenu", "This song is missing a music file and cannot be edited." );
static LocalizedString STEPS_WILL_BE_LOST ( "ScreenEditMenu", "These steps will be lost permanently." );
static LocalizedString CONTINUE_WITH_DELETE ( "ScreenEditMenu", "Continue with delete?" );
static LocalizedString BLANK ( "ScreenEditMenu", "Blank" );
static LocalizedString ENTER_EDIT_DESCRIPTION ( "ScreenEditMenu", "Enter a description for this edit.");
void ScreenEditMenu::MenuStart( PlayerNumber pn )
{
@@ -253,7 +254,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
{
pSteps->CreateBlank( st );
pSteps->SetMeter( 1 );
sEditName = "Blank";
sEditName = BLANK;
}
pSteps->SetDifficulty( dc ); // override difficulty with the user's choice
@@ -103,7 +103,7 @@ void ScreenOptionsManageProfiles::BeginScreen()
{
OptionRowHandler *pHand = OptionRowHandlerUtil::Make( ParseCommands("gamecommand;screen,ScreenOptionsEditProfile;name,Create New") );
pHand->m_Def.m_layoutType = LAYOUT_SHOW_ALL_IN_ROW;
pHand->m_Def.m_bAllowThemeTitle = false;
pHand->m_Def.m_bAllowThemeTitle = true;
pHand->m_Def.m_bAllowThemeItems = false;
OptionRowHandlers.push_back( pHand );