calamares: slideshow: update images, texts and layout; provide a update-ts.sh script to update translation files

This commit is contained in:
Silvan Calarco 2022-10-09 12:37:43 +02:00
parent 5d7b02ca08
commit 0f7d349b7a
8 changed files with 48 additions and 34 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 KiB

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.1" language="fr"> <TS version="2.1" language="it">
<context> <context>
<name>show</name> <name>show</name>
<message> <message>
@ -26,18 +26,18 @@
</message> </message>
<message> <message>
<location filename="../show.qml" line="91"/> <location filename="../show.qml" line="91"/>
<source>openmamba with LXDE</source> <source>openmamba with LXQt</source>
<translation>openmamba con LXDE</translation> <translation>openmamba con LXQt</translation>
</message> </message>
<message> <message>
<location filename="../show.qml" line="92"/> <location filename="../show.qml" line="92"/>
<source>openmamba system with a simple and light desktop.</source> <source>openmamba with a lightweight desktop environment.</source>
<translation>Il sistema openmamba con un desktop semplice e leggero.</translation> <translation>openmamba con un ambiente desktop leggero.</translation>
</message> </message>
<message> <message>
<location filename="../show.qml" line="93"/> <location filename="../show.qml" line="93"/>
<source>For server installation or desktop on obsolete PC, embedded systems, tablet, single-board PC.</source> <source>For server installations or desktop on old PCs, embedded systems, tablet, single-board PC.</source>
<translation>Per installazioni di server o di desktop su PC obsoleti, sistemi embedded, tablet e computer single-board.</translation> <translation>Per installazioni di server o di desktop su PC datati, sistemi embedded, tablets e PC single-board.</translation>
</message> </message>
</context> </context>
</TS> </TS>

View File

@ -32,67 +32,75 @@ Presentation
Slide { Slide {
Image { Image {
id: background01 id: background1
source: "background.jpg" source: "background.jpg"
width: 1920; height: 1200 width: 1920; height: 1200
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
anchors.centerIn: parent anchors.centerIn: parent
} }
Image {
id: background1
source: "desktop-kde-300x225.jpg"
width: 300; height: 225
fillMode: Image.PreserveAspectFit
anchors.centerIn: parent
}
Text { Text {
anchors.horizontalCenter: background1.horizontalCenter id: text1
anchors.top: parent.top anchors.horizontalCenter: parent.horizontalCenter
y: -80
text: "<h2>" + qsTr("Thanks for choosing openmamba!") + "</h2><br/><br/>" text: "<h2>" + qsTr("Thanks for choosing openmamba!") + "</h2><br/><br/>"
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Text.Center horizontalAlignment: Text.Center
} }
Image {
id: image1
source: "desktop-kde.png"
width: 500
fillMode: Image.PreserveAspectFit
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: text1.bottom
}
Text { Text {
anchors.horizontalCenter: background1.horizontalCenter width:650
anchors.top: background1.bottom anchors.horizontalCenter: image1.horizontalCenter
anchors.top: image1.bottom
text: "<br/><b>" + qsTr("openmamba with KDE Plasma") + "</b><br/><br/>" + text: "<br/><b>" + qsTr("openmamba with KDE Plasma") + "</b><br/><br/>" +
qsTr("The most evolved and complete desktop system of openmamba, KDE Plasma based.") + "<br/>"+ qsTr("The most evolved and complete desktop system of openmamba, KDE Plasma based.") + "<br/>"+
qsTr("For every user who wants a modern, multimedia and productive desktop.") + "<br/>" qsTr("For every user who wants a modern, multimedia and productive desktop.") + "<br/>"
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Text.Center horizontalAlignment: Text.Center
font.pointSize: 10
} }
} }
Slide { Slide {
Image { Image {
id: background02 id: background2
source: "background.jpg" source: "background.jpg"
width: 1920; height: 1200 width: 1920; height: 1200
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
anchors.centerIn: parent anchors.centerIn: parent
} }
Image {
id: background2
source: "desktop-lxde-300x225.jpg"
width: 300; height: 225
fillMode: Image.PreserveAspectFit
anchors.centerIn: parent
}
Text { Text {
anchors.horizontalCenter: background2.horizontalCenter id: text2
anchors.top: parent.top anchors.horizontalCenter: parent.horizontalCenter
y: -80
text: "<h2>" + qsTr("Thanks for choosing openmamba!") + "</h2><br/><br/>" text: "<h2>" + qsTr("Thanks for choosing openmamba!") + "</h2><br/><br/>"
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Text.Center horizontalAlignment: Text.Center
} }
Image {
id: image2
source: "desktop-lxqt.png"
width: 500
fillMode: Image.PreserveAspectFit
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: text2.bottom
}
Text { Text {
anchors.horizontalCenter: background2.horizontalCenter width:650
anchors.top: background2.bottom anchors.horizontalCenter: image2.horizontalCenter
text: "<br/><b>" + qsTr("openmamba with LXDE") + "</b><br/><br/>" + anchors.top: image2.bottom
qsTr("openmamba system with a simple and light desktop.") + "<br/>" + text: "<br/><b>" + qsTr("openmamba with LXQt") + "</b><br/><br/>" +
qsTr("For server installation or desktop on obsolete PC, embedded systems, tablet, single-board PC.") + "<br/>" qsTr("openmamba with a lightweight desktop environment.") + "<br/>" +
qsTr("For server installations or desktop on old PCs, embedded systems, tablet, single-board PC.") + "<br/>"
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Text.Center horizontalAlignment: Text.Center
font.pointSize: 10
} }
} }

6
update-ts.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
LANGS="it"
for lang in $LANGS; do
lupdate-qt5 -no-obsolete calamares -target-language ${lang} -ts calamares/etc/calamares/branding/openmamba/lang/calamares-openmamba_${lang}.ts
done