localizable smpackage dialogs

This commit is contained in:
Chris Danford
2006-01-05 07:38:31 +00:00
parent f02ed66d59
commit cc922c4619
9 changed files with 73 additions and 20 deletions
+18
View File
@@ -6,6 +6,7 @@
#include "ProductInfo.h"
#include "RageUtil.h"
#include "RageFileManager.h"
#include "ThemeManager.h"
void SMPackageUtil::WriteStepManiaInstallDirs( const vector<RString>& asInstallDirsToWrite )
{
@@ -210,6 +211,23 @@ RString SMPackageUtil::GetLanguageCodeFromDisplayString( const RString &sDisplay
return s;
}
void SMPackageUtil::LocalizeDialogAndContents( CDialog &dlg )
{
CString s1;
dlg.GetWindowText( s1 );
RString sGroup = "Tools-"+s1;
dlg.SetWindowText( THEME->GetString(sGroup,"DialogCaption") );
for( CWnd *pChild = dlg.GetTopWindow(); pChild != NULL; pChild = pChild->GetNextWindow() )
{
pChild->GetWindowText( s1 );
if( s1.IsEmpty() )
continue;
pChild->SetWindowText( THEME->GetString(sGroup,RString(s1)) );
}
}
static const RString TEMP_MOUNT_POINT = "/@package/";
RageFileOsAbsolute::~RageFileOsAbsolute()