mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Translate some missed titles
This commit is contained in:
parent
f8c7df8260
commit
99f021a199
@ -530,10 +530,10 @@ bool CutterApplication::parseCommandLineOptions()
|
|||||||
opts.fileOpenOptions.analysisCmd = {};
|
opts.fileOpenOptions.analysisCmd = {};
|
||||||
break;
|
break;
|
||||||
case AutomaticAnalysisLevel::AAA:
|
case AutomaticAnalysisLevel::AAA:
|
||||||
opts.fileOpenOptions.analysisCmd = { { "aaa", "Auto analysis" } };
|
opts.fileOpenOptions.analysisCmd = { { "aaa", tr("Auto analysis") } };
|
||||||
break;
|
break;
|
||||||
case AutomaticAnalysisLevel::AAAA:
|
case AutomaticAnalysisLevel::AAAA:
|
||||||
opts.fileOpenOptions.analysisCmd = { { "aaaa", "Auto analysis (experimental)" } };
|
opts.fileOpenOptions.analysisCmd = { { "aaaa", tr("Auto analysis (experimental)") } };
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
opts.fileOpenOptions.script = cmd_parser.value(scriptOption);
|
opts.fileOpenOptions.script = cmd_parser.value(scriptOption);
|
||||||
|
@ -45,17 +45,17 @@ void VersionInfoDialog::fillVersionInfo()
|
|||||||
|
|
||||||
// Left tree
|
// Left tree
|
||||||
QTreeWidgetItem *addrItemL = new QTreeWidgetItem();
|
QTreeWidgetItem *addrItemL = new QTreeWidgetItem();
|
||||||
addrItemL->setText(0, "Address:");
|
addrItemL->setText(0, tr("Address:"));
|
||||||
addrItemL->setText(1, RzAddressString(sdb_num_get(sdb, "addr", 0)));
|
addrItemL->setText(1, RzAddressString(sdb_num_get(sdb, "addr", 0)));
|
||||||
ui->leftTreeWidget->addTopLevelItem(addrItemL);
|
ui->leftTreeWidget->addTopLevelItem(addrItemL);
|
||||||
|
|
||||||
QTreeWidgetItem *offItemL = new QTreeWidgetItem();
|
QTreeWidgetItem *offItemL = new QTreeWidgetItem();
|
||||||
offItemL->setText(0, "Offset:");
|
offItemL->setText(0, tr("Offset:"));
|
||||||
offItemL->setText(1, RzAddressString(sdb_num_get(sdb, "offset", 0)));
|
offItemL->setText(1, RzAddressString(sdb_num_get(sdb, "offset", 0)));
|
||||||
ui->leftTreeWidget->addTopLevelItem(offItemL);
|
ui->leftTreeWidget->addTopLevelItem(offItemL);
|
||||||
|
|
||||||
QTreeWidgetItem *entriesItemL = new QTreeWidgetItem();
|
QTreeWidgetItem *entriesItemL = new QTreeWidgetItem();
|
||||||
entriesItemL->setText(0, "Entries:");
|
entriesItemL->setText(0, tr("Entries:"));
|
||||||
const ut64 num_entries = sdb_num_get(sdb, "num_entries", 0);
|
const ut64 num_entries = sdb_num_get(sdb, "num_entries", 0);
|
||||||
for (size_t i = 0; i < num_entries; ++i) {
|
for (size_t i = 0; i < num_entries; ++i) {
|
||||||
auto key = QString("entry%0").arg(i);
|
auto key = QString("entry%0").arg(i);
|
||||||
@ -76,17 +76,17 @@ void VersionInfoDialog::fillVersionInfo()
|
|||||||
|
|
||||||
// Right tree
|
// Right tree
|
||||||
QTreeWidgetItem *addrItemR = new QTreeWidgetItem();
|
QTreeWidgetItem *addrItemR = new QTreeWidgetItem();
|
||||||
addrItemR->setText(0, "Address:");
|
addrItemR->setText(0, tr("Address:"));
|
||||||
addrItemR->setText(1, RzAddressString(sdb_num_get(sdb, "addr", 0)));
|
addrItemR->setText(1, RzAddressString(sdb_num_get(sdb, "addr", 0)));
|
||||||
ui->rightTreeWidget->addTopLevelItem(addrItemR);
|
ui->rightTreeWidget->addTopLevelItem(addrItemR);
|
||||||
|
|
||||||
QTreeWidgetItem *offItemR = new QTreeWidgetItem();
|
QTreeWidgetItem *offItemR = new QTreeWidgetItem();
|
||||||
offItemR->setText(0, "Offset:");
|
offItemR->setText(0, tr("Offset:"));
|
||||||
offItemR->setText(1, RzAddressString(sdb_num_get(sdb, "offset", 0)));
|
offItemR->setText(1, RzAddressString(sdb_num_get(sdb, "offset", 0)));
|
||||||
ui->rightTreeWidget->addTopLevelItem(offItemR);
|
ui->rightTreeWidget->addTopLevelItem(offItemR);
|
||||||
|
|
||||||
QTreeWidgetItem *entriesItemR = new QTreeWidgetItem();
|
QTreeWidgetItem *entriesItemR = new QTreeWidgetItem();
|
||||||
entriesItemR->setText(0, "Entries:");
|
entriesItemR->setText(0, tr("Entries:"));
|
||||||
for (size_t num_version = 0;; num_version++) {
|
for (size_t num_version = 0;; num_version++) {
|
||||||
auto path_version =
|
auto path_version =
|
||||||
QString("bin/cur/info/versioninfo/verneed/version%0").arg(num_version);
|
QString("bin/cur/info/versioninfo/verneed/version%0").arg(num_version);
|
||||||
|
@ -36,7 +36,7 @@ InitializationFileEditor::InitializationFileEditor(PreferencesDialog *dialog)
|
|||||||
.arg(QUrl::fromLocalFile(cutterRCDirectory.absolutePath()).toString(),
|
.arg(QUrl::fromLocalFile(cutterRCDirectory.absolutePath()).toString(),
|
||||||
cutterRCLocation.toHtmlEscaped()));
|
cutterRCLocation.toHtmlEscaped()));
|
||||||
|
|
||||||
ui->executeNow->button(QDialogButtonBox::Retry)->setText("Execute");
|
ui->executeNow->button(QDialogButtonBox::Retry)->setText(tr("Execute"));
|
||||||
ui->ConfigFileEdit->clear();
|
ui->ConfigFileEdit->clear();
|
||||||
if (cutterRCFileInfo.exists()) {
|
if (cutterRCFileInfo.exists()) {
|
||||||
QFile cutterRC(cutterRCLocation);
|
QFile cutterRC(cutterRCLocation);
|
||||||
|
@ -16,7 +16,7 @@ BaseFindDialog::BaseFindDialog(QWidget *parent) : QDialog(parent), ui(new Ui::Ba
|
|||||||
ui->nCoresCombo->clear();
|
ui->nCoresCombo->clear();
|
||||||
for (size_t i = n_cores; i > 0; i--) {
|
for (size_t i = n_cores; i > 0; i--) {
|
||||||
if (n_cores == i) {
|
if (n_cores == i) {
|
||||||
ui->nCoresCombo->addItem("All Cores");
|
ui->nCoresCombo->addItem(tr("All Cores"));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ui->nCoresCombo->addItem(QString::number(i));
|
ui->nCoresCombo->addItem(QString::number(i));
|
||||||
|
@ -77,3 +77,8 @@ void BacktraceWidget::fontsUpdatedSlot()
|
|||||||
{
|
{
|
||||||
viewBacktrace->setFont(Config()->getFont());
|
viewBacktrace->setFont(Config()->getFont());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString BacktraceWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Backtrace");
|
||||||
|
}
|
||||||
|
@ -293,3 +293,8 @@ void BreakpointWidget::editBreakpoint()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString BreakpointWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Breakpoints");
|
||||||
|
}
|
||||||
|
@ -232,3 +232,8 @@ const char *Dashboard::setBoolText(bool value)
|
|||||||
{
|
{
|
||||||
return value ? "True" : "False";
|
return value ? "True" : "False";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString Dashboard::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Dashboard");
|
||||||
|
}
|
||||||
|
@ -35,6 +35,7 @@ private:
|
|||||||
void setPlainText(QLineEdit *textBox, const QString &text);
|
void setPlainText(QLineEdit *textBox, const QString &text);
|
||||||
void setRzBinInfo(const RzBinInfo *binInfo);
|
void setRzBinInfo(const RzBinInfo *binInfo);
|
||||||
const char *setBoolText(bool value);
|
const char *setBoolText(bool value);
|
||||||
|
QString getWindowTitle() const override;
|
||||||
|
|
||||||
QWidget *hashesWidget = nullptr;
|
QWidget *hashesWidget = nullptr;
|
||||||
};
|
};
|
||||||
|
@ -51,3 +51,8 @@ void EntrypointWidget::on_entrypointTreeWidget_itemDoubleClicked(QTreeWidgetItem
|
|||||||
EntrypointDescription ep = item->data(0, Qt::UserRole).value<EntrypointDescription>();
|
EntrypointDescription ep = item->data(0, Qt::UserRole).value<EntrypointDescription>();
|
||||||
Core()->seekAndShow(ep.vaddr);
|
Core()->seekAndShow(ep.vaddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString EntrypointWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Entry Points");
|
||||||
|
}
|
||||||
|
@ -282,3 +282,8 @@ void FlagsWidget::setScrollMode()
|
|||||||
{
|
{
|
||||||
qhelpers::setVerticalScrollMode(ui->flagsTreeView);
|
qhelpers::setVerticalScrollMode(ui->flagsTreeView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString FlagsWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Flags");
|
||||||
|
}
|
||||||
|
@ -186,3 +186,8 @@ void FlirtWidget::showItemContextMenu(const QPoint &pt)
|
|||||||
blockMenu->exec(this->mapToGlobal(pt));
|
blockMenu->exec(this->mapToGlobal(pt));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString FlirtWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Signatures");
|
||||||
|
}
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
OverviewWidget::OverviewWidget(MainWindow *main) : CutterDockWidget(main)
|
OverviewWidget::OverviewWidget(MainWindow *main) : CutterDockWidget(main)
|
||||||
{
|
{
|
||||||
setWindowTitle("Graph Overview");
|
setWindowTitle(tr("Graph Overview"));
|
||||||
setObjectName("Graph Overview");
|
setObjectName(tr("Graph Overview"));
|
||||||
setAllowedAreas(Qt::AllDockWidgetAreas);
|
setAllowedAreas(Qt::AllDockWidgetAreas);
|
||||||
graphView = new OverviewView(this);
|
graphView = new OverviewView(this);
|
||||||
setWidget(graphView);
|
setWidget(graphView);
|
||||||
|
@ -191,3 +191,8 @@ bool ProcessesFilterModel::filterAcceptsRow(int row, const QModelIndex &parent)
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString ProcessesWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Processes");
|
||||||
|
}
|
||||||
|
@ -252,3 +252,8 @@ void RegisterRefsWidget::copyClip(int column)
|
|||||||
QClipboard *clipboard = QApplication::clipboard();
|
QClipboard *clipboard = QApplication::clipboard();
|
||||||
clipboard->setText(value);
|
clipboard->setText(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString RegisterRefsWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Register References");
|
||||||
|
}
|
||||||
|
@ -116,3 +116,9 @@ void RegistersWidget::openContextMenu(QPoint point, QString address)
|
|||||||
addressContextMenu.setTarget(address.toULongLong(nullptr, 16));
|
addressContextMenu.setTarget(address.toULongLong(nullptr, 16));
|
||||||
addressContextMenu.exec(point);
|
addressContextMenu.exec(point);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QString RegistersWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Registers");
|
||||||
|
}
|
||||||
|
@ -133,3 +133,8 @@ void GenericRizinGraphView::loadCurrentGraph()
|
|||||||
center();
|
center();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString GenericRizinGraphView::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Rizin Graphs");
|
||||||
|
}
|
||||||
|
@ -331,3 +331,8 @@ void SearchWidget::enableSearch()
|
|||||||
ui->searchButton->setEnabled(true);
|
ui->searchButton->setEnabled(true);
|
||||||
ui->searchButton->setText(tr("Search"));
|
ui->searchButton->setText(tr("Search"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString SearchWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Search");
|
||||||
|
}
|
||||||
|
@ -167,3 +167,8 @@ void SegmentsWidget::refreshSegments()
|
|||||||
|
|
||||||
qhelpers::adjustColumns(ui->treeView, SegmentsModel::ColumnCount, 0);
|
qhelpers::adjustColumns(ui->treeView, SegmentsModel::ColumnCount, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString SegmentsWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Segments");
|
||||||
|
}
|
||||||
|
@ -255,3 +255,8 @@ Qt::ItemFlags StackModel::flags(const QModelIndex &index) const
|
|||||||
return QAbstractTableModel::flags(index);
|
return QAbstractTableModel::flags(index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString StackWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Stack");
|
||||||
|
}
|
||||||
|
@ -273,3 +273,8 @@ void StringsWidget::on_actionCopy()
|
|||||||
QClipboard *clipboard = QApplication::clipboard();
|
QClipboard *clipboard = QApplication::clipboard();
|
||||||
clipboard->setText(index.data().toString());
|
clipboard->setText(index.data().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString StringsWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Strings");
|
||||||
|
}
|
||||||
|
@ -366,3 +366,8 @@ void TypesWidget::typeItemDoubleClicked(const QModelIndex &index)
|
|||||||
dialog.setTypeName(t.type);
|
dialog.setTypeName(t.type);
|
||||||
dialog.exec();
|
dialog.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString TypesWidget::getWindowTitle() const
|
||||||
|
{
|
||||||
|
return tr("Types");
|
||||||
|
}
|
||||||
|
@ -39,8 +39,8 @@ VisualNavbar::VisualNavbar(MainWindow *main, QWidget *parent)
|
|||||||
/*
|
/*
|
||||||
QComboBox *addsCombo = new QComboBox();
|
QComboBox *addsCombo = new QComboBox();
|
||||||
addsCombo->addItem("");
|
addsCombo->addItem("");
|
||||||
addsCombo->addItem("Entry points");
|
addsCombo->addItem(tr("Entry points"));
|
||||||
addsCombo->addItem("Marks");
|
addsCombo->addItem(tr("Marks"));
|
||||||
*/
|
*/
|
||||||
addWidget(this->graphicsView);
|
addWidget(this->graphicsView);
|
||||||
// addWidget(addsCombo);
|
// addWidget(addsCombo);
|
||||||
|
Loading…
Reference in New Issue
Block a user