Skip to content

Commit

Permalink
updated translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Aug 15, 2024
1 parent 6a45e9e commit ee47ae4
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 62 deletions.
16 changes: 15 additions & 1 deletion src/designer/ui_mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,22 @@
<height>0</height>
</size>
</property>
<property name="font">
<font>
<bold>true</bold>
</font>
</property>
<property name="layoutDirection">
<enum>Qt::LayoutDirection::LeftToRight</enum>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="title">
<string>GroupBox</string>
<string>Settings</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
Expand Down
25 changes: 12 additions & 13 deletions src/tr/headsetcontrol-qt_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<context>
<name>HeadsetControlApp</name>
<message>
<location filename="..\headsetcontrol-qt.py" line="66" />
<location filename="..\headsetcontrol-qt.py" line="65" />
<source>System</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\headsetcontrol-qt.py" line="67" />
<location filename="..\headsetcontrol-qt.py" line="66" />
<source>Light</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\headsetcontrol-qt.py" line="68" />
<location filename="..\headsetcontrol-qt.py" line="67" />
<source>Dark</source>
<translation type="unfinished" />
</message>
Expand All @@ -28,17 +28,17 @@
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>No supported headset found.</source>
<source>GroupBox</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Icon theme</source>
<source>Battery</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Run at startup</source>
<source>Sidetone</source>
<translation type="unfinished" />
</message>
<message>
Expand All @@ -48,33 +48,32 @@
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Battery</source>
<source>Disable lights when battery goes below:</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Sidetone</source>
<source>Send notification when battery goes below</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Disable lights when battery goes below:</source>
<source>Settings</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Send notification when battery goes below</source>
<source>Icon theme</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>TextLabel</source>
<source>Run at startup</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>General settings</source>
<source>No supported headset found.</source>
<translation type="unfinished" />
</message>
</context>
Expand Down
Binary file modified src/tr/headsetcontrol-qt_en.qm
Binary file not shown.
25 changes: 12 additions & 13 deletions src/tr/headsetcontrol-qt_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<context>
<name>HeadsetControlApp</name>
<message>
<location filename="../headsetcontrol-qt.py" line="66"/>
<location filename="../headsetcontrol-qt.py" line="65"/>
<source>System</source>
<translation></translation>
</message>
<message>
<location filename="../headsetcontrol-qt.py" line="67"/>
<location filename="../headsetcontrol-qt.py" line="66"/>
<source>Light</source>
<translation></translation>
</message>
<message>
<location filename="../headsetcontrol-qt.py" line="68"/>
<location filename="../headsetcontrol-qt.py" line="67"/>
<source>Dark</source>
<translation></translation>
</message>
Expand All @@ -28,17 +28,17 @@
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>No supported headset found.</source>
<source>GroupBox</source>
<translation></translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Icon theme</source>
<source>Battery</source>
<translation></translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Run at startup</source>
<source>Sidetone</source>
<translation></translation>
</message>
<message>
Expand All @@ -48,33 +48,32 @@
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Battery</source>
<source>Disable lights when battery goes below:</source>
<translation></translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Sidetone</source>
<source>Send notification when battery goes below</source>
<translation></translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Disable lights when battery goes below:</source>
<source>Settings</source>
<translation></translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Send notification when battery goes below</source>
<source>Icon theme</source>
<translation></translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>TextLabel</source>
<source>Run at startup</source>
<translation></translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>General settings</source>
<source>No supported headset found.</source>
<translation></translation>
</message>
</context>
Expand Down
25 changes: 12 additions & 13 deletions src/tr/headsetcontrol-qt_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<context>
<name>HeadsetControlApp</name>
<message>
<location filename="..\headsetcontrol-qt.py" line="66" />
<location filename="..\headsetcontrol-qt.py" line="65" />
<source>System</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\headsetcontrol-qt.py" line="67" />
<location filename="..\headsetcontrol-qt.py" line="66" />
<source>Light</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\headsetcontrol-qt.py" line="68" />
<location filename="..\headsetcontrol-qt.py" line="67" />
<source>Dark</source>
<translation type="unfinished" />
</message>
Expand All @@ -28,17 +28,17 @@
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>No supported headset found.</source>
<source>GroupBox</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Icon theme</source>
<source>Battery</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Run at startup</source>
<source>Sidetone</source>
<translation type="unfinished" />
</message>
<message>
Expand All @@ -48,33 +48,32 @@
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Battery</source>
<source>Disable lights when battery goes below:</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Sidetone</source>
<source>Send notification when battery goes below</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Disable lights when battery goes below:</source>
<source>Settings</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>Send notification when battery goes below</source>
<source>Icon theme</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>TextLabel</source>
<source>Run at startup</source>
<translation type="unfinished" />
</message>
<message>
<location filename="..\designer\ui_mainwindow.ui" line="0" />
<source>General settings</source>
<source>No supported headset found.</source>
<translation type="unfinished" />
</message>
</context>
Expand Down
Binary file modified src/tr/headsetcontrol-qt_fr.qm
Binary file not shown.
45 changes: 24 additions & 21 deletions src/tr/headsetcontrol-qt_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<context>
<name>HeadsetControlApp</name>
<message>
<location filename="../headsetcontrol-qt.py" line="66"/>
<location filename="../headsetcontrol-qt.py" line="65"/>
<source>System</source>
<translation>Système</translation>
</message>
<message>
<location filename="../headsetcontrol-qt.py" line="67"/>
<location filename="../headsetcontrol-qt.py" line="66"/>
<source>Light</source>
<translation>Clair</translation>
</message>
<message>
<location filename="../headsetcontrol-qt.py" line="68"/>
<location filename="../headsetcontrol-qt.py" line="67"/>
<source>Dark</source>
<translation>Sombre</translation>
</message>
Expand All @@ -28,18 +28,18 @@
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>No supported headset found.</source>
<translation>Aucun casque détécté.</translation>
<source>GroupBox</source>
<translation></translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Icon theme</source>
<translation>Thème des icones</translation>
<source>Battery</source>
<translation>Batterie</translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Run at startup</source>
<translation>Lancer au démarrage</translation>
<source>Sidetone</source>
<translation>Retour voix</translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
Expand All @@ -48,34 +48,37 @@
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Battery</source>
<translation>Batterie</translation>
<source>Disable lights when battery goes below:</source>
<translation>Désactiver les LEDs quand la batterie tombe sous:</translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Sidetone</source>
<translation>Retour voix</translation>
<source>Send notification when battery goes below</source>
<translation>Notifier quand la batterie tombe sous</translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Disable lights when battery goes below:</source>
<translation>Désactiver les LEDs quand la batterie tombe sous:</translation>
<source>Settings</source>
<translation>Paramètres</translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>Send notification when battery goes below</source>
<translation>Notifier quand la batterie tombe sous</translation>
<source>Icon theme</source>
<translation>Thème des icones</translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>TextLabel</source>
<translation type="unfinished"></translation>
<source>Run at startup</source>
<translation>Lancer au démarrage</translation>
</message>
<message>
<location filename="../designer/ui_mainwindow.ui" line="0"/>
<source>No supported headset found.</source>
<translation>Aucun casque détécté.</translation>
</message>
<message>
<source>General settings</source>
<translation>Paramètres</translation>
<translation type="vanished">Paramètres</translation>
</message>
</context>
</TS>
8 changes: 7 additions & 1 deletion src/ui_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ def setupUi(self, HeadsetControlQt):
self.gridLayout_2.addWidget(self.deviceGroupBox, 0, 0, 1, 1)
self.generalGroupBox = QtWidgets.QGroupBox(parent=self.centralwidget)
self.generalGroupBox.setMinimumSize(QtCore.QSize(0, 0))
font = QtGui.QFont()
font.setBold(True)
self.generalGroupBox.setFont(font)
self.generalGroupBox.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
self.generalGroupBox.setAutoFillBackground(False)
self.generalGroupBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
self.generalGroupBox.setObjectName("generalGroupBox")
self.gridLayout_3 = QtWidgets.QGridLayout(self.generalGroupBox)
self.gridLayout_3.setObjectName("gridLayout_3")
Expand Down Expand Up @@ -142,7 +148,7 @@ def retranslateUi(self, HeadsetControlQt):
self.ledLabel.setText(_translate("HeadsetControlQt", "Lights"))
self.lightBatteryLabel.setText(_translate("HeadsetControlQt", "Disable lights when battery goes below:"))
self.notification_label.setText(_translate("HeadsetControlQt", "Send notification when battery goes below"))
self.generalGroupBox.setTitle(_translate("HeadsetControlQt", "GroupBox"))
self.generalGroupBox.setTitle(_translate("HeadsetControlQt", "Settings"))
self.label.setText(_translate("HeadsetControlQt", "Icon theme"))
self.startupLabel.setText(_translate("HeadsetControlQt", "Run at startup"))
self.notFoundLabel.setText(_translate("HeadsetControlQt", "No supported headset found."))

0 comments on commit ee47ae4

Please sign in to comment.