From e9c67f43465b16922b2907a8a71dd7790be917da Mon Sep 17 00:00:00 2001 From: Odizinne Date: Sun, 18 Aug 2024 17:59:28 +0200 Subject: [PATCH] added missing fr translations --- src/HeadsetControlQt/headsetcontrolqt.cpp | 2 +- src/Resources/tr/HeadsetControl-Qt_en.qm | Bin 873 -> 999 bytes src/Resources/tr/HeadsetControl-Qt_en.ts | 18 ++++++++++++++---- src/Resources/tr/HeadsetControl-Qt_fr.qm | Bin 1277 -> 1497 bytes src/Resources/tr/HeadsetControl-Qt_fr.ts | 22 ++++++++++++++++++---- 5 files changed, 33 insertions(+), 9 deletions(-) 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 cfaf71b0273b36468e150d6432d430c749820af3..2a365918d813fd1f678fed0da3b205a58a0f9a42 100644 GIT binary patch delta 224 zcmaFK_MCl!Tzvxr%ZhFW28K+Apub-j7#Ir}>V!gpv?G)7!xSLR&3vkA9+3XZ5@aC< zRL8)oe}6NOKZ|w4s=W*h%z|v|Bor7Jm`pjk*W3h3+j87E`V%OBl+*m97LY%QGsm|B zNZ;c;@74uWm%+1}u^32i=U=n&Dg%Qa)00e~DK^aifq(<3j)4t`B~%R+G7^gwRE<;> zk`hZwQj01Ta#GVu^d@g)RN1(wgOP{ZC%+sf1rnUB#Z=6wHF+MB=43fWwaIUoY5}dw BKcD~r delta 156 zcmaFP{*rBiTzvrp%ZhFW1_m95pub-j7#NKi>V!gpGz*jP!xW(SIi@*Z(t-Tn%%`g6 z0qG7_{rj7NbS&$JReKp2m=?3GlTZNiPjGavxd~Lyz-j(b3rK}>=J<91>4iMI8H<7H uJo(pbyb7etGJ(W7=Knyz0hHeOs+V!{a;9QN&B@Ztnv)e6RVHUL*8u=+N-W0! 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 970d18de750f3caf7f1c7e5b7a10a8258048947d..5d6c512e024f9c1da6227bdff075cfda2d9cdaa9 100644 GIT binary patch delta 335 zcmey%d6RpBTzvxr%ZhFW28NvsL4Ut6Ffh3=)Cq+$FfjgP5`LHhqz^Nns+tEB|H%?$ zAqP~)z^Z?LGmu}wx?$B`1_qX|Z0jTx7#Nt7Il9-}1WMO(+&KCZD8HK1{G%3-|Bf@q zw*zR-G|uyGT|jkvcy==u1N9a1ui1E&fgz7&Qzp<%J!YU%2L@FJBOq2_NMT3?l1U7S z3?)FA%233R2^J{=lEpxgM20*dslZUckk3#GlvM!gGGx%>02;!;2E-Doh6)*p#R{rM zstQSoB_*jvl?pkjX(f7-AFzl`yuh+?h8~lN9D@^v1!+K$OrXU%45@I#xP9`=VWvR! ZZ$8Fk%*d!U`4_Y1}#rz`&x(woXC;C_aOud(BOtISicUAGLr~A!m+n2T+|P&u+$I z1_tJ({A)H|1=7zlftr$-fhq(ToEQ=}YcXmvZC=Q1%*d!Y`6`R% - 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. +