mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
Modified SitesPanel.qml to allow translation. Reducing spacing from 80 to 40
Need dynamic spacing to fit window width on language changes.
This commit is contained in:
parent
d84918088d
commit
a6a33b18da
@ -4748,12 +4748,14 @@ Useful if you have accidentally changed some settings.</source>
|
||||
<message>
|
||||
<location/>
|
||||
<source>button:reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher </translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>buttongroup:10</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher </translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
@ -4900,7 +4902,7 @@ Cette valeur doit être ajustée en fonction de la nacelle et du servo. Vous dev
|
||||
<location/>
|
||||
<source>buttongroup:1</source>
|
||||
<translatorcomment>Pas toucher !</translatorcomment>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
@ -7635,7 +7637,8 @@ Useful if you have accidentally changed some settings.</source>
|
||||
<message>
|
||||
<location/>
|
||||
<source>buttongroup:99</source>
|
||||
<translation>Pas toucher</translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
@ -9303,33 +9306,38 @@ persistant de la carte, et ensuite ferme la boite de dialogue.</translation>
|
||||
<message>
|
||||
<location/>
|
||||
<source>lblDevName</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>DeviceID</source>
|
||||
<translatorcomment>Champs. Pas toucher ?</translatorcomment>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>lblHWRev</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>RW</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>BL Version</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>MaxCodeSize</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
@ -9409,32 +9417,38 @@ persistant de la carte, et ensuite ferme la boite de dialogue.</translation>
|
||||
<message>
|
||||
<location/>
|
||||
<source>lblBrdName</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>lblDescription</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>lblBuildDate</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>lblGitTag</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>lblCRC</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>lblCertified</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
@ -9444,12 +9458,14 @@ persistant de la carte, et ensuite ferme la boite de dialogue.</translation>
|
||||
<message>
|
||||
<location/>
|
||||
<source>lblDescritpionL</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
<source>lblCertifiedL</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translatorcomment>Pas toucher</translatorcomment>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location/>
|
||||
@ -10760,6 +10776,36 @@ La carte sera redémarrée et tous les paramètres effacés</translation>
|
||||
<source>OpenPilot Websites</source>
|
||||
<translation>Sites Web OpenPilot</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+20"/>
|
||||
<source>Home</source>
|
||||
<translation type="unfinished">Site Principal</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+1"/>
|
||||
<source>Wiki</source>
|
||||
<translation type="unfinished">Wiki</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+1"/>
|
||||
<source>Store</source>
|
||||
<translation type="unfinished">Boutique</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+1"/>
|
||||
<source>Forums</source>
|
||||
<translation type="unfinished">Forums</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+1"/>
|
||||
<source>Code Reviews</source>
|
||||
<translation type="unfinished">Changements Code</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+1"/>
|
||||
<source>Progress Tracker</source>
|
||||
<translation type="unfinished">Suivi Progression</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>CcpmConfigWidget</name>
|
||||
@ -12584,4 +12630,37 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Retour à l'agencement par défaut</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>main</name>
|
||||
<message>
|
||||
<location filename="../../../src/plugins/welcome/qml/main.qml" line="+62"/>
|
||||
<source>Flight Data</source>
|
||||
<translation type="unfinished">Données de Vol</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+6"/>
|
||||
<source>Configuration</source>
|
||||
<translation type="unfinished">Configuration</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+6"/>
|
||||
<source>System</source>
|
||||
<translation type="unfinished">Système</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+6"/>
|
||||
<source>Scopes</source>
|
||||
<translation type="unfinished">Graphiques</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+6"/>
|
||||
<source>HITL</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+6"/>
|
||||
<source>Firmware</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -21,12 +21,25 @@ Item {
|
||||
|
||||
ListModel {
|
||||
id: sitesModel
|
||||
ListElement { title: "Home"; link: "http://www.openpilot.org" }
|
||||
ListElement { title: "Wiki"; link: "http://wiki.openpilot.org" }
|
||||
ListElement { title: "Store"; link: "http://www.openpilot.org/hardware/get-hardware/" }
|
||||
ListElement { title: "Forums"; link: "http://forums.openpilot.org" }
|
||||
ListElement { title: "Code Reviews"; link: "http://git.openpilot.org" }
|
||||
ListElement { title: "Progress Tracker"; link: "http://progress.openpilot.org" }
|
||||
ListElement { link: "http://www.openpilot.org" }
|
||||
ListElement { link: "http://wiki.openpilot.org" }
|
||||
ListElement { link: "http://www.openpilot.org/hardware/get-hardware/" }
|
||||
ListElement { link: "http://forums.openpilot.org" }
|
||||
ListElement { link: "http://git.openpilot.org" }
|
||||
ListElement { link: "http://progress.openpilot.org" }
|
||||
function title(index){
|
||||
if (title["text"] === undefined) {
|
||||
title.text = [
|
||||
qsTr("Home"),
|
||||
qsTr("Wiki"),
|
||||
qsTr("Store"),
|
||||
qsTr("Forums"),
|
||||
qsTr("Code Reviews"),
|
||||
qsTr("Progress Tracker")
|
||||
]
|
||||
}
|
||||
return title.text[index]
|
||||
}
|
||||
}
|
||||
|
||||
ListView {
|
||||
@ -36,10 +49,10 @@ Item {
|
||||
anchors { top: parent.top; bottom: parent.bottom }
|
||||
orientation: ListView.Horizontal
|
||||
model: sitesModel
|
||||
spacing: 80
|
||||
spacing: 40 // Need dynamic spacing
|
||||
|
||||
delegate: Text {
|
||||
text: title
|
||||
text: view.model.title(index)
|
||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||
font {
|
||||
pointSize: 12
|
||||
|
Loading…
x
Reference in New Issue
Block a user