Browse Source

Rename Country column to "Country / Region"

Not all flags displayed strictly belong to countries.
adaptive-webui-19844
Thomas Piccirello 5 years ago
parent
commit
33a3624652
  1. 2
      src/gui/properties/peerlistwidget.cpp
  2. 2
      src/webui/www/private/scripts/dynamicTable.js

2
src/gui/properties/peerlistwidget.cpp

@ -72,7 +72,7 @@ PeerListWidget::PeerListWidget(PropertiesWidget *parent) @@ -72,7 +72,7 @@ PeerListWidget::PeerListWidget(PropertiesWidget *parent)
header()->setStretchLastSection(false);
// List Model
m_listModel = new QStandardItemModel(0, PeerListDelegate::COL_COUNT, this);
m_listModel->setHeaderData(PeerListDelegate::COUNTRY, Qt::Horizontal, tr("Country")); // Country flag column
m_listModel->setHeaderData(PeerListDelegate::COUNTRY, Qt::Horizontal, tr("Country/Region")); // Country flag column
m_listModel->setHeaderData(PeerListDelegate::IP, Qt::Horizontal, tr("IP"));
m_listModel->setHeaderData(PeerListDelegate::PORT, Qt::Horizontal, tr("Port"));
m_listModel->setHeaderData(PeerListDelegate::FLAGS, Qt::Horizontal, tr("Flags"));

2
src/webui/www/private/scripts/dynamicTable.js

@ -1360,7 +1360,7 @@ window.qBittorrent.DynamicTable = (function() { @@ -1360,7 +1360,7 @@ window.qBittorrent.DynamicTable = (function() {
Extends: DynamicTable,
initColumns: function() {
this.newColumn('country', '', 'QBT_TR(Country)QBT_TR[CONTEXT=PeerListWidget]', 22, true);
this.newColumn('country', '', 'QBT_TR(Country/Region)QBT_TR[CONTEXT=PeerListWidget]', 22, true);
this.newColumn('ip', '', 'QBT_TR(IP)QBT_TR[CONTEXT=PeerListWidget]', 80, true);
this.newColumn('port', '', 'QBT_TR(Port)QBT_TR[CONTEXT=PeerListWidget]', 35, true);
this.newColumn('connection', '', 'QBT_TR(Connection)QBT_TR[CONTEXT=PeerListWidget]', 50, true);

Loading…
Cancel
Save