Mageia Bugzilla – Attachment 14084 Details for
Bug 32412
Welcome message on login screen.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to Enhace Welcome Message v4
mga-coffe-ng-addmageia4.patch (text/plain), 1.41 KB, created by
katnatek
on 2023-10-23 19:59:42 CEST
(
hide
)
Description:
Patch to Enhace Welcome Message v4
Filename:
MIME Type:
Creator:
katnatek
Created:
2023-10-23 19:59:42 CEST
Size:
1.41 KB
patch
obsolete
>Index: mga-coffee-2.0/Main.qml >=================================================================== >--- mga-coffee-2.0/Main.qml >+++ mga-coffee-2.0/Main.qml 2023-10-23 11:42:55.392018021 -0600 >@@ -98,11 +98,23 @@ > verticalAlignment: Text.AlignVCenter > height: text.implicitHeight > width: parent.width >- text: textConstants.welcomeText.arg(sddm.hostName) > wrapMode: Text.WordWrap > font.pixelSize: 18 > elide: Text.ElideRight > horizontalAlignment: Text.AlignHCenter >+ function getLocaleText() { >+ var localeText = "!\nAt " >+ switch (Qt.locale().name.substring(0,2)) { >+ case "es": { localeText = "!\nEn " }; break; >+ case "de": { localeText = "!\nUnter " }; break; >+ case "fr": { localeText = "!\nSur " }; break; >+ case "it": { localeText = "!\nIn " }; break; >+ case "nl": { localeText = "\nop " }; break; >+ } >+ return localeText >+ } >+ text: textConstants.welcomeText.arg("Mageia") + >+ ( sddm.hostName == "localhost" ? "" : getLocaleText() + sddm.hostName ) > } > > Column {
Index: mga-coffee-2.0/Main.qml =================================================================== --- mga-coffee-2.0/Main.qml +++ mga-coffee-2.0/Main.qml 2023-10-23 11:42:55.392018021 -0600 @@ -98,11 +98,23 @@ verticalAlignment: Text.AlignVCenter height: text.implicitHeight width: parent.width - text: textConstants.welcomeText.arg(sddm.hostName) wrapMode: Text.WordWrap font.pixelSize: 18 elide: Text.ElideRight horizontalAlignment: Text.AlignHCenter + function getLocaleText() { + var localeText = "!\nAt " + switch (Qt.locale().name.substring(0,2)) { + case "es": { localeText = "!\nEn " }; break; + case "de": { localeText = "!\nUnter " }; break; + case "fr": { localeText = "!\nSur " }; break; + case "it": { localeText = "!\nIn " }; break; + case "nl": { localeText = "\nop " }; break; + } + return localeText + } + text: textConstants.welcomeText.arg("Mageia") + + ( sddm.hostName == "localhost" ? "" : getLocaleText() + sddm.hostName ) } 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