Fix bug connect wired network successfully but notify failed

This commit is contained in:
chenlelin 2021-01-08 21:19:42 +08:00
parent 48ae8dd8cd
commit b5b1305c3e
8 changed files with 248 additions and 191 deletions

View File

@ -214,21 +214,29 @@ void BackThread::execConnLan(QString connName, QString ifname)
QString tmpPath = "/tmp/kylin-nm-connprop-" + QDir::home().dirName();
QString cmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';nmcli connection up '" + connName + "' ifname '" + ifname + "' > " + tmpPath;
Utils::m_system(cmd.toUtf8().data());
QFile file(tmpPath);
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
syslog(LOG_ERR, "Can't open the file /tmp/kylin-nm-lanprop!");
qDebug()<<"Can't open the file /tmp/kylin-nm-lanprop!"<<endl;
}
QString txt = file.readAll();
file.close();
qDebug() << txt;
if (txt.indexOf("successfully") != -1) {
qDebug()<<"debug: in function execConnLan, wired net state is: "<<QString::number(execGetIface()->lstate);
syslog(LOG_DEBUG, "In function execConnLan, wired net state is: %d", execGetIface()->lstate);
emit connDone(0);
} else {
emit connDone(2);
QString cmd = "nmcli connection down '" + connName + "'";
Utils::m_system(cmd.toUtf8().data());
if (txt.indexOf("IP configuration could not be reserved") != -1) {
emit connDone(5);
} else if(txt.indexOf("MACs") != -1 || txt.indexOf("Mac") != -1 || txt.indexOf("MAC") != -1) {
emit connDone(2);
} else {
emit connDone(4);
}
}
} else {
qDebug()<<"connect wired network failed for without wired cable plug in.";

View File

@ -65,6 +65,7 @@ public slots:
void on_readoutput();
void on_readerror();
signals:
void enNetDone();
void disNetDone();

View File

@ -1430,8 +1430,8 @@ void MainWindow::getLanListDone(QStringList slist)
macInterface = objKyDBus->getLanMAC(objKyDBus->dbusIfName); //有限网卡对应的mac地址
if (macLan!="" && macLan!="--" && macLan != macInterface) {
continue; //有线网的permenant mac地址与网卡的地址不同则不在列表中显示
//macInterface = macLan;
//continue; //有线网的permenant mac地址与网卡的地址不同则不在列表中显示
macInterface = macLan;
}
} else {
mIfName = objKyDBus->multiWiredIfName.at(0); //使用默认的网络接口
@ -2700,7 +2700,8 @@ void MainWindow::connLanDone(int connFlag)
}
if (connFlag == 1) {
qDebug()<<"without net line connect to computer";
//qDebug()<<"without net line connect to computer";
syslog(LOG_DEBUG, "without net line connect to computer.");
this->is_wired_line_ready = 0; //without net line connect to computer
is_stop_check_net_state = 0;
@ -2709,7 +2710,8 @@ void MainWindow::connLanDone(int connFlag)
}
if (connFlag == 2) {
qDebug()<<"The MACs of the device and the connection do not match.";
//qDebug()<<"The MACs of the device and the connection do not match.";
syslog(LOG_DEBUG, "The MACs of the device and the connection do not match.");
is_stop_check_net_state = 0;
QString txt(tr("MAC Address Mismatch"));
@ -2721,6 +2723,22 @@ void MainWindow::connLanDone(int connFlag)
this->is_wired_line_ready = 1;
}
if (connFlag == 4) {
syslog(LOG_DEBUG, "Connect Wired Network Failed");
this->is_wired_line_ready = 1;
QString txt(tr("Connect Wired Network Failed"));
objKyDBus->showDesktopNotify(txt);
}
if (connFlag == 5) {
syslog(LOG_DEBUG, "IP configuration could not be reserved");
this->is_wired_line_ready = 1;
QString txt(tr("IP configuration could not be reserved"));
objKyDBus->showDesktopNotify(txt);
}
this->stopLoading();
}

View File

@ -30,7 +30,7 @@
#include "ksimplenm.h"
#define FRAME_SPEED 150
#define LIMIT_TIME 20*1000
#define LIMIT_TIME 30*1000
#define TOTAL_PAGE 8
#define W_ITEM 424

View File

@ -1219,20 +1219,20 @@
<name>MainWindow</name>
<message>
<location filename="../src/mainwindow.ui" line="14"/>
<location filename="../src/mainwindow.cpp" line="579"/>
<location filename="../src/mainwindow.cpp" line="564"/>
<source>kylin-nm</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="391"/>
<location filename="../src/mainwindow.cpp" line="584"/>
<location filename="../src/mainwindow.cpp" line="569"/>
<source>Advanced</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="338"/>
<location filename="../src/mainwindow.cpp" line="1220"/>
<location filename="../src/mainwindow.cpp" line="2437"/>
<location filename="../src/mainwindow.cpp" line="1205"/>
<location filename="../src/mainwindow.cpp" line="2422"/>
<source>Ethernet</source>
<translation type="unfinished"></translation>
</message>
@ -1248,7 +1248,7 @@
</message>
<message>
<location filename="../src/mainwindow.cpp" line="352"/>
<location filename="../src/mainwindow.cpp" line="1271"/>
<location filename="../src/mainwindow.cpp" line="1256"/>
<source>Wifi</source>
<translation type="unfinished"></translation>
</message>
@ -1263,31 +1263,31 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1193"/>
<location filename="../src/mainwindow.cpp" line="1178"/>
<source>No wireless card detected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1299"/>
<location filename="../src/mainwindow.cpp" line="1325"/>
<location filename="../src/mainwindow.cpp" line="1390"/>
<location filename="../src/mainwindow.cpp" line="1624"/>
<location filename="../src/mainwindow.cpp" line="2451"/>
<location filename="../src/mainwindow.cpp" line="2524"/>
<location filename="../src/mainwindow.cpp" line="1284"/>
<location filename="../src/mainwindow.cpp" line="1310"/>
<location filename="../src/mainwindow.cpp" line="1375"/>
<location filename="../src/mainwindow.cpp" line="1609"/>
<location filename="../src/mainwindow.cpp" line="2436"/>
<location filename="../src/mainwindow.cpp" line="2509"/>
<source>Not connected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1303"/>
<location filename="../src/mainwindow.cpp" line="1328"/>
<location filename="../src/mainwindow.cpp" line="1392"/>
<location filename="../src/mainwindow.cpp" line="1534"/>
<location filename="../src/mainwindow.cpp" line="1535"/>
<location filename="../src/mainwindow.cpp" line="1627"/>
<location filename="../src/mainwindow.cpp" line="1739"/>
<location filename="../src/mainwindow.cpp" line="1912"/>
<location filename="../src/mainwindow.cpp" line="2453"/>
<location filename="../src/mainwindow.cpp" line="2526"/>
<location filename="../src/mainwindow.cpp" line="1288"/>
<location filename="../src/mainwindow.cpp" line="1313"/>
<location filename="../src/mainwindow.cpp" line="1377"/>
<location filename="../src/mainwindow.cpp" line="1519"/>
<location filename="../src/mainwindow.cpp" line="1520"/>
<location filename="../src/mainwindow.cpp" line="1612"/>
<location filename="../src/mainwindow.cpp" line="1724"/>
<location filename="../src/mainwindow.cpp" line="1897"/>
<location filename="../src/mainwindow.cpp" line="2438"/>
<location filename="../src/mainwindow.cpp" line="2511"/>
<source>Disconnected</source>
<translation type="unfinished"></translation>
</message>
@ -1307,84 +1307,94 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="583"/>
<location filename="../src/mainwindow.cpp" line="568"/>
<source>Show MainWindow</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1492"/>
<location filename="../src/mainwindow.cpp" line="1477"/>
<source>NetOn,IfName:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1558"/>
<location filename="../src/mainwindow.cpp" line="1543"/>
<source>No Other Wired Network Scheme</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1761"/>
<location filename="../src/mainwindow.cpp" line="1746"/>
<source>No Other Wireless Network Scheme</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1935"/>
<location filename="../src/mainwindow.cpp" line="1939"/>
<location filename="../src/mainwindow.cpp" line="1944"/>
<location filename="../src/mainwindow.cpp" line="1948"/>
<location filename="../src/mainwindow.cpp" line="1920"/>
<location filename="../src/mainwindow.cpp" line="1924"/>
<location filename="../src/mainwindow.cpp" line="1929"/>
<location filename="../src/mainwindow.cpp" line="1933"/>
<source>Wired connection</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1953"/>
<location filename="../src/mainwindow.cpp" line="1957"/>
<location filename="../src/mainwindow.cpp" line="1962"/>
<location filename="../src/mainwindow.cpp" line="1966"/>
<location filename="../src/mainwindow.cpp" line="1938"/>
<location filename="../src/mainwindow.cpp" line="1942"/>
<location filename="../src/mainwindow.cpp" line="1947"/>
<location filename="../src/mainwindow.cpp" line="1951"/>
<source>Ethernet connection</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2722"/>
<location filename="../src/mainwindow.cpp" line="2708"/>
<source>Without Lan Cable</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2730"/>
<location filename="../src/mainwindow.cpp" line="2717"/>
<source>MAC Address Mismatch</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2756"/>
<location filename="../src/mainwindow.cpp" line="2730"/>
<source>Connect Wired Network Failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2738"/>
<source>IP configuration could not be reserved</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2759"/>
<source>Confirm your Wi-Fi password or usable of wireless card</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2761"/>
<location filename="../src/mainwindow.cpp" line="2764"/>
<source>Confirm your Wi-Fi password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1486"/>
<location filename="../src/mainwindow.cpp" line="1717"/>
<location filename="../src/mainwindow.cpp" line="1471"/>
<location filename="../src/mainwindow.cpp" line="1702"/>
<source>NetOn,</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2374"/>
<location filename="../src/mainwindow.cpp" line="2359"/>
<source>Wired net is disconnected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2400"/>
<location filename="../src/mainwindow.cpp" line="2385"/>
<source>Wi-Fi is disconnected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2713"/>
<location filename="../src/mainwindow.cpp" line="2698"/>
<source>Conn Ethernet Success</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2750"/>
<location filename="../src/mainwindow.cpp" line="2753"/>
<source>Conn Wifi Success</source>
<translation type="unfinished"></translation>
</message>
@ -1410,42 +1420,42 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="368"/>
<location filename="../src/oneconnform.cpp" line="371"/>
<source>Connect to Hidden Wi-Fi Network</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="379"/>
<location filename="../src/oneconnform.cpp" line="382"/>
<source>Rate</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="458"/>
<location filename="../src/oneconnform.cpp" line="461"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="460"/>
<location filename="../src/oneconnform.cpp" line="463"/>
<source>WiFi Security</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="461"/>
<location filename="../src/oneconnform.cpp" line="464"/>
<source>Signal</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="462"/>
<location filename="../src/oneconnform.cpp" line="465"/>
<source>MAC</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="538"/>
<location filename="../src/oneconnform.cpp" line="541"/>
<source>Conn Wifi Success</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="543"/>
<location filename="../src/oneconnform.cpp" line="546"/>
<source>Confirm your Wi-Fi password or usable of wireless card</source>
<translation type="unfinished"></translation>
</message>
@ -1469,35 +1479,35 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="239"/>
<location filename="../src/onelancform.cpp" line="243"/>
<location filename="../src/onelancform.cpp" line="244"/>
<location filename="../src/onelancform.cpp" line="248"/>
<location filename="../src/onelancform.cpp" line="242"/>
<location filename="../src/onelancform.cpp" line="246"/>
<location filename="../src/onelancform.cpp" line="247"/>
<location filename="../src/onelancform.cpp" line="251"/>
<source>No Configuration</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="249"/>
<location filename="../src/onelancform.cpp" line="252"/>
<source>No IfName</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="252"/>
<location filename="../src/onelancform.cpp" line="255"/>
<source>IPv4</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="253"/>
<location filename="../src/onelancform.cpp" line="256"/>
<source>IPv6</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="255"/>
<location filename="../src/onelancform.cpp" line="258"/>
<source>MAC</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="254"/>
<location filename="../src/onelancform.cpp" line="257"/>
<source>BandWidth</source>
<translation type="unfinished"></translation>
</message>

View File

@ -1377,7 +1377,7 @@
<name>MainWindow</name>
<message>
<location filename="../src/mainwindow.ui" line="14"/>
<location filename="../src/mainwindow.cpp" line="579"/>
<location filename="../src/mainwindow.cpp" line="564"/>
<source>kylin-nm</source>
<translation></translation>
</message>
@ -1387,14 +1387,14 @@
</message>
<message>
<location filename="../src/mainwindow.cpp" line="391"/>
<location filename="../src/mainwindow.cpp" line="584"/>
<location filename="../src/mainwindow.cpp" line="569"/>
<source>Advanced</source>
<translation>Gelişmiş</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="338"/>
<location filename="../src/mainwindow.cpp" line="1220"/>
<location filename="../src/mainwindow.cpp" line="2437"/>
<location filename="../src/mainwindow.cpp" line="1205"/>
<location filename="../src/mainwindow.cpp" line="2422"/>
<source>Ethernet</source>
<translation>Kablolu </translation>
</message>
@ -1404,7 +1404,7 @@
</message>
<message>
<location filename="../src/mainwindow.cpp" line="352"/>
<location filename="../src/mainwindow.cpp" line="1271"/>
<location filename="../src/mainwindow.cpp" line="1256"/>
<source>Wifi</source>
<translation>Wi-Fi</translation>
</message>
@ -1427,97 +1427,107 @@
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="583"/>
<location filename="../src/mainwindow.cpp" line="568"/>
<source>Show MainWindow</source>
<translation>Ana Pencereyi Göster</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1193"/>
<location filename="../src/mainwindow.cpp" line="1178"/>
<source>No wireless card detected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1299"/>
<location filename="../src/mainwindow.cpp" line="1325"/>
<location filename="../src/mainwindow.cpp" line="1390"/>
<location filename="../src/mainwindow.cpp" line="1624"/>
<location filename="../src/mainwindow.cpp" line="2451"/>
<location filename="../src/mainwindow.cpp" line="2524"/>
<location filename="../src/mainwindow.cpp" line="1284"/>
<location filename="../src/mainwindow.cpp" line="1310"/>
<location filename="../src/mainwindow.cpp" line="1375"/>
<location filename="../src/mainwindow.cpp" line="1609"/>
<location filename="../src/mainwindow.cpp" line="2436"/>
<location filename="../src/mainwindow.cpp" line="2509"/>
<source>Not connected</source>
<translation>Bağlanamadı</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1303"/>
<location filename="../src/mainwindow.cpp" line="1328"/>
<location filename="../src/mainwindow.cpp" line="1392"/>
<location filename="../src/mainwindow.cpp" line="1534"/>
<location filename="../src/mainwindow.cpp" line="1535"/>
<location filename="../src/mainwindow.cpp" line="1627"/>
<location filename="../src/mainwindow.cpp" line="1739"/>
<location filename="../src/mainwindow.cpp" line="1912"/>
<location filename="../src/mainwindow.cpp" line="2453"/>
<location filename="../src/mainwindow.cpp" line="2526"/>
<location filename="../src/mainwindow.cpp" line="1288"/>
<location filename="../src/mainwindow.cpp" line="1313"/>
<location filename="../src/mainwindow.cpp" line="1377"/>
<location filename="../src/mainwindow.cpp" line="1519"/>
<location filename="../src/mainwindow.cpp" line="1520"/>
<location filename="../src/mainwindow.cpp" line="1612"/>
<location filename="../src/mainwindow.cpp" line="1724"/>
<location filename="../src/mainwindow.cpp" line="1897"/>
<location filename="../src/mainwindow.cpp" line="2438"/>
<location filename="../src/mainwindow.cpp" line="2511"/>
<source>Disconnected</source>
<translation>Bağlantı Kesildi</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1492"/>
<location filename="../src/mainwindow.cpp" line="1477"/>
<source>NetOn,IfName:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1558"/>
<location filename="../src/mainwindow.cpp" line="1543"/>
<source>No Other Wired Network Scheme</source>
<translation type="unfinished">Başka Kablolu Düzeni Yok</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1761"/>
<location filename="../src/mainwindow.cpp" line="1746"/>
<source>No Other Wireless Network Scheme</source>
<translation type="unfinished">Başka Kablosuz Düzeni Yok</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1935"/>
<location filename="../src/mainwindow.cpp" line="1939"/>
<location filename="../src/mainwindow.cpp" line="1944"/>
<location filename="../src/mainwindow.cpp" line="1948"/>
<location filename="../src/mainwindow.cpp" line="1920"/>
<location filename="../src/mainwindow.cpp" line="1924"/>
<location filename="../src/mainwindow.cpp" line="1929"/>
<location filename="../src/mainwindow.cpp" line="1933"/>
<source>Wired connection</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1953"/>
<location filename="../src/mainwindow.cpp" line="1957"/>
<location filename="../src/mainwindow.cpp" line="1962"/>
<location filename="../src/mainwindow.cpp" line="1966"/>
<location filename="../src/mainwindow.cpp" line="1938"/>
<location filename="../src/mainwindow.cpp" line="1942"/>
<location filename="../src/mainwindow.cpp" line="1947"/>
<location filename="../src/mainwindow.cpp" line="1951"/>
<source>Ethernet connection</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2374"/>
<location filename="../src/mainwindow.cpp" line="2359"/>
<source>Wired net is disconnected</source>
<translation type="unfinished">Kablolu bağlantısı kesildi</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2400"/>
<location filename="../src/mainwindow.cpp" line="2385"/>
<source>Wi-Fi is disconnected</source>
<translation type="unfinished">Kablosuz bağlantı kesildi</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2722"/>
<location filename="../src/mainwindow.cpp" line="2708"/>
<source>Without Lan Cable</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2730"/>
<location filename="../src/mainwindow.cpp" line="2717"/>
<source>MAC Address Mismatch</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2756"/>
<location filename="../src/mainwindow.cpp" line="2730"/>
<source>Connect Wired Network Failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2738"/>
<source>IP configuration could not be reserved</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2759"/>
<source>Confirm your Wi-Fi password or usable of wireless card</source>
<translation type="unfinished">Kablosuz şifrenizi veya kablosuz kart kullanılabilirliğini onaylayın</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2761"/>
<location filename="../src/mainwindow.cpp" line="2764"/>
<source>Confirm your Wi-Fi password</source>
<translation type="unfinished">Wi-Fi parolasını doğrula</translation>
</message>
@ -1542,8 +1552,8 @@
<translation type="unfinished">Listede kullanılabilir yok</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1486"/>
<location filename="../src/mainwindow.cpp" line="1717"/>
<location filename="../src/mainwindow.cpp" line="1471"/>
<location filename="../src/mainwindow.cpp" line="1702"/>
<source>NetOn,</source>
<translation></translation>
</message>
@ -1577,7 +1587,7 @@
<translation type="vanished">Kablosuz listesini şimdi güncelle</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2713"/>
<location filename="../src/mainwindow.cpp" line="2698"/>
<source>Conn Ethernet Success</source>
<translation>Ethernet Bağlantısı Başarılı</translation>
</message>
@ -1586,7 +1596,7 @@
<translation type="vanished">Ethernet Bağlantısı Hatası</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2750"/>
<location filename="../src/mainwindow.cpp" line="2753"/>
<source>Conn Wifi Success</source>
<translation>Wi-Fi Bağlantısı Başarılı</translation>
</message>
@ -1631,12 +1641,12 @@
<translation type="obsolete">Parola gir...</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="368"/>
<location filename="../src/oneconnform.cpp" line="371"/>
<source>Connect to Hidden Wi-Fi Network</source>
<translation>Gizli Wi-Fi ına Bağlan</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="461"/>
<location filename="../src/oneconnform.cpp" line="464"/>
<source>Signal</source>
<translation type="unfinished"></translation>
</message>
@ -1649,17 +1659,17 @@
<translation type="vanished">Güvenli</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="379"/>
<location filename="../src/oneconnform.cpp" line="382"/>
<source>Rate</source>
<translation>Oran</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="458"/>
<location filename="../src/oneconnform.cpp" line="461"/>
<source>None</source>
<translation type="unfinished">Yok</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="460"/>
<location filename="../src/oneconnform.cpp" line="463"/>
<source>WiFi Security</source>
<translation type="unfinished">WiFi güvenliği:</translation>
</message>
@ -1668,17 +1678,17 @@
<translation type="obsolete">Sinyal gücü:</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="462"/>
<location filename="../src/oneconnform.cpp" line="465"/>
<source>MAC</source>
<translation type="unfinished">Fiziksel adres:</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="538"/>
<location filename="../src/oneconnform.cpp" line="541"/>
<source>Conn Wifi Success</source>
<translation type="unfinished">Wi-Fi Bağlantısı Başarılı</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="543"/>
<location filename="../src/oneconnform.cpp" line="546"/>
<source>Confirm your Wi-Fi password or usable of wireless card</source>
<translation type="unfinished">Kablosuz şifrenizi veya kablosuz kart kullanılabilirliğini onaylayın</translation>
</message>
@ -1710,35 +1720,35 @@
<translation>Bağlantıyı Kes</translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="239"/>
<location filename="../src/onelancform.cpp" line="243"/>
<location filename="../src/onelancform.cpp" line="244"/>
<location filename="../src/onelancform.cpp" line="248"/>
<location filename="../src/onelancform.cpp" line="242"/>
<location filename="../src/onelancform.cpp" line="246"/>
<location filename="../src/onelancform.cpp" line="247"/>
<location filename="../src/onelancform.cpp" line="251"/>
<source>No Configuration</source>
<translation type="unfinished">Yapılandırma Yok</translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="249"/>
<location filename="../src/onelancform.cpp" line="252"/>
<source>No IfName</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="252"/>
<location filename="../src/onelancform.cpp" line="255"/>
<source>IPv4</source>
<translation type="unfinished">IPv4 adresi:</translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="253"/>
<location filename="../src/onelancform.cpp" line="256"/>
<source>IPv6</source>
<translation type="unfinished">IPv6 adresi:</translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="254"/>
<location filename="../src/onelancform.cpp" line="257"/>
<source>BandWidth</source>
<translation type="unfinished">Bant genişliği:</translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="255"/>
<location filename="../src/onelancform.cpp" line="258"/>
<source>MAC</source>
<translation type="unfinished">Fiziksel adres:</translation>
</message>

Binary file not shown.

View File

@ -1337,7 +1337,7 @@
<name>MainWindow</name>
<message>
<location filename="../src/mainwindow.ui" line="14"/>
<location filename="../src/mainwindow.cpp" line="579"/>
<location filename="../src/mainwindow.cpp" line="564"/>
<source>kylin-nm</source>
<translation></translation>
</message>
@ -1347,14 +1347,14 @@
</message>
<message>
<location filename="../src/mainwindow.cpp" line="391"/>
<location filename="../src/mainwindow.cpp" line="584"/>
<location filename="../src/mainwindow.cpp" line="569"/>
<source>Advanced</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="338"/>
<location filename="../src/mainwindow.cpp" line="1220"/>
<location filename="../src/mainwindow.cpp" line="2437"/>
<location filename="../src/mainwindow.cpp" line="1205"/>
<location filename="../src/mainwindow.cpp" line="2422"/>
<source>Ethernet</source>
<translation>线</translation>
</message>
@ -1364,7 +1364,7 @@
</message>
<message>
<location filename="../src/mainwindow.cpp" line="352"/>
<location filename="../src/mainwindow.cpp" line="1271"/>
<location filename="../src/mainwindow.cpp" line="1256"/>
<source>Wifi</source>
<translation>线</translation>
</message>
@ -1387,97 +1387,107 @@
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="583"/>
<location filename="../src/mainwindow.cpp" line="568"/>
<source>Show MainWindow</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1193"/>
<location filename="../src/mainwindow.cpp" line="1178"/>
<source>No wireless card detected</source>
<translation type="unfinished">线</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1299"/>
<location filename="../src/mainwindow.cpp" line="1325"/>
<location filename="../src/mainwindow.cpp" line="1390"/>
<location filename="../src/mainwindow.cpp" line="1624"/>
<location filename="../src/mainwindow.cpp" line="2451"/>
<location filename="../src/mainwindow.cpp" line="2524"/>
<location filename="../src/mainwindow.cpp" line="1284"/>
<location filename="../src/mainwindow.cpp" line="1310"/>
<location filename="../src/mainwindow.cpp" line="1375"/>
<location filename="../src/mainwindow.cpp" line="1609"/>
<location filename="../src/mainwindow.cpp" line="2436"/>
<location filename="../src/mainwindow.cpp" line="2509"/>
<source>Not connected</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1303"/>
<location filename="../src/mainwindow.cpp" line="1328"/>
<location filename="../src/mainwindow.cpp" line="1392"/>
<location filename="../src/mainwindow.cpp" line="1534"/>
<location filename="../src/mainwindow.cpp" line="1535"/>
<location filename="../src/mainwindow.cpp" line="1627"/>
<location filename="../src/mainwindow.cpp" line="1739"/>
<location filename="../src/mainwindow.cpp" line="1912"/>
<location filename="../src/mainwindow.cpp" line="2453"/>
<location filename="../src/mainwindow.cpp" line="2526"/>
<location filename="../src/mainwindow.cpp" line="1288"/>
<location filename="../src/mainwindow.cpp" line="1313"/>
<location filename="../src/mainwindow.cpp" line="1377"/>
<location filename="../src/mainwindow.cpp" line="1519"/>
<location filename="../src/mainwindow.cpp" line="1520"/>
<location filename="../src/mainwindow.cpp" line="1612"/>
<location filename="../src/mainwindow.cpp" line="1724"/>
<location filename="../src/mainwindow.cpp" line="1897"/>
<location filename="../src/mainwindow.cpp" line="2438"/>
<location filename="../src/mainwindow.cpp" line="2511"/>
<source>Disconnected</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1492"/>
<location filename="../src/mainwindow.cpp" line="1477"/>
<source>NetOn,IfName:</source>
<translation type="unfinished">,:</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1558"/>
<location filename="../src/mainwindow.cpp" line="1543"/>
<source>No Other Wired Network Scheme</source>
<translation type="unfinished">线</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1761"/>
<location filename="../src/mainwindow.cpp" line="1746"/>
<source>No Other Wireless Network Scheme</source>
<translation type="unfinished">线</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1935"/>
<location filename="../src/mainwindow.cpp" line="1939"/>
<location filename="../src/mainwindow.cpp" line="1944"/>
<location filename="../src/mainwindow.cpp" line="1948"/>
<location filename="../src/mainwindow.cpp" line="1920"/>
<location filename="../src/mainwindow.cpp" line="1924"/>
<location filename="../src/mainwindow.cpp" line="1929"/>
<location filename="../src/mainwindow.cpp" line="1933"/>
<source>Wired connection</source>
<translation type="unfinished">线</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1953"/>
<location filename="../src/mainwindow.cpp" line="1957"/>
<location filename="../src/mainwindow.cpp" line="1962"/>
<location filename="../src/mainwindow.cpp" line="1966"/>
<location filename="../src/mainwindow.cpp" line="1938"/>
<location filename="../src/mainwindow.cpp" line="1942"/>
<location filename="../src/mainwindow.cpp" line="1947"/>
<location filename="../src/mainwindow.cpp" line="1951"/>
<source>Ethernet connection</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2374"/>
<location filename="../src/mainwindow.cpp" line="2359"/>
<source>Wired net is disconnected</source>
<translation type="unfinished">线</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2400"/>
<location filename="../src/mainwindow.cpp" line="2385"/>
<source>Wi-Fi is disconnected</source>
<translation type="unfinished">线</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2722"/>
<location filename="../src/mainwindow.cpp" line="2708"/>
<source>Without Lan Cable</source>
<translation type="unfinished">线</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2730"/>
<location filename="../src/mainwindow.cpp" line="2717"/>
<source>MAC Address Mismatch</source>
<translation type="unfinished">线MAC地址不匹配</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2756"/>
<location filename="../src/mainwindow.cpp" line="2730"/>
<source>Connect Wired Network Failed</source>
<translation type="unfinished">线</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2738"/>
<source>IP configuration could not be reserved</source>
<translation type="unfinished">IP </translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2759"/>
<source>Confirm your Wi-Fi password or usable of wireless card</source>
<translation type="unfinished">Wi-Fi密码或无线设备</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2761"/>
<location filename="../src/mainwindow.cpp" line="2764"/>
<source>Confirm your Wi-Fi password</source>
<translation type="unfinished">Wi-Fi密码</translation>
</message>
@ -1502,8 +1512,8 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1486"/>
<location filename="../src/mainwindow.cpp" line="1717"/>
<location filename="../src/mainwindow.cpp" line="1471"/>
<location filename="../src/mainwindow.cpp" line="1702"/>
<source>NetOn,</source>
<translation></translation>
</message>
@ -1537,7 +1547,7 @@
<translation type="vanished"> Wi-Fi列表</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2713"/>
<location filename="../src/mainwindow.cpp" line="2698"/>
<source>Conn Ethernet Success</source>
<translation>线</translation>
</message>
@ -1546,7 +1556,7 @@
<translation type="vanished">线</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="2750"/>
<location filename="../src/mainwindow.cpp" line="2753"/>
<source>Conn Wifi Success</source>
<translation>线</translation>
</message>
@ -1591,12 +1601,12 @@
<translation type="obsolete">...</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="368"/>
<location filename="../src/oneconnform.cpp" line="371"/>
<source>Connect to Hidden Wi-Fi Network</source>
<translation> Wi-Fi </translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="461"/>
<location filename="../src/oneconnform.cpp" line="464"/>
<source>Signal</source>
<translation type="unfinished"></translation>
</message>
@ -1609,32 +1619,32 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="379"/>
<location filename="../src/oneconnform.cpp" line="382"/>
<source>Rate</source>
<translation></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="458"/>
<location filename="../src/oneconnform.cpp" line="461"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="460"/>
<location filename="../src/oneconnform.cpp" line="463"/>
<source>WiFi Security</source>
<translation type="unfinished">WiFi安全性</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="462"/>
<location filename="../src/oneconnform.cpp" line="465"/>
<source>MAC</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="538"/>
<location filename="../src/oneconnform.cpp" line="541"/>
<source>Conn Wifi Success</source>
<translation type="unfinished">线</translation>
</message>
<message>
<location filename="../src/oneconnform.cpp" line="543"/>
<location filename="../src/oneconnform.cpp" line="546"/>
<source>Confirm your Wi-Fi password or usable of wireless card</source>
<translation type="unfinished">Wi-Fi密码或无线设备</translation>
</message>
@ -1662,35 +1672,35 @@
<translation></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="239"/>
<location filename="../src/onelancform.cpp" line="243"/>
<location filename="../src/onelancform.cpp" line="244"/>
<location filename="../src/onelancform.cpp" line="248"/>
<location filename="../src/onelancform.cpp" line="242"/>
<location filename="../src/onelancform.cpp" line="246"/>
<location filename="../src/onelancform.cpp" line="247"/>
<location filename="../src/onelancform.cpp" line="251"/>
<source>No Configuration</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="249"/>
<location filename="../src/onelancform.cpp" line="252"/>
<source>No IfName</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="252"/>
<location filename="../src/onelancform.cpp" line="255"/>
<source>IPv4</source>
<translation type="unfinished">IPv4地址</translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="253"/>
<location filename="../src/onelancform.cpp" line="256"/>
<source>IPv6</source>
<translation type="unfinished">IPv6地址</translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="254"/>
<location filename="../src/onelancform.cpp" line="257"/>
<source>BandWidth</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/onelancform.cpp" line="255"/>
<location filename="../src/onelancform.cpp" line="258"/>
<source>MAC</source>
<translation type="unfinished"></translation>
</message>