934 elif mqttErrno == mqtt.MQTT_ERR_NOMEM: |
934 elif mqttErrno == mqtt.MQTT_ERR_NOMEM: |
935 return QCoreApplication.translate("MqttErrorMessage", "Out of memory.") |
935 return QCoreApplication.translate("MqttErrorMessage", "Out of memory.") |
936 elif mqttErrno == mqtt.MQTT_ERR_PROTOCOL: |
936 elif mqttErrno == mqtt.MQTT_ERR_PROTOCOL: |
937 return QCoreApplication.translate( |
937 return QCoreApplication.translate( |
938 "MqttErrorMessage", |
938 "MqttErrorMessage", |
939 "A network protocol error occurred when communicating with" " the broker.", |
939 "A network protocol error occurred when communicating with the broker.", |
940 ) |
940 ) |
941 elif mqttErrno == mqtt.MQTT_ERR_INVAL: |
941 elif mqttErrno == mqtt.MQTT_ERR_INVAL: |
942 return QCoreApplication.translate( |
942 return QCoreApplication.translate( |
943 "MqttErrorMessage", "Invalid function arguments provided." |
943 "MqttErrorMessage", "Invalid function arguments provided." |
944 ) |
944 ) |