Updating translations and some UI stuff

This commit is contained in:
fekt
2024-04-11 20:55:22 -04:00
parent 022e322a0b
commit a3ce9a3ae8
32 changed files with 720 additions and 719 deletions

View File

@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Configure hush.conf</string>
<string>Configure dragonx.conf</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="4" column="1">
@@ -57,7 +57,7 @@
<item row="5" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Allow connections to the internet to check for updates, get hush prices etc...</string>
<string>Allow connections to the internet to check for updates, get dragonx prices etc...</string>
</property>
</widget>
</item>
@@ -143,7 +143,7 @@
<item row="2" column="1">
<widget class="QLabel" name="label">
<property name="text">
<string>Your hush node will be configured for you automatically</string>
<string>Your dragonx node will be configured for you automatically</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>

View File

@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Deposit Hush</string>
<string>Deposit DragonX</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="3">
@@ -101,7 +101,7 @@ li.checked::marker { content: &quot;\2612&quot;; }
<item row="3" column="0" colspan="4">
<widget class="QLabel" name="label_2">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; text-decoration: underline;&quot;&gt;Your Hush Address &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; text-decoration: underline;&quot;&gt;Your DragonX Address &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@@ -111,7 +111,7 @@ li.checked::marker { content: &quot;\2612&quot;; }
<item row="4" column="0" colspan="4">
<widget class="QLabel" name="zaddr">
<property name="text">
<string>Hush zaddr</string>
<string>DragonX zaddr</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@@ -131,7 +131,7 @@ li.checked::marker { content: &quot;\2612&quot;; }
<item row="1" column="0" colspan="4">
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;QR Code of your Hush Address&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;QR Code of your DragonX Address&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>

View File

@@ -27,7 +27,7 @@
<item row="0" column="1">
<widget class="QLabel" name="lblHeader">
<property name="text">
<string>Request payment from a Sapling address. You'll send a hush 0.0001 transaction to the address with a hush payment URI. The memo will be included in the transaction when the address pays you.</string>
<string>Request payment from a Sapling address. You'll send a dragonx 0.0001 transaction to the address with a dragonx payment URI. The memo will be included in the transaction when the address pays you.</string>
</property>
<property name="wordWrap">
<bool>true</bool>

View File

@@ -129,12 +129,12 @@ MainWindow::MainWindow(QWidget *parent) :
Recurring::getInstance()->showRecurringDialog(this);
});
// Request hush
// Request drgx
QObject::connect(ui->actionRequest_hush, &QAction::triggered, [=]() {
RequestDialog::showRequesthush(this);
});
// Pay hush URI
// Pay drgx URI
QObject::connect(ui->actionPay_URI, &QAction::triggered, [=] () {
payhushURI();
});
@@ -1013,7 +1013,7 @@ void MainWindow::payhushURI(QString uri, QString myAddr) {
// If there was no URI passed, ask the user for one.
if (uri.isEmpty()) {
uri = QInputDialog::getText(this, tr("Paste HUSH URI"),
uri = QInputDialog::getText(this, tr("Paste DRGX URI"),
"HUSH URI" + QString(" ").repeated(180));
}
@@ -1025,7 +1025,7 @@ void MainWindow::payhushURI(QString uri, QString myAddr) {
qDebug() << "Received URI " << uri;
PaymentURI paymentInfo = Settings::parseURI(uri);
if (!paymentInfo.error.isEmpty()) {
QMessageBox::critical(this, tr("Error paying HUSH URI"),
QMessageBox::critical(this, tr("Error paying DRGX URI"),
tr("URI should be of the form 'hush:<addr>?amt=x&memo=y") + "\n" + paymentInfo.error);
return;
}
@@ -1703,7 +1703,7 @@ if (-1 != pos)
QAction* editAction;
QAction* HushAction;
contextMenu = new QMenu(ui->listContactWidget);
HushAction = new QAction("Send or Request Hush ",contextMenu);
HushAction = new QAction("Send or Request drgx ",contextMenu);
editAction = new QAction("Delete this contact",contextMenu);
///////// Set selected Zaddr for Chat with click

View File

@@ -800,7 +800,7 @@
<item row="9" column="0">
<widget class="QPushButton" name="depositHushButton">
<property name="text">
<string>Deposit Hush</string>
<string>Deposit DragonX</string>
</property>
</widget>
</item>
@@ -1525,7 +1525,7 @@
</widget>
<widget class="QWidget" name="tab_5">
<attribute name="title">
<string>Information about Hush</string>
<string>Information about DragonX</string>
</attribute>
<widget class="FilledIconLabel" name="hushdlogo">
<property name="enabled">
@@ -1600,7 +1600,7 @@
</font>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Hush Blockchain Information&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;DragonX Blockchain Information&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
@@ -1819,7 +1819,7 @@
<item row="2" column="0">
<widget class="QLabel" name="label_19">
<property name="text">
<string>Version hushlightd</string>
<string>Version drgxlightd</string>
</property>
</widget>
</item>
@@ -1882,7 +1882,7 @@
</font>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Hush Market Information&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;DragonX Market Information&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
@@ -2050,12 +2050,12 @@
</action>
<action name="actionTelegram">
<property name="text">
<string>&amp;Hush Telegram</string>
<string>&amp;DragonX Telegram</string>
</property>
</action>
<action name="actionWebsite">
<property name="text">
<string>&amp;Hush Website</string>
<string>&amp;DragonX Website</string>
</property>
</action>
<action name="actionCheck_for_Updates">
@@ -2088,7 +2088,7 @@
</action>
<action name="actionPay_URI">
<property name="text">
<string>Pay hush &amp;URI...</string>
<string>Pay drgx &amp;URI...</string>
</property>
</action>
<action name="action_Recurring_Payments">
@@ -2098,7 +2098,7 @@
</action>
<action name="actionRequest_hush">
<property name="text">
<string>Request hush...</string>
<string>Request drgx...</string>
</property>
</action>
<action name="actionFile_a_bug">

View File

@@ -89,7 +89,7 @@
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;h1 align=&quot;center&quot; style=&quot; margin-top:18px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:xx-large; font-weight:600;&quot;&gt;Hush + HushChat Terms of Service&lt;/span&gt;&lt;/h1&gt;
&lt;h1 align=&quot;center&quot; style=&quot; margin-top:18px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:xx-large; font-weight:600;&quot;&gt;DragonX + HushChat Terms of Service&lt;/span&gt;&lt;/h1&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;All users of this platform agree to not use it for initiating or threatening any forceful interference or violence on an individual or their property, aka, the &lt;a href=&quot;https://en.wikipedia.org/wiki/Non-aggression_principle&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Non-Aggression Principle&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;THE SERVICE IS PROVIDED “AS IS” AND The Hush Developers DO NOT MAKE ANY SPECIFIC COMMITMENTS OR WARRANTIES ABOUT THE SERVICE.&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

View File

@@ -550,7 +550,7 @@ void Recurring::executeRecurringPayment(MainWindow* main, RecurringPaymentInfo r
if (Settings::getInstance()->getDRAGONXPrice() == 0) {
for (auto paymentNumber: paymentNumbers) {
updatePaymentItem(rpi.getHash(), paymentNumber,
"", QObject::tr("No hush price was available to convert from USD"),
"", QObject::tr("No dragonx price was available to convert from USD"),
PaymentStatus::ERROR);
}
return;

View File

@@ -49,7 +49,7 @@ void RequestDialog::setupDialog(MainWindow* main, QDialog* d, Ui_RequestDialog*
void RequestDialog::showPaymentConfirmation(MainWindow* main, QString paymentURI) {
PaymentURI payInfo = Settings::parseURI(paymentURI);
if (!payInfo.error.isEmpty()) {
QMessageBox::critical(main, tr("Error paying hush URI"),
QMessageBox::critical(main, tr("Error paying DRGX URI"),
tr("URI should be of the form 'hush:<addr>?amt=x&memo=y") + "\n" + payInfo.error);
return;
}

View File

@@ -159,7 +159,7 @@
<item row="0" column="2" colspan="2">
<widget class="QLabel" name="lblHeader">
<property name="text">
<string>Request payment from a Sapling address. You'll send a hush 0.0001 transaction to the address with a hush payment URI. The memo will be included in the transaction when the address pays you.</string>
<string>Request payment from a Sapling address. You'll send a dragonx 0.0001 transaction to the address with a dragonx payment URI. The memo will be included in the transaction when the address pays you.</string>
</property>
<property name="wordWrap">
<bool>true</bool>

View File

@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Send or Request Hush</string>
<string>Send or Request DRGX</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
@@ -204,7 +204,7 @@
<item>
<widget class="QPushButton" name="requestHush">
<property name="text">
<string>Request Hush</string>
<string>Request DRGX</string>
</property>
</widget>
</item>

View File

@@ -163,7 +163,7 @@
</rect>
</property>
<property name="text">
<string>Fetch hush prices</string>
<string>Fetch dragonx prices</string>
</property>
</widget>
<widget class="QCheckBox" name="chkCheckUpdates">
@@ -259,7 +259,7 @@
</rect>
</property>
<property name="text">
<string>Connect to the internet to fetch hush prices</string>
<string>Connect to the internet to Fetch dragonx prices</string>
</property>
</widget>
<widget class="QLabel" name="label_21">