Browse Source

Merge pull request #11278 from Piccirello/country_region

Rename Country column to "Country / Region"
adaptive-webui-19844
sledgehammer999 5 years ago committed by GitHub
parent
commit
f672df1cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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