diff --git a/src/HeadsetControlQt/headsetcontrolqt.cpp b/src/HeadsetControlQt/headsetcontrolqt.cpp index c4d59f8..5126941 100644 --- a/src/HeadsetControlQt/headsetcontrolqt.cpp +++ b/src/HeadsetControlQt/headsetcontrolqt.cpp @@ -255,7 +255,7 @@ void HeadsetControlQt::sendNotificationBasedOnBattery(const QJsonObject &headset bool available = (batteryStatus == "BATTERY_AVAILABLE"); if (batteryLevel < ui->notificationBatterySpinbox->value() && !notificationSent && available) { - sendNotification("Low battery", QString("%1 has %2% battery left.").arg(headsetName).arg(batteryLevel), QIcon(":/icons/icon.png"), 5000); + sendNotification(tr("Low battery"), QString(tr("%1 has %2% battery left.")).arg(headsetName).arg(batteryLevel), QIcon(":/icons/icon.png"), 5000); notificationSent = true; } else if (batteryLevel >= ui->notificationBatterySpinbox->value() + 5 && notificationSent && available) { notificationSent = false; diff --git a/src/Resources/tr/HeadsetControl-Qt_en.qm b/src/Resources/tr/HeadsetControl-Qt_en.qm index cfaf71b..2a36591 100644 Binary files a/src/Resources/tr/HeadsetControl-Qt_en.qm and b/src/Resources/tr/HeadsetControl-Qt_en.qm differ diff --git a/src/Resources/tr/HeadsetControl-Qt_en.ts b/src/Resources/tr/HeadsetControl-Qt_en.ts index d57719a..f917acf 100644 --- a/src/Resources/tr/HeadsetControl-Qt_en.ts +++ b/src/Resources/tr/HeadsetControl-Qt_en.ts @@ -35,7 +35,7 @@ - Send notification when battery goes below + Send notification when battery goes below: @@ -59,19 +59,29 @@ - + System - + Dark - + Light + + + Low battery + + + + + %1 has %2% battery left. + + diff --git a/src/Resources/tr/HeadsetControl-Qt_fr.qm b/src/Resources/tr/HeadsetControl-Qt_fr.qm index 970d18d..5d6c512 100644 Binary files a/src/Resources/tr/HeadsetControl-Qt_fr.qm and b/src/Resources/tr/HeadsetControl-Qt_fr.qm differ diff --git a/src/Resources/tr/HeadsetControl-Qt_fr.ts b/src/Resources/tr/HeadsetControl-Qt_fr.ts index a337099..23c4e57 100644 --- a/src/Resources/tr/HeadsetControl-Qt_fr.ts +++ b/src/Resources/tr/HeadsetControl-Qt_fr.ts @@ -35,9 +35,13 @@ - Send notification when battery goes below + Send notification when battery goes below: Envoyer une notification quand la batterie atteint: + + Send notification when battery goes below + Envoyer une notification quand la batterie atteint: + Settings @@ -59,19 +63,29 @@ Aucun casque détecté. - + System Système - + Dark Sombre - + Light Clair + + + Low battery + Batterie faible + + + + %1 has %2% battery left. + %2% de batterie restant pour %1. +