-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
180 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!DOCTYPE TS> | ||
<TS version="2.1" language="en_US"> | ||
<context> | ||
<name>HeadsetControlQt</name> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="20"/> | ||
<source>HeadsetControl-Qt</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="44"/> | ||
<source>GroupBox</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="61"/> | ||
<source>Battery</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="90"/> | ||
<source>Sidetone</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="121"/> | ||
<source>Lights</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="156"/> | ||
<source>Disable lights when battery goes below:</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="210"/> | ||
<source>Send notification when battery goes below</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="256"/> | ||
<source>Settings</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="271"/> | ||
<source>Icon theme</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="313"/> | ||
<source>Run at startup</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="351"/> | ||
<source>No supported headset found.</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="63"/> | ||
<source>System</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="64"/> | ||
<source>Dark</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="65"/> | ||
<source>Light</source> | ||
<translation></translation> | ||
</message> | ||
</context> | ||
</TS> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!DOCTYPE TS> | ||
<TS version="2.1" language="fr_FR"> | ||
<context> | ||
<name>HeadsetControlQt</name> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="20"/> | ||
<source>HeadsetControl-Qt</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="44"/> | ||
<source>GroupBox</source> | ||
<translation></translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="61"/> | ||
<source>Battery</source> | ||
<translation>Batterie</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="90"/> | ||
<source>Sidetone</source> | ||
<translation>Retour voix</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="121"/> | ||
<source>Lights</source> | ||
<translation>LEDs</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="156"/> | ||
<source>Disable lights when battery goes below:</source> | ||
<translation>Désactiver les LEDs quand la batterie atteint:</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="210"/> | ||
<source>Send notification when battery goes below</source> | ||
<translation>Envoyer une notification quand la batterie atteint:</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="256"/> | ||
<source>Settings</source> | ||
<translation>Paramètres</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="271"/> | ||
<source>Icon theme</source> | ||
<translation>Thème d'icones</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="313"/> | ||
<source>Run at startup</source> | ||
<translation>Lancer au démarrage</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.ui" line="351"/> | ||
<source>No supported headset found.</source> | ||
<translation>Aucun casque détecté.</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="63"/> | ||
<source>System</source> | ||
<translation>Système</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="64"/> | ||
<source>Dark</source> | ||
<translation>Sombre</translation> | ||
</message> | ||
<message> | ||
<location filename="../../HeadsetControlQt/headsetcontrolqt.cpp" line="65"/> | ||
<source>Light</source> | ||
<translation>Clair</translation> | ||
</message> | ||
</context> | ||
</TS> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<RCC> | ||
<qresource prefix="/translations"> | ||
<file>tr/HeadsetControl-Qt_en.qm</file> | ||
<file>tr/HeadsetControl-Qt_fr.qm</file> | ||
</qresource> | ||
</RCC> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
#include "headsetcontrolqt.h" | ||
|
||
#include <QApplication> | ||
#include <QLocale> | ||
#include <QTranslator> | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
QApplication a(argc, argv); | ||
a.setStyle("fusion"); | ||
QLocale locale; | ||
QString languageCode = locale.name().section('_', 0, 0); | ||
QTranslator translator; | ||
if (translator.load(":/translations/tr/HeadsetControl-Qt_" + languageCode + ".qm")) { | ||
a.installTranslator(&translator); | ||
} | ||
HeadsetControlQt w; | ||
return a.exec(); | ||
} |