make more strings localizable

move dialog localization into archutil
adjust dialog layout for pseudoloc strings
This commit is contained in:
Chris Danford
2006-01-08 05:42:09 +00:00
parent b5114cc57e
commit f6d11943ab
33 changed files with 509 additions and 326 deletions
@@ -142,14 +142,17 @@ void LoadingWindow_Win32::SetText( CString sText )
while( asMessageLines.size() < 3 )
asMessageLines.push_back( "" );
const int msgs[] = { IDC_STATIC_MESSAGE1, IDC_STATIC_MESSAGE2, IDC_STATIC_MESSAGE3 };
const int msgid[] = { IDC_STATIC_MESSAGE1, IDC_STATIC_MESSAGE2, IDC_STATIC_MESSAGE3 };
for( unsigned i = 0; i < 3; ++i )
{
if( text[i] == asMessageLines[i] )
continue;
text[i] = asMessageLines[i];
SendDlgItemMessage( hwnd, msgs[i], WM_SETTEXT, 0, (LPARAM)asMessageLines[i].c_str());
HWND hwndItem = ::GetDlgItem( hwnd, msgid[i] );
wstring w = RStringToWstring( asMessageLines[i] );
::SetWindowTextW( hwndItem, w.c_str() );
}
}