mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Fix broken English in UI (#3184)
This commit is contained in:
parent
a6a7667852
commit
3ccccae291
@ -143,8 +143,8 @@ Configuration::Configuration() : QObject(), nativePalette(qApp->palette())
|
|||||||
mPtr = this;
|
mPtr = this;
|
||||||
if (!s.isWritable()) {
|
if (!s.isWritable()) {
|
||||||
QMessageBox::critical(
|
QMessageBox::critical(
|
||||||
nullptr, tr("Critical!"),
|
nullptr, tr("Critical Error!"),
|
||||||
tr("!!! Settings are not writable! Make sure you have a write access to \"%1\"")
|
tr("Settings are not writable! Make sure you have a write access to \"%1\".")
|
||||||
.arg(s.fileName()));
|
.arg(s.fileName()));
|
||||||
}
|
}
|
||||||
#ifdef CUTTER_ENABLE_KSYNTAXHIGHLIGHTING
|
#ifdef CUTTER_ENABLE_KSYNTAXHIGHLIGHTING
|
||||||
|
@ -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
|
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
|
* 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
|
* on *and* the former is a valid offset, we are allowed to get a preview of offsetTo
|
||||||
|
@ -323,7 +323,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Auto Exp</string>
|
<string>Experimental</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignCenter</set>
|
<set>Qt::AlignCenter</set>
|
||||||
|
@ -287,7 +287,7 @@ void NewFileDialog::fillIOPluginsList()
|
|||||||
{
|
{
|
||||||
ui->ioPlugin->clear();
|
ui->ioPlugin->clear();
|
||||||
ui->ioPlugin->addItem("file://");
|
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;
|
int index = 1;
|
||||||
QList<RzIOPluginDescription> ioPlugins = Core()->getRIOPluginDescriptions();
|
QList<RzIOPluginDescription> ioPlugins = Core()->getRIOPluginDescriptions();
|
||||||
|
@ -142,7 +142,7 @@
|
|||||||
<item row="17" column="1">
|
<item row="17" column="1">
|
||||||
<widget class="QLabel" name="asmTabsOffLabel">
|
<widget class="QLabel" name="asmTabsOffLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Tabs before assembly (asm.tabs.off):</string>
|
<string>The number of tabulate spaces after the offset (asm.tabs.off):</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="textInteractionFlags">
|
<property name="textInteractionFlags">
|
||||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||||
@ -479,7 +479,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="varsubCheckBox">
|
<widget class="QCheckBox" name="varsubCheckBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Substitute variables (asm.sub.var)</string>
|
<string>Substitute variables in disassembly (asm.sub.var)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -168,7 +168,7 @@ QWidget *DisassemblyContextMenu::parentForDialog()
|
|||||||
|
|
||||||
void DisassemblyContextMenu::addSetBaseMenu()
|
void DisassemblyContextMenu::addSetBaseMenu()
|
||||||
{
|
{
|
||||||
setBaseMenu = addMenu(tr("Set Immediate Base to..."));
|
setBaseMenu = addMenu(tr("Set base of immediate value to.."));
|
||||||
|
|
||||||
initAction(&actionSetBaseBinary, tr("Binary"));
|
initAction(&actionSetBaseBinary, tr("Binary"));
|
||||||
setBaseMenu->addAction(&actionSetBaseBinary);
|
setBaseMenu->addAction(&actionSetBaseBinary);
|
||||||
|
@ -400,8 +400,7 @@ const QMap<QString, OptionInfo> optionInfoMap__ = {
|
|||||||
{ "fname", { QObject::tr("Color of names of functions"), QObject::tr("Function name") } },
|
{ "fname", { QObject::tr("Color of names of functions"), QObject::tr("Function name") } },
|
||||||
{ "floc", { QObject::tr("Color of function location"), QObject::tr("Function location") } },
|
{ "floc", { QObject::tr("Color of function location"), QObject::tr("Function location") } },
|
||||||
{ "fline",
|
{ "fline",
|
||||||
{ QObject::tr(
|
{ QObject::tr("Color of the line which shows which opcodes belongs to a function"),
|
||||||
"Color of ascii line in left side that shows what opcodes are belong to function"),
|
|
||||||
QObject::tr("Function line") } },
|
QObject::tr("Function line") } },
|
||||||
{ "flag",
|
{ "flag",
|
||||||
{ QObject::tr("Color of flags (similar to bookmarks for offset)"), QObject::tr("Flag") } },
|
{ QObject::tr("Color of flags (similar to bookmarks for offset)"), QObject::tr("Flag") } },
|
||||||
|
@ -160,7 +160,7 @@ HexWidget::HexWidget(QWidget *parent)
|
|||||||
connect(actionWriteCString, &QAction::triggered, this, &HexWidget::w_writeCString);
|
connect(actionWriteCString, &QAction::triggered, this, &HexWidget::w_writeCString);
|
||||||
actionsWriteString.append(actionWriteCString);
|
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);
|
connect(actionWrite64, &QAction::triggered, this, &HexWidget::w_write64);
|
||||||
actionsWriteString.append(actionWrite64);
|
actionsWriteString.append(actionWrite64);
|
||||||
|
|
||||||
@ -1407,7 +1407,7 @@ void HexWidget::w_writeRandom()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool ok = false;
|
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);
|
0x7FFFFFFF, 1, &ok);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user