make string localizable
This commit is contained in:
@@ -335,6 +335,7 @@ void EditMenu::UpdateArrows()
|
|||||||
m_sprArrows[1].EnableAnimation( CanGoRight() );
|
m_sprArrows[1].EnableAnimation( CanGoRight() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static LocalizedString BLANK ( "EditMenu", "Blank" );
|
||||||
void EditMenu::OnRowValueChanged( EditMenuRow row )
|
void EditMenu::OnRowValueChanged( EditMenuRow row )
|
||||||
{
|
{
|
||||||
UpdateArrows();
|
UpdateArrows();
|
||||||
@@ -499,7 +500,7 @@ void EditMenu::OnRowValueChanged( EditMenuRow row )
|
|||||||
CString s;
|
CString s;
|
||||||
Steps *pSourceSteps = GetSelectedSourceSteps();
|
Steps *pSourceSteps = GetSelectedSourceSteps();
|
||||||
if( GetSelectedSourceDifficulty() == DIFFICULTY_INVALID )
|
if( GetSelectedSourceDifficulty() == DIFFICULTY_INVALID )
|
||||||
s = "Blank";
|
s = BLANK;
|
||||||
else if( pSourceSteps && GetSelectedSourceDifficulty() == DIFFICULTY_EDIT )
|
else if( pSourceSteps && GetSelectedSourceDifficulty() == DIFFICULTY_EDIT )
|
||||||
s = pSourceSteps->GetDescription() + " (" + DifficultyToLocalizedString(DIFFICULTY_EDIT) + ")";
|
s = pSourceSteps->GetDescription() + " (" + DifficultyToLocalizedString(DIFFICULTY_EDIT) + ")";
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ static void DeleteCurrentSteps()
|
|||||||
static LocalizedString MISSING_MUSIC_FILE ( "ScreenEditMenu", "This song is missing a music file and cannot be edited." );
|
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 STEPS_WILL_BE_LOST ( "ScreenEditMenu", "These steps will be lost permanently." );
|
||||||
static LocalizedString CONTINUE_WITH_DELETE ( "ScreenEditMenu", "Continue with delete?" );
|
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.");
|
static LocalizedString ENTER_EDIT_DESCRIPTION ( "ScreenEditMenu", "Enter a description for this edit.");
|
||||||
void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
@@ -253,7 +254,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
|||||||
{
|
{
|
||||||
pSteps->CreateBlank( st );
|
pSteps->CreateBlank( st );
|
||||||
pSteps->SetMeter( 1 );
|
pSteps->SetMeter( 1 );
|
||||||
sEditName = "Blank";
|
sEditName = BLANK;
|
||||||
}
|
}
|
||||||
|
|
||||||
pSteps->SetDifficulty( dc ); // override difficulty with the user's choice
|
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") );
|
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_layoutType = LAYOUT_SHOW_ALL_IN_ROW;
|
||||||
pHand->m_Def.m_bAllowThemeTitle = false;
|
pHand->m_Def.m_bAllowThemeTitle = true;
|
||||||
pHand->m_Def.m_bAllowThemeItems = false;
|
pHand->m_Def.m_bAllowThemeItems = false;
|
||||||
OptionRowHandlers.push_back( pHand );
|
OptionRowHandlers.push_back( pHand );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user