Fix bug can not translate some sentences

This commit is contained in:
chenlelin 2021-03-26 15:18:45 +08:00
parent 4b27a631c0
commit 47b8f623e0
3 changed files with 17 additions and 18 deletions

View File

@ -1706,12 +1706,6 @@ void MainWindow::getWifiListDone(QStringList slist)
} }
} }
qDebug()<<"------------";
foreach (QString str, slist) {
qDebug()<<str;
}
qDebug()<<"------------";
if (current_wifi_list_state == RECONNECT_WIFI) { if (current_wifi_list_state == RECONNECT_WIFI) {
QStringList targetWifiList = connectableWifiPriorityList(slist); QStringList targetWifiList = connectableWifiPriorityList(slist);
if (!targetWifiList.isEmpty()) { if (!targetWifiList.isEmpty()) {
@ -3067,9 +3061,11 @@ void MainWindow::on_btnHotspotState()
//执行wifi的重新连接 //执行wifi的重新连接
void MainWindow::toReconnectWifi() void MainWindow::toReconnectWifi()
{ {
if (isHuaWeiPC) {
current_wifi_list_state = RECONNECT_WIFI; current_wifi_list_state = RECONNECT_WIFI;
this->ksnm->execGetWifiList(this->wcardname); this->ksnm->execGetWifiList(this->wcardname);
} }
}
//处理外界对网络的连接与断开 //处理外界对网络的连接与断开
void MainWindow::onExternalConnectionChange(QString type, bool isConnUp) void MainWindow::onExternalConnectionChange(QString type, bool isConnUp)

Binary file not shown.

View File

@ -121,6 +121,16 @@
<source>Add Wired Network</source> <source>Add Wired Network</source>
<translation type="unfinished">线</translation> <translation type="unfinished">线</translation>
</message> </message>
<message>
<location filename="../src/confform.cpp" line="451"/>
<source>kylin-nm</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/confform.cpp" line="454"/>
<source>kylin network applet desktop message</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>create wired network successfully</source> <source>create wired network successfully</source>
<translation type="obsolete">线</translation> <translation type="obsolete">线</translation>
@ -1326,13 +1336,6 @@
<translation type="obsolete">WPA WPA2 </translation> <translation type="obsolete">WPA WPA2 </translation>
</message> </message>
</context> </context>
<context>
<name>KylinDBus</name>
<message>
<source>kylin network applet desktop message</source>
<translation type="obsolete"></translation>
</message>
</context>
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
@ -1752,14 +1755,14 @@
<context> <context>
<name>Utils</name> <name>Utils</name>
<message> <message>
<location filename="../src/utils.cpp" line="84"/> <location filename="../src/utils.cpp" line="88"/>
<source>kylin-nm</source> <source>kylin-nm</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/utils.cpp" line="87"/> <location filename="../src/utils.cpp" line="91"/>
<source>kylin network applet desktop message</source> <source>kylin network applet desktop message</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>