Skip to content

Commit

Permalink
Translate some missed titles
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek authored and XVilka committed Mar 25, 2024
1 parent f8c7df8 commit 99f021a
Show file tree
Hide file tree
Showing 22 changed files with 92 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/CutterApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 6 additions & 6 deletions src/dialogs/VersionInfoDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/dialogs/preferences/InitializationFileEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/tools/basefind/BaseFindDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
5 changes: 5 additions & 0 deletions src/widgets/BacktraceWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,8 @@ void BacktraceWidget::fontsUpdatedSlot()
{
viewBacktrace->setFont(Config()->getFont());
}

QString BacktraceWidget::getWindowTitle() const
{
return tr("Backtrace");
}
5 changes: 5 additions & 0 deletions src/widgets/BreakpointWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,8 @@ void BreakpointWidget::editBreakpoint()
}
}
}

QString BreakpointWidget::getWindowTitle() const
{
return tr("Breakpoints");
}
5 changes: 5 additions & 0 deletions src/widgets/Dashboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,8 @@ const char *Dashboard::setBoolText(bool value)
{
return value ? "True" : "False";
}

QString Dashboard::getWindowTitle() const
{
return tr("Dashboard");
}
1 change: 1 addition & 0 deletions src/widgets/Dashboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ private slots:
void setPlainText(QLineEdit *textBox, const QString &text);
void setRzBinInfo(const RzBinInfo *binInfo);
const char *setBoolText(bool value);
QString getWindowTitle() const override;

QWidget *hashesWidget = nullptr;
};
Expand Down
5 changes: 5 additions & 0 deletions src/widgets/EntrypointWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
5 changes: 5 additions & 0 deletions src/widgets/FlagsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,8 @@ void FlagsWidget::setScrollMode()
{
qhelpers::setVerticalScrollMode(ui->flagsTreeView);
}

QString FlagsWidget::getWindowTitle() const
{
return tr("Flags");
}
7 changes: 6 additions & 1 deletion src/widgets/FlirtWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,9 @@ void FlirtWidget::showItemContextMenu(const QPoint &pt)
blockMenu->setTarget(entry);
blockMenu->exec(this->mapToGlobal(pt));
}
}
}

QString FlirtWidget::getWindowTitle() const
{
return tr("Signatures");
}
4 changes: 2 additions & 2 deletions src/widgets/OverviewWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions src/widgets/ProcessesWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,8 @@ bool ProcessesFilterModel::filterAcceptsRow(int row, const QModelIndex &parent)

return false;
}

QString ProcessesWidget::getWindowTitle() const
{
return tr("Processes");
}
5 changes: 5 additions & 0 deletions src/widgets/RegisterRefsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,8 @@ void RegisterRefsWidget::copyClip(int column)
QClipboard *clipboard = QApplication::clipboard();
clipboard->setText(value);
}

QString RegisterRefsWidget::getWindowTitle() const
{
return tr("Register References");
}
6 changes: 6 additions & 0 deletions src/widgets/RegistersWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
5 changes: 5 additions & 0 deletions src/widgets/RizinGraphWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,8 @@ void GenericRizinGraphView::loadCurrentGraph()
center();
}
}

QString GenericRizinGraphView::getWindowTitle() const
{
return tr("Rizin Graphs");
}
5 changes: 5 additions & 0 deletions src/widgets/SearchWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,3 +331,8 @@ void SearchWidget::enableSearch()
ui->searchButton->setEnabled(true);
ui->searchButton->setText(tr("Search"));
}

QString SearchWidget::getWindowTitle() const
{
return tr("Search");
}
5 changes: 5 additions & 0 deletions src/widgets/SegmentsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,8 @@ void SegmentsWidget::refreshSegments()

qhelpers::adjustColumns(ui->treeView, SegmentsModel::ColumnCount, 0);
}

QString SegmentsWidget::getWindowTitle() const
{
return tr("Segments");
}
5 changes: 5 additions & 0 deletions src/widgets/StackWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,8 @@ Qt::ItemFlags StackModel::flags(const QModelIndex &index) const
return QAbstractTableModel::flags(index);
}
}

QString StackWidget::getWindowTitle() const
{
return tr("Stack");
}
5 changes: 5 additions & 0 deletions src/widgets/StringsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,8 @@ void StringsWidget::on_actionCopy()
QClipboard *clipboard = QApplication::clipboard();
clipboard->setText(index.data().toString());
}

QString StringsWidget::getWindowTitle() const
{
return tr("Strings");
}
5 changes: 5 additions & 0 deletions src/widgets/TypesWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,8 @@ void TypesWidget::typeItemDoubleClicked(const QModelIndex &index)
dialog.setTypeName(t.type);
dialog.exec();
}

QString TypesWidget::getWindowTitle() const
{
return tr("Types");
}
4 changes: 2 additions & 2 deletions src/widgets/VisualNavbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 99f021a

Please sign in to comment.