From 9cbacff32994bc9dc0ad37267313ce5048400f77 Mon Sep 17 00:00:00 2001
From: Giovanni <561184+wargio@users.noreply.github.com>
Date: Sat, 13 May 2023 10:22:05 +0800
Subject: [PATCH] Fix broken English in UI (#3184)
---
src/common/Configuration.cpp | 4 ++--
src/common/DisassemblyPreview.cpp | 7 -------
src/dialogs/InitialOptionsDialog.ui | 2 +-
src/dialogs/NewFileDialog.cpp | 2 +-
src/dialogs/preferences/AsmOptionsWidget.ui | 4 ++--
src/menus/DisassemblyContextMenu.cpp | 2 +-
src/widgets/ColorThemeListView.cpp | 3 +--
src/widgets/HexWidget.cpp | 4 ++--
8 files changed, 10 insertions(+), 18 deletions(-)
diff --git a/src/common/Configuration.cpp b/src/common/Configuration.cpp
index 7fc76715..12af053f 100644
--- a/src/common/Configuration.cpp
+++ b/src/common/Configuration.cpp
@@ -143,8 +143,8 @@ Configuration::Configuration() : QObject(), nativePalette(qApp->palette())
mPtr = this;
if (!s.isWritable()) {
QMessageBox::critical(
- nullptr, tr("Critical!"),
- tr("!!! Settings are not writable! Make sure you have a write access to \"%1\"")
+ nullptr, tr("Critical Error!"),
+ tr("Settings are not writable! Make sure you have a write access to \"%1\".")
.arg(s.fileName()));
}
#ifdef CUTTER_ENABLE_KSYNTAXHIGHLIGHTING
diff --git a/src/common/DisassemblyPreview.cpp b/src/common/DisassemblyPreview.cpp
index e80e6eaa..4861c769 100644
--- a/src/common/DisassemblyPreview.cpp
+++ b/src/common/DisassemblyPreview.cpp
@@ -44,13 +44,6 @@ bool DisassemblyPreview::showDisasPreview(QWidget *parent, const QPoint &pointOf
}
RVA offsetTo = refs.at(0).to; // This is the offset we want to preview
-
- if (Q_UNLIKELY(offsetFrom != refs.at(0).from)) {
- qWarning() << QObject::tr("offsetFrom (%1) differs from refs.at(0).from (%(2))")
- .arg(offsetFrom)
- .arg(refs.at(0).from);
- }
-
/*
* Only if the offset we point *to* is different from the one the cursor is currently
* on *and* the former is a valid offset, we are allowed to get a preview of offsetTo
diff --git a/src/dialogs/InitialOptionsDialog.ui b/src/dialogs/InitialOptionsDialog.ui
index e3db9f83..38316893 100644
--- a/src/dialogs/InitialOptionsDialog.ui
+++ b/src/dialogs/InitialOptionsDialog.ui
@@ -323,7 +323,7 @@
- Auto Exp
+ Experimental
Qt::AlignCenter
diff --git a/src/dialogs/NewFileDialog.cpp b/src/dialogs/NewFileDialog.cpp
index cde5fc85..58d0d391 100644
--- a/src/dialogs/NewFileDialog.cpp
+++ b/src/dialogs/NewFileDialog.cpp
@@ -287,7 +287,7 @@ void NewFileDialog::fillIOPluginsList()
{
ui->ioPlugin->clear();
ui->ioPlugin->addItem("file://");
- ui->ioPlugin->setItemData(0, tr("Open a file with no extra treatment."), Qt::ToolTipRole);
+ ui->ioPlugin->setItemData(0, tr("Open a file without additional options/settings."), Qt::ToolTipRole);
int index = 1;
QList ioPlugins = Core()->getRIOPluginDescriptions();
diff --git a/src/dialogs/preferences/AsmOptionsWidget.ui b/src/dialogs/preferences/AsmOptionsWidget.ui
index e96421a4..f3f14952 100644
--- a/src/dialogs/preferences/AsmOptionsWidget.ui
+++ b/src/dialogs/preferences/AsmOptionsWidget.ui
@@ -142,7 +142,7 @@
-
- Tabs before assembly (asm.tabs.off):
+ The number of tabulate spaces after the offset (asm.tabs.off):
Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse
@@ -479,7 +479,7 @@
-
- Substitute variables (asm.sub.var)
+ Substitute variables in disassembly (asm.sub.var)
diff --git a/src/menus/DisassemblyContextMenu.cpp b/src/menus/DisassemblyContextMenu.cpp
index ab54328d..c3ce0b6c 100644
--- a/src/menus/DisassemblyContextMenu.cpp
+++ b/src/menus/DisassemblyContextMenu.cpp
@@ -163,7 +163,7 @@ DisassemblyContextMenu::~DisassemblyContextMenu() {}
void DisassemblyContextMenu::addSetBaseMenu()
{
- setBaseMenu = addMenu(tr("Set Immediate Base to..."));
+ setBaseMenu = addMenu(tr("Set base of immediate value to.."));
initAction(&actionSetBaseBinary, tr("Binary"));
setBaseMenu->addAction(&actionSetBaseBinary);
diff --git a/src/widgets/ColorThemeListView.cpp b/src/widgets/ColorThemeListView.cpp
index 4f56ba17..84df6d67 100644
--- a/src/widgets/ColorThemeListView.cpp
+++ b/src/widgets/ColorThemeListView.cpp
@@ -400,8 +400,7 @@ const QMap optionInfoMap__ = {
{ "fname", { QObject::tr("Color of names of functions"), QObject::tr("Function name") } },
{ "floc", { QObject::tr("Color of function location"), QObject::tr("Function location") } },
{ "fline",
- { QObject::tr(
- "Color of ascii line in left side that shows what opcodes are belong to function"),
+ { QObject::tr("Color of the line which shows which opcodes belongs to a function"),
QObject::tr("Function line") } },
{ "flag",
{ QObject::tr("Color of flags (similar to bookmarks for offset)"), QObject::tr("Flag") } },
diff --git a/src/widgets/HexWidget.cpp b/src/widgets/HexWidget.cpp
index d933b944..c9d09a71 100644
--- a/src/widgets/HexWidget.cpp
+++ b/src/widgets/HexWidget.cpp
@@ -160,7 +160,7 @@ HexWidget::HexWidget(QWidget *parent)
connect(actionWriteCString, &QAction::triggered, this, &HexWidget::w_writeCString);
actionsWriteString.append(actionWriteCString);
- QAction *actionWrite64 = new QAction(tr("Write De\\Encoded Base64 string"), this);
+ QAction *actionWrite64 = new QAction(tr("Write a decoded or encoded Base64 string"), this);
connect(actionWrite64, &QAction::triggered, this, &HexWidget::w_write64);
actionsWriteString.append(actionWrite64);
@@ -1407,7 +1407,7 @@ void HexWidget::w_writeRandom()
}
bool ok = false;
- int nbytes = QInputDialog::getInt(this, tr("Write random"), tr("Number of bytes:"), size, 1,
+ int nbytes = QInputDialog::getInt(this, tr("Write random bytes"), tr("Number of bytes:"), size, 1,
0x7FFFFFFF, 1, &ok);
if (!ok) {
return;