Import: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the Import Wb. Ticket: https://tracker.freecadweb.org/view.php?id=4473
This commit is contained in:
@@ -57,7 +57,7 @@ FCCmdImportReadBREP::FCCmdImportReadBREP()
|
||||
void FCCmdImportReadBREP::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
openCommand("Read BREP");
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "Read BREP"));
|
||||
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), QString(), QString(), QLatin1String("BREP (*.brep *.rle)"));
|
||||
if (fn.isEmpty()) {
|
||||
abortCommand();
|
||||
@@ -97,7 +97,7 @@ void ImportStep::activated(int iMsg)
|
||||
Q_UNUSED(iMsg);
|
||||
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), QString(), QString(), QLatin1String("STEP (*.stp *.step)"));
|
||||
if (!fn.isEmpty()) {
|
||||
openCommand("Part ImportSTEP Create");
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "Part ImportSTEP Create"));
|
||||
doCommand(Doc,"f = App.document().addObject(\"ImportStep\",\"ImportStep\")");
|
||||
fn = Base::Tools::escapeEncodeFilename(fn);
|
||||
doCommand(Doc,"f.FileName = \"%s\"",(const char*)fn.toUtf8());
|
||||
@@ -137,7 +137,7 @@ void ImportIges::activated(int iMsg)
|
||||
Q_UNUSED(iMsg);
|
||||
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), QString(), QString(), QLatin1String("IGES (*.igs *.iges)"));
|
||||
if (!fn.isEmpty()) {
|
||||
openCommand("ImportIGES Create");
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "ImportIGES Create"));
|
||||
doCommand(Doc,"f = App.document().addObject(\"ImportIges\",\"ImportIges\")");
|
||||
fn = Base::Tools::escapeEncodeFilename(fn);
|
||||
doCommand(Doc,"f.FileName = \"%s\"",(const char*)fn.toUtf8());
|
||||
|
||||
Reference in New Issue
Block a user