diff --git a/src/Mod/Spreadsheet/Gui/AppSpreadsheetGui.cpp b/src/Mod/Spreadsheet/Gui/AppSpreadsheetGui.cpp index 2a1778cca2..eb98e4d70f 100644 --- a/src/Mod/Spreadsheet/Gui/AppSpreadsheetGui.cpp +++ b/src/Mod/Spreadsheet/Gui/AppSpreadsheetGui.cpp @@ -152,6 +152,6 @@ PyMOD_INIT_FUNC(SpreadsheetGui) loadSpreadsheetResource(); PyObject* mod = SpreadsheetGui::initModule(); - Base::Console().log("Loading GUI of Spreadsheet module... done\n"); + Base::Console().log("Loading GUI of Spreadsheet module… done\n"); PyMOD_Return(mod); } diff --git a/src/Mod/Spreadsheet/Gui/Command.cpp b/src/Mod/Spreadsheet/Gui/Command.cpp index a9430fcf97..3d333df4d8 100644 --- a/src/Mod/Spreadsheet/Gui/Command.cpp +++ b/src/Mod/Spreadsheet/Gui/Command.cpp @@ -58,8 +58,8 @@ CmdSpreadsheetMergeCells::CmdSpreadsheetMergeCells() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("&Merge cells"); - sToolTipText = QT_TR_NOOP("Merge selected cells"); + sMenuText = QT_TR_NOOP("&Merge Cells"); + sToolTipText = QT_TR_NOOP("Merges the selected cells"); sWhatsThis = "Spreadsheet_MergeCells"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetMergeCells"; @@ -119,8 +119,8 @@ CmdSpreadsheetSplitCell::CmdSpreadsheetSplitCell() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("Sp&lit cell"); - sToolTipText = QT_TR_NOOP("Split previously merged cells"); + sMenuText = QT_TR_NOOP("Sp&lit Cell"); + sToolTipText = QT_TR_NOOP("Splits the selected and previously merged cell"); sWhatsThis = "Spreadsheet_SplitCell"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetSplitCell"; @@ -181,8 +181,8 @@ CmdSpreadsheetImport::CmdSpreadsheetImport() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("&Import spreadsheet"); - sToolTipText = QT_TR_NOOP("Import CSV file into spreadsheet"); + sMenuText = QT_TR_NOOP("&Import Spreadsheet"); + sToolTipText = QT_TR_NOOP("Imports a CSV file into the spreadsheet"); sWhatsThis = "Spreadsheet_Import"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetImport"; @@ -233,8 +233,8 @@ CmdSpreadsheetExport::CmdSpreadsheetExport() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("&Export spreadsheet"); - sToolTipText = QT_TR_NOOP("Export spreadsheet to CSV file"); + sMenuText = QT_TR_NOOP("&Export Spreadsheet"); + sToolTipText = QT_TR_NOOP("Exports the spreadsheet to a CSV file"); sWhatsThis = "Spreadsheet_Export"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetExport"; @@ -279,8 +279,8 @@ CmdSpreadsheetAlignLeft::CmdSpreadsheetAlignLeft() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("Align &left"); - sToolTipText = QT_TR_NOOP("Left-align contents of selected cells"); + sMenuText = QT_TR_NOOP("Align &Left"); + sToolTipText = QT_TR_NOOP("Left-aligns the contents of the selected cells"); sWhatsThis = "Spreadsheet_AlignLeft"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetAlignLeft"; @@ -336,8 +336,8 @@ CmdSpreadsheetAlignCenter::CmdSpreadsheetAlignCenter() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("Align ¢er"); - sToolTipText = QT_TR_NOOP("Center-align contents of selected cells"); + sMenuText = QT_TR_NOOP("Align Horizontal &Center"); + sToolTipText = QT_TR_NOOP("Horizontally center-aligns the contents of the selected cells"); sWhatsThis = "Spreadsheet_AlignCenter"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetAlignCenter"; @@ -393,8 +393,8 @@ CmdSpreadsheetAlignRight::CmdSpreadsheetAlignRight() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("Align &right"); - sToolTipText = QT_TR_NOOP("Right-align contents of selected cells"); + sMenuText = QT_TR_NOOP("Align &Right"); + sToolTipText = QT_TR_NOOP("Right-aligns the contents of the selected cells"); sWhatsThis = "Spreadsheet_AlignRight"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetAlignRight"; @@ -450,8 +450,8 @@ CmdSpreadsheetAlignTop::CmdSpreadsheetAlignTop() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("Align &top"); - sToolTipText = QT_TR_NOOP("Top-align contents of selected cells"); + sMenuText = QT_TR_NOOP("Align &Top"); + sToolTipText = QT_TR_NOOP("Top-aligns the contents the of selected cells"); sWhatsThis = "Spreadsheet_AlignTop"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetAlignTop"; @@ -507,8 +507,8 @@ CmdSpreadsheetAlignBottom::CmdSpreadsheetAlignBottom() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("Align &bottom"); - sToolTipText = QT_TR_NOOP("Bottom-align contents of selected cells"); + sMenuText = QT_TR_NOOP("Align &Bottom"); + sToolTipText = QT_TR_NOOP("Bottom-aligns the contents of the selected cells"); sWhatsThis = "Spreadsheet_AlignBottom"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetAlignBottom"; @@ -564,8 +564,8 @@ CmdSpreadsheetAlignVCenter::CmdSpreadsheetAlignVCenter() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("&Vertically center-align"); - sToolTipText = QT_TR_NOOP("Vertically center-align contents of selected cells"); + sMenuText = QT_TR_NOOP("Align &Vertical Center"); + sToolTipText = QT_TR_NOOP("Vertically center-aligns the contents of the selected cells"); sWhatsThis = "Spreadsheet_AlignVCenter"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetAlignVCenter"; @@ -621,8 +621,8 @@ CmdSpreadsheetStyleBold::CmdSpreadsheetStyleBold() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("&Bold text"); - sToolTipText = QT_TR_NOOP("Set text in selected cells bold"); + sMenuText = QT_TR_NOOP("&Bold Text"); + sToolTipText = QT_TR_NOOP("Sets the text in the selected cells bold"); sWhatsThis = "Spreadsheet_StyleBold"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetStyleBold"; @@ -705,8 +705,8 @@ CmdSpreadsheetStyleItalic::CmdSpreadsheetStyleItalic() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("&Italic text"); - sToolTipText = QT_TR_NOOP("Set text in selected cells italic"); + sMenuText = QT_TR_NOOP("&Italic Iext"); + sToolTipText = QT_TR_NOOP("Sets the text in the selected cells italic"); sWhatsThis = "Spreadsheet_StyleItalic"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetStyleItalic"; @@ -789,8 +789,8 @@ CmdSpreadsheetStyleUnderline::CmdSpreadsheetStyleUnderline() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("&Underline text"); - sToolTipText = QT_TR_NOOP("Underline text in selected cells"); + sMenuText = QT_TR_NOOP("&Underline Text"); + sToolTipText = QT_TR_NOOP("Underlines the text in the selected cells"); sWhatsThis = "Spreadsheet_StyleUnderline"; sStatusTip = sToolTipText; sPixmap = "SpreadsheetStyleUnderline"; @@ -873,8 +873,8 @@ CmdSpreadsheetSetAlias::CmdSpreadsheetSetAlias() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("Set alias"); - sToolTipText = QT_TR_NOOP("Set alias for selected cell"); + sMenuText = QT_TR_NOOP("Set Alias"); + sToolTipText = QT_TR_NOOP("Sets an alias for the selected cell"); sWhatsThis = "Spreadsheet_SetAlias"; sStatusTip = sToolTipText; sAccel = "Ctrl+Shift+A"; @@ -944,8 +944,8 @@ CmdCreateSpreadsheet::CmdCreateSpreadsheet() { sAppModule = "Spreadsheet"; sGroup = QT_TR_NOOP("Spreadsheet"); - sMenuText = QT_TR_NOOP("&Create spreadsheet"); - sToolTipText = QT_TR_NOOP("Create a new spreadsheet"); + sMenuText = QT_TR_NOOP("&New Spreadsheet"); + sToolTipText = QT_TR_NOOP("Creates a new spreadsheet"); sWhatsThis = "Spreadsheet_CreateSheet"; sStatusTip = sToolTipText; sPixmap = "Spreadsheet"; diff --git a/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp b/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp index 2b359cc4dc..a7f191367c 100644 --- a/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp +++ b/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp @@ -223,7 +223,7 @@ void DlgBindSheet::accept() tr("Bind cells"), tr("Source and target cell count mismatch. " "Partial binding may still work.\n\n" - "Do you want to continue?"), + "Continue?"), QMessageBox::Yes | QMessageBox::No); if (res == QMessageBox::No) { return; diff --git a/src/Mod/Spreadsheet/Gui/DlgBindSheet.ui b/src/Mod/Spreadsheet/Gui/DlgBindSheet.ui index fb95876a65..61e537e7e9 100644 --- a/src/Mod/Spreadsheet/Gui/DlgBindSheet.ui +++ b/src/Mod/Spreadsheet/Gui/DlgBindSheet.ui @@ -33,7 +33,7 @@ - Bind cells: + Bind cells @@ -66,7 +66,7 @@ - To cells: + To cells @@ -95,7 +95,7 @@ The expression must evaluate to a string of some cell address. End cell address to bind to. -Type '=' if you want to use an expression. +Type '=' to use an expression. The expression must evaluate to a string of some cell address. @@ -114,7 +114,7 @@ The expression must evaluate to a string of some cell address. - Sheet: + Sheet diff --git a/src/Mod/Spreadsheet/Gui/DlgSettings.ui b/src/Mod/Spreadsheet/Gui/DlgSettings.ui index e6f19c4313..8779610d7e 100644 --- a/src/Mod/Spreadsheet/Gui/DlgSettings.ui +++ b/src/Mod/Spreadsheet/Gui/DlgSettings.ui @@ -29,7 +29,7 @@ - If checked, use the custom presentation to display cell string. + Uses the custom presentation to display cell string Show alias in cell with format @@ -45,7 +45,7 @@ - Set a zoom level for table view from 60% to 160%. + Defines a default zoom level for table view from 60% to 160% % @@ -73,7 +73,7 @@ - Default zoom level: + Default zoom level @@ -128,7 +128,7 @@ Defaults to: %V = %A - Delimiter Character: + Delimiter character @@ -188,7 +188,7 @@ Defaults to: %V = %A - Quote Character: + Quote character @@ -220,7 +220,7 @@ Defaults to: %V = %A - Escape Character: + Escape character diff --git a/src/Mod/Spreadsheet/Gui/DlgSheetConf.ui b/src/Mod/Spreadsheet/Gui/DlgSheetConf.ui index 799b9f103f..56996a9860 100644 --- a/src/Mod/Spreadsheet/Gui/DlgSheetConf.ui +++ b/src/Mod/Spreadsheet/Gui/DlgSheetConf.ui @@ -17,7 +17,7 @@ - Cell range: + Cell range @@ -54,7 +54,7 @@ by that property. - Property: + Property @@ -69,14 +69,14 @@ switch the design configuration. The property will be created if not exist. - Group: + Group - Optional property group name. + Optional property group name diff --git a/src/Mod/Spreadsheet/Gui/LineEdit.cpp b/src/Mod/Spreadsheet/Gui/LineEdit.cpp index 48e5dcae92..3410433b47 100644 --- a/src/Mod/Spreadsheet/Gui/LineEdit.cpp +++ b/src/Mod/Spreadsheet/Gui/LineEdit.cpp @@ -57,7 +57,7 @@ void LineEdit::setDocumentObject(const App::DocumentObject* currentDocObj, bool QPointer active_view = Gui::MainWindow::getInstance()->activeWindow(); if (!active_view) { Base::Console().developerWarning("LineEdit::setDocumentObject", - "The active view is not Spreadsheet"); + "The active view is not a spreadsheet"); return; } QPointer zv = active_view->findChild(); diff --git a/src/Mod/Spreadsheet/Gui/PropertiesDialog.ui b/src/Mod/Spreadsheet/Gui/PropertiesDialog.ui index a5f6cd3f65..fc54aa4d7d 100644 --- a/src/Mod/Spreadsheet/Gui/PropertiesDialog.ui +++ b/src/Mod/Spreadsheet/Gui/PropertiesDialog.ui @@ -11,7 +11,7 @@ - Cell properties + Cell Properties diff --git a/src/Mod/Spreadsheet/Gui/Sheet.ui b/src/Mod/Spreadsheet/Gui/Sheet.ui index 9d1f78bfe0..467be1c347 100644 --- a/src/Mod/Spreadsheet/Gui/Sheet.ui +++ b/src/Mod/Spreadsheet/Gui/Sheet.ui @@ -19,7 +19,7 @@ - &Content: + &Content cellContent @@ -36,7 +36,7 @@ - &Alias: + &Alias cellAlias diff --git a/src/Mod/Spreadsheet/Gui/SheetTableView.cpp b/src/Mod/Spreadsheet/Gui/SheetTableView.cpp index 7d71dd7bd3..f220339e56 100644 --- a/src/Mod/Spreadsheet/Gui/SheetTableView.cpp +++ b/src/Mod/Spreadsheet/Gui/SheetTableView.cpp @@ -139,20 +139,20 @@ SheetTableView::SheetTableView(QWidget* parent) Q_UNUSED(isContiguous) /*: This is shown in the context menu for the vertical header in a spreadsheet. The number refers to how many lines are selected and will be inserted. */ - auto insertBefore = menu.addAction(tr("Insert %n row(s) above", "", selection.size())); + auto insertBefore = menu.addAction(tr("Insert %n Row(s) Above", "", selection.size())); connect(insertBefore, &QAction::triggered, this, &SheetTableView::insertRows); if (max < model()->rowCount() - 1) { auto insertAfter = - menu.addAction(tr("Insert %n row(s) below", "", selection.size())); + menu.addAction(tr("Insert %n Row(s) Below", "", selection.size())); connect(insertAfter, &QAction::triggered, this, &SheetTableView::insertRowsAfter); } } else { - auto insert = menu.addAction(tr("Insert %n non-contiguous rows", "", selection.size())); + auto insert = menu.addAction(tr("Insert %n Non-Contiguous Rows", "", selection.size())); connect(insert, &QAction::triggered, this, &SheetTableView::insertRows); } - auto remove = menu.addAction(tr("Remove row(s)", "", selection.size())); + auto remove = menu.addAction(tr("Remove Rows", "", selection.size())); connect(remove, &QAction::triggered, this, &SheetTableView::removeRows); menu.exec(QCursor::pos()); }); @@ -166,12 +166,12 @@ SheetTableView::SheetTableView(QWidget* parent) Q_UNUSED(isContiguous) /*: This is shown in the context menu for the horizontal header in a spreadsheet. The number refers to how many lines are selected and will be inserted. */ - auto insertAbove = menu.addAction(tr("Insert %n column(s) left", "", selection.size())); + auto insertAbove = menu.addAction(tr("Insert %n Column(s) Left", "", selection.size())); connect(insertAbove, &QAction::triggered, this, &SheetTableView::insertColumns); if (max < model()->columnCount() - 1) { auto insertAfter = - menu.addAction(tr("Insert %n column(s) right", "", selection.size())); + menu.addAction(tr("Insert %n Column(s) Right", "", selection.size())); connect(insertAfter, &QAction::triggered, this, @@ -180,15 +180,15 @@ SheetTableView::SheetTableView(QWidget* parent) } else { auto insert = - menu.addAction(tr("Insert %n non-contiguous columns", "", selection.size())); + menu.addAction(tr("Insert %n Non-Contiguous Columns", "", selection.size())); connect(insert, &QAction::triggered, this, &SheetTableView::insertColumns); } - auto remove = menu.addAction(tr("Remove column(s)", "", selection.size())); + auto remove = menu.addAction(tr("Remove Column(s)", "", selection.size())); connect(remove, &QAction::triggered, this, &SheetTableView::removeColumns); menu.exec(QCursor::pos()); }); - actionProperties = new QAction(tr("Properties..."), this); + actionProperties = new QAction(tr("Properties…"), this); addAction(actionProperties); horizontalHeader()->setContextMenuPolicy(Qt::CustomContextMenu); @@ -204,11 +204,11 @@ SheetTableView::SheetTableView(QWidget* parent) connect(actionRecompute, &QAction::triggered, this, &SheetTableView::onRecompute); contextMenu.addAction(actionRecompute); - actionBind = new QAction(tr("Bind..."), this); + actionBind = new QAction(tr("Bind…"), this); connect(actionBind, &QAction::triggered, this, &SheetTableView::onBind); contextMenu.addAction(actionBind); - actionConf = new QAction(tr("Configuration table..."), this); + actionConf = new QAction(tr("Configuration Table…"), this); connect(actionConf, &QAction::triggered, this, &SheetTableView::onConfSetup); contextMenu.addAction(actionConf); @@ -216,9 +216,9 @@ SheetTableView::SheetTableView(QWidget* parent) verticalHeader()->addAction(actionBind); contextMenu.addSeparator(); - actionMerge = contextMenu.addAction(tr("Merge cells")); + actionMerge = contextMenu.addAction(tr("Merge Cells")); connect(actionMerge, &QAction::triggered, this, &SheetTableView::mergeCells); - actionSplit = contextMenu.addAction(tr("Split cells")); + actionSplit = contextMenu.addAction(tr("Split Cells")); connect(actionSplit, &QAction::triggered, this, &SheetTableView::splitCell); contextMenu.addSeparator(); @@ -241,7 +241,7 @@ SheetTableView::SheetTableView(QWidget* parent) void SheetTableView::onRecompute() { - Gui::Command::openCommand("Recompute cells"); + Gui::Command::openCommand("Recompute Cells"); for (auto& range : selectedRanges()) { Gui::cmdAppObjectArgs(sheet, "recomputeCells('%s', '%s')", @@ -351,7 +351,7 @@ void SheetTableView::insertRows() std::sort(sortedRows.begin(), sortedRows.end()); /* Insert rows */ - Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert rows")); + Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert Rows")); std::vector::const_reverse_iterator it = sortedRows.rbegin(); while (it != sortedRows.rend()) { int prev = *it; @@ -384,7 +384,7 @@ void SheetTableView::insertRowsAfter() assert(max - min == rows.size() - 1); Q_UNUSED(min) - Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert rows")); + Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert Rows")); Gui::cmdAppObjectArgs(sheet, "insertRows('%s', %d)", rowName(max + 1).c_str(), rows.size()); Gui::Command::commitCommand(); Gui::Command::doCommand(Gui::Command::Doc, "App.ActiveDocument.recompute()"); @@ -404,7 +404,7 @@ void SheetTableView::removeRows() std::sort(sortedRows.begin(), sortedRows.end(), std::greater<>()); /* Remove rows */ - Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Remove rows")); + Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Remove Rows")); for (const auto& it : sortedRows) { Gui::cmdAppObjectArgs(sheet, "removeRows('%s', %d)", rowName(it).c_str(), 1); } @@ -426,7 +426,7 @@ void SheetTableView::insertColumns() std::sort(sortedColumns.begin(), sortedColumns.end()); /* Insert columns */ - Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert columns")); + Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert Columns")); std::vector::const_reverse_iterator it = sortedColumns.rbegin(); while (it != sortedColumns.rend()) { int prev = *it; @@ -459,7 +459,7 @@ void SheetTableView::insertColumnsAfter() assert(max - min == columns.size() - 1); Q_UNUSED(min) - Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert columns")); + Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert Columns")); Gui::cmdAppObjectArgs(sheet, "insertColumns('%s', %d)", columnName(max + 1).c_str(), @@ -482,7 +482,7 @@ void SheetTableView::removeColumns() std::sort(sortedColumns.begin(), sortedColumns.end(), std::greater<>()); /* Remove columns */ - Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Remove rows")); + Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Remove Rows")); for (const auto& it : sortedColumns) { Gui::cmdAppObjectArgs(sheet, "removeColumns('%s', %d)", columnName(it).c_str(), 1); } @@ -667,16 +667,16 @@ bool SheetTableView::event(QEvent* event) } } else if (event && event->type() == QEvent::LanguageChange) { - actionProperties->setText(tr("Properties...")); + actionProperties->setText(tr("Properties…")); actionRecompute->setText(tr("Recompute")); - actionConf->setText(tr("Configuration table...")); - actionMerge->setText(tr("Merge cells")); - actionSplit->setText(tr("Split cells")); + actionConf->setText(tr("Configuration Table…")); + actionMerge->setText(tr("Merge Cells")); + actionSplit->setText(tr("Split Cells")); actionCopy->setText(tr("Copy")); actionPaste->setText(tr("Paste")); actionCut->setText(tr("Cut")); actionDel->setText(tr("Delete")); - actionBind->setText(tr("Bind...")); + actionBind->setText(tr("Bind…")); } return QTableView::event(event); } @@ -686,7 +686,7 @@ void SheetTableView::deleteSelection() QModelIndexList selection = selectionModel()->selectedIndexes(); if (!selection.empty()) { - Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Clear cell(s)")); + Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Clear Cells")); std::vector ranges = selectedRanges(); std::vector::const_iterator i = ranges.begin(); @@ -757,7 +757,7 @@ void SheetTableView::cutSelection() void SheetTableView::pasteClipboard() { - App::AutoTransaction committer("Paste cell"); + App::AutoTransaction committer("Paste Cell"); try { bool copy = true; auto ranges = sheet->getCopyOrCutRange(copy); diff --git a/src/Mod/Spreadsheet/Gui/SpreadsheetView.cpp b/src/Mod/Spreadsheet/Gui/SpreadsheetView.cpp index 725c893eba..30dec6fcc2 100644 --- a/src/Mod/Spreadsheet/Gui/SpreadsheetView.cpp +++ b/src/Mod/Spreadsheet/Gui/SpreadsheetView.cpp @@ -189,7 +189,7 @@ bool SheetView::onMsg(const char* pMsg, const char**) else if (strcmp("Std_Delete", pMsg) == 0) { std::vector ranges = selectedRanges(); if (sheet->hasCell(ranges)) { - Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Clear cell(s)")); + Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Clear Cells")); std::vector::const_iterator i = ranges.begin(); for (; i != ranges.end(); ++i) { FCMD_OBJ_CMD(sheet, "clear('" << i->rangeString() << "')"); diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.cpp b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.cpp index cc09cbb5ee..b7a8461bc1 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.cpp +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.cpp @@ -106,7 +106,7 @@ void ViewProviderSheet::exportAsFile() QString selectedFilter; QString formatList = QObject::tr("CSV (*.csv *.CSV);;All (*)"); QString fileName = Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), - QObject::tr("Export file"), + QObject::tr("Export File"), QString(), formatList, &selectedFilter); @@ -131,7 +131,7 @@ void ViewProviderSheet::exportAsFile() void ViewProviderSheet::setupContextMenu(QMenu* menu, QObject* receiver, const char* member) { QAction* act; - act = menu->addAction(QObject::tr("Show spreadsheet"), receiver, member); + act = menu->addAction(QObject::tr("Show Spreadsheet"), receiver, member); act->setData(QVariant((int)ViewProvider::Default)); } diff --git a/src/Mod/Spreadsheet/Gui/Workbench.cpp b/src/Mod/Spreadsheet/Gui/Workbench.cpp index 7a58ca9388..5b73c43d54 100644 --- a/src/Mod/Spreadsheet/Gui/Workbench.cpp +++ b/src/Mod/Spreadsheet/Gui/Workbench.cpp @@ -91,9 +91,9 @@ void Workbench::activated() workbenchHelper.get(), &WorkbenchHelper::setForegroundColor); } - foregroundColor->setToolTip(QObject::tr("Set cell(s) text color")); - foregroundColor->setWhatsThis(QObject::tr("Sets the Spreadsheet cell(s) text color")); - foregroundColor->setStatusTip(QObject::tr("Set cell(s) text color")); + foregroundColor->setToolTip(QObject::tr("Set cells text color")); + foregroundColor->setWhatsThis(QObject::tr("Sets the Spreadsheet cells text color")); + foregroundColor->setStatusTip(QObject::tr("Set cells text color")); bar->addWidget(foregroundColor); QList bgList = Gui::getMainWindow()->findChildren( @@ -111,10 +111,10 @@ void Workbench::activated() workbenchHelper.get(), &WorkbenchHelper::setBackgroundColor); } - backgroundColor->setToolTip(QObject::tr("Set cell(s) background color")); + backgroundColor->setToolTip(QObject::tr("Set cells background color")); backgroundColor->setWhatsThis( - QObject::tr("Sets the Spreadsheet cell(s) background color")); - backgroundColor->setStatusTip(QObject::tr("Set cell(s) background color")); + QObject::tr("Sets the Spreadsheet cells background color")); + backgroundColor->setStatusTip(QObject::tr("Set cells background color")); bar->addWidget(backgroundColor); initialized = false; diff --git a/src/Mod/Spreadsheet/Gui/ZoomableView.cpp b/src/Mod/Spreadsheet/Gui/ZoomableView.cpp index 52128dbf0c..82988cce34 100644 --- a/src/Mod/Spreadsheet/Gui/ZoomableView.cpp +++ b/src/Mod/Spreadsheet/Gui/ZoomableView.cpp @@ -109,7 +109,7 @@ ZoomableView::ZoomableView(Ui::Sheet* ui) connect(ui->zoomMinus, &QToolButton::clicked, this, &ZoomableView::zoomOut); connect(ui->zoomTB, &QToolButton::clicked, ui->zoomSlider, [zoomSlider = ui->zoomSlider]() { - const QString title = tr("Zoom level"), label = tr("New zoom level:"); + const QString title = tr("Zoom Level"), label = tr("New zoom level:"); constexpr int min = ZoomableView::min, max = ZoomableView::max, step = 10; const int val = zoomSlider->value(); bool ok;