mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-16 16:20:50 +02:00
Tweak error message
Several users have stated confusion about the old message, thinking that it meant 'changes to the imported file', whereas it actually refers to the 'project'. Also fix a couple of compiler warnings.
This commit is contained in:
parent
285f6dc788
commit
229781cc12
@ -2020,11 +2020,10 @@ void AudacityProject::HandleResize()
|
|||||||
// How many projects that do not have a name yet?
|
// How many projects that do not have a name yet?
|
||||||
int AudacityProject::CountUnnamed()
|
int AudacityProject::CountUnnamed()
|
||||||
{
|
{
|
||||||
int i;
|
int j = 0;
|
||||||
int j=0;
|
for ( size_t i = 0; i < gAudacityProjects.size(); i++) {
|
||||||
for(i=0;i<gAudacityProjects.size();i++){
|
if ( gAudacityProjects[i] )
|
||||||
if(gAudacityProjects[i])
|
if ( gAudacityProjects[i]->GetName().IsEmpty() )
|
||||||
if( gAudacityProjects[i]->GetName().IsEmpty() )
|
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
return j;
|
return j;
|
||||||
@ -2032,10 +2031,9 @@ int AudacityProject::CountUnnamed()
|
|||||||
|
|
||||||
void AudacityProject::RefreshAllTitles(bool bShowProjectNumbers )
|
void AudacityProject::RefreshAllTitles(bool bShowProjectNumbers )
|
||||||
{
|
{
|
||||||
int i;
|
for ( size_t i = 0; i < gAudacityProjects.size(); i++) {
|
||||||
for(i=0;i<gAudacityProjects.size();i++){
|
if ( gAudacityProjects[i] ) {
|
||||||
if(gAudacityProjects[i]){
|
if ( !gAudacityProjects[i]->mIconized ) {
|
||||||
if( !gAudacityProjects[i]->mIconized ){
|
|
||||||
AudacityProject * p;
|
AudacityProject * p;
|
||||||
p = gAudacityProjects[i].get();
|
p = gAudacityProjects[i].get();
|
||||||
p->SetProjectTitle( bShowProjectNumbers ? p->GetProjectNumber() : -1 );
|
p->SetProjectTitle( bShowProjectNumbers ? p->GetProjectNumber() : -1 );
|
||||||
@ -2458,7 +2456,7 @@ void AudacityProject::OnCloseWindow(wxCloseEvent & event)
|
|||||||
TitleRestorer Restorer( this );// RAII
|
TitleRestorer Restorer( this );// RAII
|
||||||
/* i18n-hint: The first %s numbers the project, the second %s is the project name.*/
|
/* i18n-hint: The first %s numbers the project, the second %s is the project name.*/
|
||||||
wxString Title = wxString::Format(_("%sSave changes to %s?"), Restorer.sProjNumber.c_str(), Restorer.sProjName.c_str());
|
wxString Title = wxString::Format(_("%sSave changes to %s?"), Restorer.sProjNumber.c_str(), Restorer.sProjName.c_str());
|
||||||
wxString Message = _("Save changes before closing?");
|
wxString Message = _("Save project before closing?");
|
||||||
if( !bHasTracks )
|
if( !bHasTracks )
|
||||||
{
|
{
|
||||||
Message += _("\nIf saved, the project will have no tracks.\n\nTo save any previously open tracks:\nCancel, Edit > Undo until all tracks\nare open, then File > Save Project.");
|
Message += _("\nIf saved, the project will have no tracks.\n\nTo save any previously open tracks:\nCancel, Edit > Undo until all tracks\nare open, then File > Save Project.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user