Skip to content

Commit

Permalink
added missing fr translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Aug 18, 2024
1 parent bbb6244 commit e9c67f4
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/HeadsetControlQt/headsetcontrolqt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Binary file modified src/Resources/tr/HeadsetControl-Qt_en.qm
Binary file not shown.
18 changes: 14 additions & 4 deletions src/Resources/tr/HeadsetControl-Qt_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="210"/>
<source>Send notification when battery goes below</source>
<source>Send notification when battery goes below:</source>
<translation></translation>
</message>
<message>
Expand All @@ -59,19 +59,29 @@
<translation></translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="63"/>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="73"/>
<source>System</source>
<translation></translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="64"/>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="74"/>
<source>Dark</source>
<translation></translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="65"/>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="75"/>
<source>Light</source>
<translation></translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="258"/>
<source>Low battery</source>
<translation></translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="258"/>
<source>%1 has %2% battery left.</source>
<translation></translation>
</message>
</context>
</TS>
Binary file modified src/Resources/tr/HeadsetControl-Qt_fr.qm
Binary file not shown.
22 changes: 18 additions & 4 deletions src/Resources/tr/HeadsetControl-Qt_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="210"/>
<source>Send notification when battery goes below</source>
<source>Send notification when battery goes below:</source>
<translation>Envoyer une notification quand la batterie atteint:</translation>
</message>
<message>
<source>Send notification when battery goes below</source>
<translation type="vanished">Envoyer une notification quand la batterie atteint:</translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="256"/>
<source>Settings</source>
Expand All @@ -59,19 +63,29 @@
<translation>Aucun casque détecté.</translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="63"/>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="73"/>
<source>System</source>
<translation>Système</translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="64"/>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="74"/>
<source>Dark</source>
<translation>Sombre</translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="65"/>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="75"/>
<source>Light</source>
<translation>Clair</translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="258"/>
<source>Low battery</source>
<translation>Batterie faible</translation>
</message>
<message>
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="258"/>
<source>%1 has %2% battery left.</source>
<translation>%2% de batterie restant pour %1.</translation>
</message>
</context>
</TS>

0 comments on commit e9c67f4

Please sign in to comment.