|
|
|
@ -428,7 +428,7 @@ void KNutDock::toolTip (int runtime, int status, int batteryCharge, int upsLoad
|
|
|
|
|
text = i18n("Name")+" : "+m_activeUpsInfo->record.name + "\n"
|
|
|
|
|
+i18n("UPS name")+" : "+m_activeUpsInfo->record.upsName + "\n"
|
|
|
|
|
+i18n("UPS address")+" : "+m_activeUpsInfo->record.upsAddress +"\n"
|
|
|
|
|
+i18n("tqStatus : ");
|
|
|
|
|
+i18n("Status : ");
|
|
|
|
|
|
|
|
|
|
if (status == -1) {
|
|
|
|
|
text += i18n("Connection doesn't exist.");
|
|
|
|
@ -449,22 +449,22 @@ void KNutDock::toolTip (int runtime, int status, int batteryCharge, int upsLoad
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (status & KNutNet::LB) {
|
|
|
|
|
text += "\n" + i18n("tqStatus : ") + i18n("UPS Battery is low");
|
|
|
|
|
text += "\n" + i18n("Status : ") + i18n("UPS Battery is low");
|
|
|
|
|
}
|
|
|
|
|
if (status & KNutNet::RB) {
|
|
|
|
|
text += "\n" + i18n("tqStatus : ") + i18n("Replace battery");
|
|
|
|
|
text += "\n" + i18n("Status : ") + i18n("Replace battery");
|
|
|
|
|
}
|
|
|
|
|
if (status & KNutNet::CAL) {
|
|
|
|
|
text += "\n" + i18n("tqStatus : ") + i18n("UPS is performing calibration");
|
|
|
|
|
text += "\n" + i18n("Status : ") + i18n("UPS is performing calibration");
|
|
|
|
|
}
|
|
|
|
|
if (status & KNutNet::OVER) {
|
|
|
|
|
text += "\n" + i18n("tqStatus : ") + i18n("UPS is Overload");
|
|
|
|
|
text += "\n" + i18n("Status : ") + i18n("UPS is Overload");
|
|
|
|
|
}
|
|
|
|
|
if (status & KNutNet::TRIM) {
|
|
|
|
|
text += "\n" + i18n("tqStatus : ") + i18n("UPS is trimming voltage");
|
|
|
|
|
text += "\n" + i18n("Status : ") + i18n("UPS is trimming voltage");
|
|
|
|
|
}
|
|
|
|
|
if (status & KNutNet::BOOST) {
|
|
|
|
|
text += "\n" + i18n("tqStatus : ")+ i18n("UPS is boosting voltage");
|
|
|
|
|
text += "\n" + i18n("Status : ")+ i18n("UPS is boosting voltage");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|