Skip to content

Commit

Permalink
scripted-diff: Merge bitcoin#21836: Replace three dots with ellipsis …
Browse files Browse the repository at this point in the history
…in the UI string

-BEGIN VERIFY SCRIPT-
sed -i -E -e 's/\.\.\."\)(\.|,|\)| )/…"\)\1/' -- $(git ls-files -- 'src' ':(exclude)src/qt/dashstrings.cpp' ':(exclude)src/immer/')
sed -i -e 's/\.\.\.\\"/…\\"/' src/qt/sendcoinsdialog.cpp
sed -i -e 's|\.\.\.</string>|…</string>|' src/qt/forms/*.ui
sed -i -e 's|\.\.\.)</string>|…)</string>|' src/qt/forms/sendcoinsdialog.ui
-END VERIFY SCRIPT-
  • Loading branch information
vijaydasmp committed May 18, 2024
1 parent 0b9c0e1 commit eeec358
Show file tree
Hide file tree
Showing 25 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion src/banman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
BanMan::BanMan(fs::path ban_file, CClientUIInterface* client_interface, int64_t default_ban_time)
: m_client_interface(client_interface), m_ban_db(std::move(ban_file)), m_default_ban_time(default_ban_time)
{
if (m_client_interface) m_client_interface->InitMessage(_("Loading banlist...").translated);
if (m_client_interface) m_client_interface->InitMessage(_("Loading banlist").translated);

int64_t n_start = GetTimeMillis();
if (m_ban_db.Read(m_banned)) {
Expand Down
6 changes: 3 additions & 3 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,7 @@ bool AppInitMain(const CoreContext& context, NodeContext& node, interfaces::Bloc
};
bilingual_str strLoadError;

uiInterface.InitMessage(_("Loading block index...").translated);
uiInterface.InitMessage(_("Loading block index").translated);

do {
bool failed_verification = false;
Expand Down Expand Up @@ -2120,7 +2120,7 @@ bool AppInitMain(const CoreContext& context, NodeContext& node, interfaces::Bloc

for (CChainState* chainstate : chainman.GetAll()) {
if (!is_coinsview_empty(chainstate)) {
uiInterface.InitMessage(_("Verifying blocks...").translated);
uiInterface.InitMessage(_("Verifying blocks").translated);
if (fHavePruned && args.GetArg("-checkblocks", DEFAULT_CHECKBLOCKS) > MIN_BLOCKS_TO_KEEP) {
LogPrintf("Prune: pruned datadir may not have more than %d blocks; only checking available blocks\n",
MIN_BLOCKS_TO_KEEP);
Expand Down Expand Up @@ -2302,7 +2302,7 @@ bool AppInitMain(const CoreContext& context, NodeContext& node, interfaces::Bloc
if (!fReindex) {
LOCK(cs_main);
for (CChainState* chainstate : chainman.GetAll()) {
uiInterface.InitMessage(_("Pruning blockstore...").translated);
uiInterface.InitMessage(_("Pruning blockstore").translated);
chainstate->PruneAndFlush();
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/masternode/sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ void CMasternodeSync::SwitchToNextAsset()
std::string CMasternodeSync::GetSyncStatus() const
{
switch (nCurrentAsset) {
case MASTERNODE_SYNC_BLOCKCHAIN: return _("Synchronizing blockchain...").translated;
case MASTERNODE_SYNC_GOVERNANCE: return _("Synchronizing governance objects...").translated;
case MASTERNODE_SYNC_BLOCKCHAIN: return _("Synchronizing blockchain").translated;
case MASTERNODE_SYNC_GOVERNANCE: return _("Synchronizing governance objects").translated;
case MASTERNODE_SYNC_FINISHED: return _("Synchronization finished").translated;
default: return "";
}
Expand Down
4 changes: 2 additions & 2 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3305,7 +3305,7 @@ bool CConnman::Start(CDeterministicMNManager& dmnman, CMasternodeMetaMan& mn_met
}

if (clientInterface) {
clientInterface->InitMessage(_("Loading P2P addresses...").translated);
clientInterface->InitMessage(_("Loading P2P addresses").translated);
}
// Load addresses from peers.dat
int64_t nStart = GetTimeMillis();
Expand All @@ -3329,7 +3329,7 @@ bool CConnman::Start(CDeterministicMNManager& dmnman, CMasternodeMetaMan& mn_met
LogPrintf("%i block-relay-only anchors will be tried for connections.\n", m_anchors.size());
}

uiInterface.InitMessage(_("Starting network threads...").translated);
uiInterface.InitMessage(_("Starting network threads").translated);

fAddressesInitialized = true;

Expand Down
2 changes: 1 addition & 1 deletion src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ int GuiMain(int argc, char* argv[])
if (app.baseInitialize()) {
app.requestInitialize();
#if defined(Q_OS_WIN)
WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("%1 didn't yet exit safely...").arg(PACKAGE_NAME), (HWND)app.getMainWinId());
WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("%1 didn't yet exit safely").arg(PACKAGE_NAME), (HWND)app.getMainWinId());
#endif
app.exec();
app.requestShutdown();
Expand Down
40 changes: 20 additions & 20 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,29 +383,29 @@ void BitcoinGUI::createActions()
aboutQtAction = new QAction(tr("About &Qt"), this);
aboutQtAction->setStatusTip(tr("Show information about Qt"));
aboutQtAction->setMenuRole(QAction::AboutQtRole);
optionsAction = new QAction(tr("&Options..."), this);
optionsAction = new QAction(tr("&Options"), this);
optionsAction->setStatusTip(tr("Modify configuration options for %1").arg(PACKAGE_NAME));
optionsAction->setMenuRole(QAction::PreferencesRole);
optionsAction->setEnabled(false);
toggleHideAction = new QAction(tr("&Show / Hide"), this);
toggleHideAction->setStatusTip(tr("Show or hide the main Window"));

encryptWalletAction = new QAction(tr("&Encrypt Wallet..."), this);
encryptWalletAction = new QAction(tr("&Encrypt Wallet"), this);
encryptWalletAction->setStatusTip(tr("Encrypt the private keys that belong to your wallet"));
backupWalletAction = new QAction(tr("&Backup Wallet..."), this);
backupWalletAction = new QAction(tr("&Backup Wallet"), this);
backupWalletAction->setStatusTip(tr("Backup wallet to another location"));
changePassphraseAction = new QAction(tr("&Change Passphrase..."), this);
changePassphraseAction = new QAction(tr("&Change Passphrase"), this);
changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption"));
unlockWalletAction = new QAction(tr("&Unlock Wallet..."), this);
unlockWalletAction = new QAction(tr("&Unlock Wallet"), this);
unlockWalletAction->setToolTip(tr("Unlock wallet"));
lockWalletAction = new QAction(tr("&Lock Wallet"), this);
signMessageAction = new QAction(tr("Sign &message..."), this);
signMessageAction = new QAction(tr("Sign &message"), this);
signMessageAction->setStatusTip(tr("Sign messages with your Dash addresses to prove you own them"));
verifyMessageAction = new QAction(tr("&Verify message..."), this);
verifyMessageAction = new QAction(tr("&Verify message"), this);
verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Dash addresses"));
m_load_psbt_action = new QAction(tr("&Load PSBT from file..."), this);
m_load_psbt_action = new QAction(tr("&Load PSBT from file"), this);
m_load_psbt_action->setStatusTip(tr("Load Partially Signed Dash Transaction"));
m_load_psbt_clipboard_action = new QAction(tr("Load PSBT from clipboard..."), this);
m_load_psbt_clipboard_action = new QAction(tr("Load PSBT from clipboard"), this);
m_load_psbt_clipboard_action->setStatusTip(tr("Load Partially Signed Bitcoin Transaction from clipboard"));

openInfoAction = new QAction(tr("&Information"), this);
Expand Down Expand Up @@ -437,22 +437,22 @@ void BitcoinGUI::createActions()
usedReceivingAddressesAction = new QAction(tr("&Receiving addresses"), this);
usedReceivingAddressesAction->setStatusTip(tr("Show the list of used receiving addresses and labels"));

openAction = new QAction(tr("Open &URI..."), this);
openAction = new QAction(tr("Open &URI"), this);
openAction->setStatusTip(tr("Open a dash: URI"));

m_open_wallet_action = new QAction(tr("Open Wallet"), this);
m_open_wallet_action->setEnabled(false);
m_open_wallet_action->setStatusTip(tr("Open a wallet"));
m_open_wallet_menu = new QMenu(this);

m_close_wallet_action = new QAction(tr("Close Wallet..."), this);
m_close_wallet_action = new QAction(tr("Close Wallet"), this);
m_close_wallet_action->setStatusTip(tr("Close wallet"));

m_create_wallet_action = new QAction(tr("Create Wallet..."), this);
m_create_wallet_action = new QAction(tr("Create Wallet"), this);
m_create_wallet_action->setEnabled(false);
m_create_wallet_action->setStatusTip(tr("Create a new wallet"));

m_close_all_wallets_action = new QAction(tr("Close All Wallets..."), this);
m_close_all_wallets_action = new QAction(tr("Close All Wallets"), this);
m_close_all_wallets_action->setStatusTip(tr("Close all wallets"));

showHelpMessageAction = new QAction(tr("&Command-line options"), this);
Expand Down Expand Up @@ -1300,7 +1300,7 @@ void BitcoinGUI::updateHeadersSyncProgressLabel()
int headersTipHeight = clientModel->getHeaderTipHeight();
int estHeadersLeft = (GetTime() - headersTipTime) / Params().GetConsensus().nPowTargetSpacing;
if (estHeadersLeft > HEADER_HEIGHT_DELTA_SYNC)
progressBarLabel->setText(tr("Syncing Headers (%1%)...").arg(QString::number(100.0 / (headersTipHeight+estHeadersLeft)*headersTipHeight, 'f', 1)));
progressBarLabel->setText(tr("Syncing Headers (%1%)").arg(QString::number(100.0 / (headersTipHeight+estHeadersLeft)*headersTipHeight, 'f', 1)));
}

void BitcoinGUI::openOptionsDialogWithTab(OptionsDialog::Tab tab)
Expand Down Expand Up @@ -1421,24 +1421,24 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, const QStri
updateHeadersSyncProgressLabel();
return;
}
progressBarLabel->setText(tr("Synchronizing with network..."));
progressBarLabel->setText(tr("Synchronizing with network"));
updateHeadersSyncProgressLabel();
break;
case BlockSource::DISK:
if (header) {
progressBarLabel->setText(tr("Indexing blocks on disk..."));
progressBarLabel->setText(tr("Indexing blocks on disk"));
} else {
progressBarLabel->setText(tr("Processing blocks on disk..."));
progressBarLabel->setText(tr("Processing blocks on disk"));
}
break;
case BlockSource::REINDEX:
progressBarLabel->setText(tr("Reindexing blocks on disk..."));
progressBarLabel->setText(tr("Reindexing blocks on disk"));
break;
case BlockSource::NONE:
if (header) {
return;
}
progressBarLabel->setText(tr("Connecting to peers..."));
progressBarLabel->setText(tr("Connecting to peers"));
break;
}

Expand Down Expand Up @@ -1470,7 +1470,7 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, const QStri
progressBar->setMaximum(1000000000);
progressBar->setValue(nVerificationProgress * 1000000000.0 + 0.5);

tooltip = tr("Catching up...") + QString("<br>") + tooltip;
tooltip = tr("Catching up") + QString("<br>") + tooltip;

#ifdef ENABLE_WALLET
if(walletFrame)
Expand Down
2 changes: 1 addition & 1 deletion src/qt/forms/intro.ui
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
</size>
</property>
<property name="text">
<string notr="true">...</string>
<string notr="true"></string>
</property>
<property name="autoDefault">
<bool>false</bool>
Expand Down
8 changes: 4 additions & 4 deletions src/qt/forms/modaloverlay.ui
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
<item row="0" column="1">
<widget class="QLabel" name="numberOfBlocksLeft">
<property name="text">
<string>Unknown...</string>
<string>Unknown</string>
</property>
</widget>
</item>
Expand All @@ -211,7 +211,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Unknown...</string>
<string>Unknown</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -243,7 +243,7 @@
<item row="4" column="1">
<widget class="QLabel" name="progressIncreasePerH">
<property name="text">
<string>calculating...</string>
<string>calculating</string>
</property>
</widget>
</item>
Expand All @@ -257,7 +257,7 @@
<item row="5" column="1">
<widget class="QLabel" name="expectedTimeLeft">
<property name="text">
<string>calculating...</string>
<string>calculating</string>
</property>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/forms/psbtoperationsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<item>
<widget class="QPushButton" name="saveButton">
<property name="text">
<string>Save...</string>
<string>Save</string>
</property>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/forms/qrdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<item>
<widget class="QPushButton" name="button_saveImage">
<property name="text">
<string>&amp;Save Image...</string>
<string>&amp;Save Image</string>
</property>
<property name="autoDefault">
<bool>false</bool>
Expand Down
8 changes: 4 additions & 4 deletions src/qt/forms/receiverequestdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Request payment to ...</string>
<string>Request payment to </string>
</property>
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1">
<property name="sizeConstraint">
Expand Down Expand Up @@ -65,7 +65,7 @@
<item row="2" column="1" alignment="Qt::AlignTop">
<widget class="QLabel" name="uri_content">
<property name="text">
<string notr="true">bitcoin:BC1...</string>
<string notr="true">bitcoin:BC1</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
Expand Down Expand Up @@ -97,7 +97,7 @@
<item row="3" column="1" alignment="Qt::AlignTop">
<widget class="QLabel" name="address_content">
<property name="text">
<string notr="true">bc1...</string>
<string notr="true">bc1</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
Expand Down Expand Up @@ -257,7 +257,7 @@
<item>
<widget class="QPushButton" name="btnSaveAs">
<property name="text">
<string>&amp;Save Image...</string>
<string>&amp;Save Image</string>
</property>
<property name="autoDefault">
<bool>false</bool>
Expand Down
6 changes: 3 additions & 3 deletions src/qt/forms/sendcoinsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<string notr="true"/>
</property>
<property name="text">
<string>Inputs...</string>
<string>Inputs</string>
</property>
<property name="autoDefault">
<bool>false</bool>
Expand Down Expand Up @@ -669,7 +669,7 @@
<item>
<widget class="QPushButton" name="buttonChooseFee">
<property name="text">
<string>Choose...</string>
<string>Choose</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -939,7 +939,7 @@
<item>
<widget class="QLabel" name="labelSmartFee2">
<property name="text">
<string>(Smart fee not initialized yet. This usually takes a few blocks...)</string>
<string>(Smart fee not initialized yet. This usually takes a few blocks)</string>
</property>
</widget>
</item>
Expand Down
6 changes: 3 additions & 3 deletions src/qt/masternodelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void MasternodeList::updateDIP3ListScheduled()
// after filter was last changed unless we want to force the update.
if (fFilterUpdatedDIP3) {
int64_t nSecondsToWait = nTimeFilterUpdatedDIP3 - GetTime() + MASTERNODELIST_FILTER_COOLDOWN_SECONDS;
ui->countLabelDIP3->setText(tr("Please wait...") + " " + QString::number(nSecondsToWait));
ui->countLabelDIP3->setText(tr("Please wait") + " " + QString::number(nSecondsToWait));

if (nSecondsToWait <= 0) {
updateDIP3List();
Expand Down Expand Up @@ -192,7 +192,7 @@ void MasternodeList::updateDIP3List()
LOCK(cs_dip3list);

QString strToFilter;
ui->countLabelDIP3->setText(tr("Updating..."));
ui->countLabelDIP3->setText(tr("Updating"));
ui->tableWidgetMasternodesDIP3->setSortingEnabled(false);
ui->tableWidgetMasternodesDIP3->clearContents();
ui->tableWidgetMasternodesDIP3->setRowCount(0);
Expand Down Expand Up @@ -323,7 +323,7 @@ void MasternodeList::on_filterLineEditDIP3_textChanged(const QString& strFilterI
strCurrentFilterDIP3 = strFilterIn;
nTimeFilterUpdatedDIP3 = GetTime();
fFilterUpdatedDIP3 = true;
ui->countLabelDIP3->setText(tr("Please wait...") + " " + QString::number(MASTERNODELIST_FILTER_COOLDOWN_SECONDS));
ui->countLabelDIP3->setText(tr("Please wait") + " " + QString::number(MASTERNODELIST_FILTER_COOLDOWN_SECONDS));
}

void MasternodeList::on_checkBoxMyMasternodesOnly_stateChanged(int state)
Expand Down
4 changes: 2 additions & 2 deletions src/qt/modaloverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ void ModalOverlay::tipUpdate(int count, const QDateTime& blockDate, double nVeri
ui->numberOfBlocksLeft->setText(QString::number(bestHeaderHeight - count));
} else {
UpdateHeaderSyncLabel();
ui->expectedTimeLeft->setText(tr("Unknown..."));
ui->expectedTimeLeft->setText(tr("Unknown"));
}
}

void ModalOverlay::UpdateHeaderSyncLabel() {
int est_headers_left = bestHeaderDate.secsTo(QDateTime::currentDateTime()) / Params().GetConsensus().nPowTargetSpacing;
ui->numberOfBlocksLeft->setText(tr("Unknown. Syncing Headers (%1, %2%)...").arg(bestHeaderHeight).arg(QString::number(100.0 / (bestHeaderHeight + est_headers_left) * bestHeaderHeight, 'f', 1)));
ui->numberOfBlocksLeft->setText(tr("Unknown. Syncing Headers (%1, %2%)").arg(bestHeaderHeight).arg(QString::number(100.0 / (bestHeaderHeight + est_headers_left) * bestHeaderHeight, 'f', 1)));
}

void ModalOverlay::toggleVisibility()
Expand Down
2 changes: 1 addition & 1 deletion src/qt/qrimagewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QRImageWidget::QRImageWidget(QWidget *parent):
QLabel(parent), contextMenu(nullptr)
{
contextMenu = new QMenu(this);
QAction *saveImageAction = new QAction(tr("&Save Image..."), this);
QAction *saveImageAction = new QAction(tr("&Save Image"), this);
connect(saveImageAction, &QAction::triggered, this, &QRImageWidget::saveImage);
contextMenu->addAction(saveImageAction);
QAction *copyImageAction = new QAction(tr("&Copy Image"), this);
Expand Down
2 changes: 1 addition & 1 deletion src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ bool SendCoinsDialog::send(const QList<SendCoinsRecipient>& recipients, QString&
.arg(alternativeUnits.join(" " + tr("or") + " ")));

if (formatted.size() > 1) {
informative_text = tr("To review recipient list click \"Show Details...\"");
informative_text = tr("To review recipient list click \"Show Details\"");
detailed_text = formatted.join("\n\n");
}

Expand Down
2 changes: 1 addition & 1 deletion src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ TransactionView::TransactionView(QWidget* parent) :
dateWidget->addItem(tr("This month"), ThisMonth);
dateWidget->addItem(tr("Last month"), LastMonth);
dateWidget->addItem(tr("This year"), ThisYear);
dateWidget->addItem(tr("Range..."), Range);
dateWidget->addItem(tr("Range"), Range);
dateWidget->setCurrentIndex(settings.value("transactionDate").toInt());
hlayout->addWidget(dateWidget);

Expand Down
2 changes: 1 addition & 1 deletion src/qt/utilitydialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ ShutdownWindow::ShutdownWindow(QWidget *parent, Qt::WindowFlags f):

QVBoxLayout *layout = new QVBoxLayout();
layout->addWidget(new QLabel(
tr("%1 is shutting down...").arg(PACKAGE_NAME) + "<br /><br />" +
tr("%1 is shutting down").arg(PACKAGE_NAME) + "<br /><br />" +
tr("Do not shut down the computer until this window disappears.")));
setLayout(layout);

Expand Down

0 comments on commit eeec358

Please sign in to comment.