Rename "Save File Copy As" -> "Export"

This commit is contained in:
David Capello 2017-09-22 13:07:48 -03:00
parent 6f518f0b06
commit db2e582f23
2 changed files with 6 additions and 6 deletions

View File

@ -561,7 +561,7 @@
<separator />
<item command="SaveFile" text="&amp;Save" />
<item command="SaveFileAs" text="Save &amp;As..." />
<item command="SaveFileCopyAs" text="Save Cop&amp;y As..." />
<item command="SaveFileCopyAs" text="Expor&amp;t..." />
<item command="CloseFile" text="&amp;Close" />
<item command="CloseAllFiles" text="Close All" />
<separator />

View File

@ -181,10 +181,10 @@ bool SaveFileBaseCommand::saveAsDialog(
const Document* document = context->activeDocument();
std::string filename;
// If there is a delegate, we're doing a "Save Copy As", so we don't
// If there is a delegate, we're doing a "Save Copy As/Export", so we don't
// have to mark the file as saved.
bool saveCopyAs = (delegate != nullptr);
bool markAsSaved = (!saveCopyAs);
const bool isExport = (delegate != nullptr);
const bool markAsSaved = (!isExport);
double xscale = 1.0;
double yscale = 1.0;
@ -413,7 +413,7 @@ protected:
};
SaveFileCopyAsCommand::SaveFileCopyAsCommand()
: SaveFileBaseCommand("SaveFileCopyAs", "Save File Copy As", CmdRecordableFlag)
: SaveFileBaseCommand("SaveFileCopyAs", "Export", CmdRecordableFlag)
{
}
@ -443,7 +443,7 @@ void SaveFileCopyAsCommand::onExecute(Context* context)
docPref.saveCopy.filename());
}
if (saveAsDialog(context, "Save Copy As",
if (saveAsDialog(context, "Export",
oldFilename, delegate)) {
docPref.saveCopy.filename(document->filename());
if (delegate) {