Mageia Bugzilla – Attachment 14079 Details for
Bug 32412
Welcome message on login screen.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Alternative patch to show Welcome Mageia in hostname
mga-coffe-ng-addmageia2.patch (text/plain), 1.47 KB, created by
katnatek
on 2023-10-22 04:20:23 CEST
(
hide
)
Description:
Alternative patch to show Welcome Mageia in hostname
Filename:
MIME Type:
Creator:
katnatek
Created:
2023-10-22 04:20:23 CEST
Size:
1.47 KB
patch
obsolete
>Index: mga-coffee-2.0/Main.qml >=================================================================== >--- mga-coffee-2.0/Main.qml >+++ mga-coffee-2.0/Main.qml 2023-10-21 19:24:16.595073926 -0600 >@@ -98,11 +98,21 @@ > verticalAlignment: Text.AlignVCenter > height: text.implicitHeight > width: parent.width >- text: textConstants.welcomeText.arg(sddm.hostName) >+ text:textConstants.welcomeText.arg("Mageia!") > wrapMode: Text.WordWrap > font.pixelSize: 18 > elide: Text.ElideRight > horizontalAlignment: Text.AlignHCenter >+ //i18nd : https://doc.qt.io/qt-5/qtquick-internationalization.html >+ Component.onCompleted: { >+ switch (Qt.locale().name.substring(0,2)) { >+ case "fr": text = text+( sddm.hostName == "localhost" ? "" : "\n dans "+sddm.hostName);break; >+ case "es": text = text+( sddm.hostName == "localhost" ? "" : "\n en "+sddm.hostName);break; >+ case "it": text = text+( sddm.hostName == "localhost" ? "" : "\n in "+sddm.hostName);break; >+ case "de": text = text+( sddm.hostName == "localhost" ? "" : "\n unter "+sddm.hostName);break; >+ default: text = text+( sddm.hostName == "localhost" ? "" : "\n in "+sddm.hostName);break; >+ } >+ } > } > > Column {
Index: mga-coffee-2.0/Main.qml =================================================================== --- mga-coffee-2.0/Main.qml +++ mga-coffee-2.0/Main.qml 2023-10-21 19:24:16.595073926 -0600 @@ -98,11 +98,21 @@ verticalAlignment: Text.AlignVCenter height: text.implicitHeight width: parent.width - text: textConstants.welcomeText.arg(sddm.hostName) + text:textConstants.welcomeText.arg("Mageia!") wrapMode: Text.WordWrap font.pixelSize: 18 elide: Text.ElideRight horizontalAlignment: Text.AlignHCenter + //i18nd : https://doc.qt.io/qt-5/qtquick-internationalization.html + Component.onCompleted: { + switch (Qt.locale().name.substring(0,2)) { + case "fr": text = text+( sddm.hostName == "localhost" ? "" : "\n dans "+sddm.hostName);break; + case "es": text = text+( sddm.hostName == "localhost" ? "" : "\n en "+sddm.hostName);break; + case "it": text = text+( sddm.hostName == "localhost" ? "" : "\n in "+sddm.hostName);break; + case "de": text = text+( sddm.hostName == "localhost" ? "" : "\n unter "+sddm.hostName);break; + default: text = text+( sddm.hostName == "localhost" ? "" : "\n in "+sddm.hostName);break; + } + } } Column {
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32412
:
14071
|
14072
|
14073
|
14074
|
14075
|
14077
|
14079
|
14081
|
14082
|
14084
|
14142
|
14146