Translate some missed titles

This commit is contained in:
GermanAizek 2024-01-29 08:38:31 -06:00 committed by Anton Kochkov
parent f8c7df8260
commit 99f021a199
22 changed files with 92 additions and 15 deletions

View File

@ -530,10 +530,10 @@ bool CutterApplication::parseCommandLineOptions()
opts.fileOpenOptions.analysisCmd = {};
break;
case AutomaticAnalysisLevel::AAA:
opts.fileOpenOptions.analysisCmd = { { "aaa", "Auto analysis" } };
opts.fileOpenOptions.analysisCmd = { { "aaa", tr("Auto analysis") } };
break;
case AutomaticAnalysisLevel::AAAA:
opts.fileOpenOptions.analysisCmd = { { "aaaa", "Auto analysis (experimental)" } };
opts.fileOpenOptions.analysisCmd = { { "aaaa", tr("Auto analysis (experimental)") } };
break;
}
opts.fileOpenOptions.script = cmd_parser.value(scriptOption);

View File

@ -45,17 +45,17 @@ void VersionInfoDialog::fillVersionInfo()
// Left tree
QTreeWidgetItem *addrItemL = new QTreeWidgetItem();
addrItemL->setText(0, "Address:");
addrItemL->setText(0, tr("Address:"));
addrItemL->setText(1, RzAddressString(sdb_num_get(sdb, "addr", 0)));
ui->leftTreeWidget->addTopLevelItem(addrItemL);
QTreeWidgetItem *offItemL = new QTreeWidgetItem();
offItemL->setText(0, "Offset:");
offItemL->setText(0, tr("Offset:"));
offItemL->setText(1, RzAddressString(sdb_num_get(sdb, "offset", 0)));
ui->leftTreeWidget->addTopLevelItem(offItemL);
QTreeWidgetItem *entriesItemL = new QTreeWidgetItem();
entriesItemL->setText(0, "Entries:");
entriesItemL->setText(0, tr("Entries:"));
const ut64 num_entries = sdb_num_get(sdb, "num_entries", 0);
for (size_t i = 0; i < num_entries; ++i) {
auto key = QString("entry%0").arg(i);
@ -76,17 +76,17 @@ void VersionInfoDialog::fillVersionInfo()
// Right tree
QTreeWidgetItem *addrItemR = new QTreeWidgetItem();
addrItemR->setText(0, "Address:");
addrItemR->setText(0, tr("Address:"));
addrItemR->setText(1, RzAddressString(sdb_num_get(sdb, "addr", 0)));
ui->rightTreeWidget->addTopLevelItem(addrItemR);
QTreeWidgetItem *offItemR = new QTreeWidgetItem();
offItemR->setText(0, "Offset:");
offItemR->setText(0, tr("Offset:"));
offItemR->setText(1, RzAddressString(sdb_num_get(sdb, "offset", 0)));
ui->rightTreeWidget->addTopLevelItem(offItemR);
QTreeWidgetItem *entriesItemR = new QTreeWidgetItem();
entriesItemR->setText(0, "Entries:");
entriesItemR->setText(0, tr("Entries:"));
for (size_t num_version = 0;; num_version++) {
auto path_version =
QString("bin/cur/info/versioninfo/verneed/version%0").arg(num_version);

View File

@ -36,7 +36,7 @@ InitializationFileEditor::InitializationFileEditor(PreferencesDialog *dialog)
.arg(QUrl::fromLocalFile(cutterRCDirectory.absolutePath()).toString(),
cutterRCLocation.toHtmlEscaped()));
ui->executeNow->button(QDialogButtonBox::Retry)->setText("Execute");
ui->executeNow->button(QDialogButtonBox::Retry)->setText(tr("Execute"));
ui->ConfigFileEdit->clear();
if (cutterRCFileInfo.exists()) {
QFile cutterRC(cutterRCLocation);

View File

@ -16,7 +16,7 @@ BaseFindDialog::BaseFindDialog(QWidget *parent) : QDialog(parent), ui(new Ui::Ba
ui->nCoresCombo->clear();
for (size_t i = n_cores; i > 0; i--) {
if (n_cores == i) {
ui->nCoresCombo->addItem("All Cores");
ui->nCoresCombo->addItem(tr("All Cores"));
continue;
}
ui->nCoresCombo->addItem(QString::number(i));

View File

@ -77,3 +77,8 @@ void BacktraceWidget::fontsUpdatedSlot()
{
viewBacktrace->setFont(Config()->getFont());
}
QString BacktraceWidget::getWindowTitle() const
{
return tr("Backtrace");
}

View File

@ -293,3 +293,8 @@ void BreakpointWidget::editBreakpoint()
}
}
}
QString BreakpointWidget::getWindowTitle() const
{
return tr("Breakpoints");
}

View File

@ -232,3 +232,8 @@ const char *Dashboard::setBoolText(bool value)
{
return value ? "True" : "False";
}
QString Dashboard::getWindowTitle() const
{
return tr("Dashboard");
}

View File

@ -35,6 +35,7 @@ private:
void setPlainText(QLineEdit *textBox, const QString &text);
void setRzBinInfo(const RzBinInfo *binInfo);
const char *setBoolText(bool value);
QString getWindowTitle() const override;
QWidget *hashesWidget = nullptr;
};

View File

@ -51,3 +51,8 @@ void EntrypointWidget::on_entrypointTreeWidget_itemDoubleClicked(QTreeWidgetItem
EntrypointDescription ep = item->data(0, Qt::UserRole).value<EntrypointDescription>();
Core()->seekAndShow(ep.vaddr);
}
QString EntrypointWidget::getWindowTitle() const
{
return tr("Entry Points");
}

View File

@ -282,3 +282,8 @@ void FlagsWidget::setScrollMode()
{
qhelpers::setVerticalScrollMode(ui->flagsTreeView);
}
QString FlagsWidget::getWindowTitle() const
{
return tr("Flags");
}

View File

@ -186,3 +186,8 @@ void FlirtWidget::showItemContextMenu(const QPoint &pt)
blockMenu->exec(this->mapToGlobal(pt));
}
}
QString FlirtWidget::getWindowTitle() const
{
return tr("Signatures");
}

View File

@ -5,8 +5,8 @@
OverviewWidget::OverviewWidget(MainWindow *main) : CutterDockWidget(main)
{
setWindowTitle("Graph Overview");
setObjectName("Graph Overview");
setWindowTitle(tr("Graph Overview"));
setObjectName(tr("Graph Overview"));
setAllowedAreas(Qt::AllDockWidgetAreas);
graphView = new OverviewView(this);
setWidget(graphView);

View File

@ -191,3 +191,8 @@ bool ProcessesFilterModel::filterAcceptsRow(int row, const QModelIndex &parent)
return false;
}
QString ProcessesWidget::getWindowTitle() const
{
return tr("Processes");
}

View File

@ -252,3 +252,8 @@ void RegisterRefsWidget::copyClip(int column)
QClipboard *clipboard = QApplication::clipboard();
clipboard->setText(value);
}
QString RegisterRefsWidget::getWindowTitle() const
{
return tr("Register References");
}

View File

@ -116,3 +116,9 @@ void RegistersWidget::openContextMenu(QPoint point, QString address)
addressContextMenu.setTarget(address.toULongLong(nullptr, 16));
addressContextMenu.exec(point);
}
QString RegistersWidget::getWindowTitle() const
{
return tr("Registers");
}

View File

@ -133,3 +133,8 @@ void GenericRizinGraphView::loadCurrentGraph()
center();
}
}
QString GenericRizinGraphView::getWindowTitle() const
{
return tr("Rizin Graphs");
}

View File

@ -331,3 +331,8 @@ void SearchWidget::enableSearch()
ui->searchButton->setEnabled(true);
ui->searchButton->setText(tr("Search"));
}
QString SearchWidget::getWindowTitle() const
{
return tr("Search");
}

View File

@ -167,3 +167,8 @@ void SegmentsWidget::refreshSegments()
qhelpers::adjustColumns(ui->treeView, SegmentsModel::ColumnCount, 0);
}
QString SegmentsWidget::getWindowTitle() const
{
return tr("Segments");
}

View File

@ -255,3 +255,8 @@ Qt::ItemFlags StackModel::flags(const QModelIndex &index) const
return QAbstractTableModel::flags(index);
}
}
QString StackWidget::getWindowTitle() const
{
return tr("Stack");
}

View File

@ -273,3 +273,8 @@ void StringsWidget::on_actionCopy()
QClipboard *clipboard = QApplication::clipboard();
clipboard->setText(index.data().toString());
}
QString StringsWidget::getWindowTitle() const
{
return tr("Strings");
}

View File

@ -366,3 +366,8 @@ void TypesWidget::typeItemDoubleClicked(const QModelIndex &index)
dialog.setTypeName(t.type);
dialog.exec();
}
QString TypesWidget::getWindowTitle() const
{
return tr("Types");
}

View File

@ -39,8 +39,8 @@ VisualNavbar::VisualNavbar(MainWindow *main, QWidget *parent)
/*
QComboBox *addsCombo = new QComboBox();
addsCombo->addItem("");
addsCombo->addItem("Entry points");
addsCombo->addItem("Marks");
addsCombo->addItem(tr("Entry points"));
addsCombo->addItem(tr("Marks"));
*/
addWidget(this->graphicsView);
// addWidget(addsCombo);