Skip to content

Commit

Permalink
Additionals translate strings
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek authored and XVilka committed Jan 29, 2024
1 parent e3087e7 commit 4527e95
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/CutterApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,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 @@ -41,17 +41,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 @@ -72,17 +72,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
12 changes: 6 additions & 6 deletions src/dialogs/preferences/AnalysisOptionsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
#include "core/MainWindow.h"

static const QHash<QString, QString> analysisBoundaries {
{ "io.maps.x", "All executable maps" },
{ "io.maps", "All maps" },
{ "io.map", "Current map" },
{ "raw", "Raw" },
{ "bin.section", "Current mapped section" },
{ "bin.sections", "All mapped sections" },
{ "io.maps.x", QObject::tr("All executable maps") },
{ "io.maps", QObject::tr("All maps") },
{ "io.map", QObject::tr("Current map") },
{ "raw", QObject::tr("Raw") },
{ "bin.section", QObject::tr("Current mapped section") },
{ "bin.sections", QObject::tr("All mapped sections") },
};

AnalysisOptionsWidget::AnalysisOptionsWidget(PreferencesDialog *dialog)
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
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
12 changes: 6 additions & 6 deletions src/widgets/SearchWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ static const int kMaxTooltipHexdumpBytes = 64;
}

static const QMap<QString, QString> searchBoundaries {
{ "io.maps", "All maps" },
{ "io.map", "Current map" },
{ "raw", "Raw" },
{ "block", "Current block" },
{ "bin.section", "Current mapped section" },
{ "bin.sections", "All mapped sections" },
{ "io.maps", QObject::tr("All maps") },
{ "io.map", QObject::tr("Current map") },
{ "raw", QObject::tr("Raw") },
{ "block", QObject::tr("Current block") },
{ "bin.section", QObject::tr("Current mapped section") },
{ "bin.sections", QObject::tr("All mapped sections") },
};

static const QMap<QString, QString> searchBoundariesDebug { { "dbg.maps", "All memory maps" },
Expand Down
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 4527e95

Please sign in to comment.