mirror of
https://invent.kde.org/plasma/plasma-desktop.git
synced 2026-11-03 22:59:45 -09:00
sddm-theme: Make the thing translatable
This commit is contained in:
parent
b7c80c6419
commit
641df3baa4
5 changed files with 19 additions and 17 deletions
|
|
@ -16,7 +16,7 @@ PlasmaComponents.ToolButton {
|
|||
property int currentIndex: keyboard.currentLayout
|
||||
onCurrentIndexChanged: keyboard.currentLayout = currentIndex
|
||||
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Keyboard Layout: %1", keyboard.layouts[currentIndex].longName)
|
||||
text: i18nd("plasma-desktop-sddm-theme", "Keyboard Layout: %1", keyboard.layouts[currentIndex].longName)
|
||||
visible: keyboard.layouts.length > 1
|
||||
|
||||
checkable: true
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ SessionManagementScreen {
|
|||
text: lastUserName
|
||||
visible: showUsernamePrompt
|
||||
focus: showUsernamePrompt && !lastUserName //if there's a username prompt it gets focus first, otherwise password does
|
||||
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Username")
|
||||
placeholderText: i18nd("plasma-desktop-sddm-theme", "Username")
|
||||
|
||||
onAccepted: {
|
||||
if (root.loginScreenUiVisible) {
|
||||
|
|
@ -99,7 +99,7 @@ SessionManagementScreen {
|
|||
font.pointSize: fontSize + 1
|
||||
Layout.fillWidth: true
|
||||
|
||||
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password")
|
||||
placeholderText: i18nd("plasma-desktop-sddm-theme", "Password")
|
||||
focus: !showUsernamePrompt || lastUserName
|
||||
|
||||
// Disable reveal password action because SDDM does not have the breeze icon set loaded
|
||||
|
|
@ -141,7 +141,7 @@ SessionManagementScreen {
|
|||
|
||||
PlasmaComponents3.Button {
|
||||
id: loginButton
|
||||
Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log In")
|
||||
Accessible.name: i18nd("plasma-desktop-sddm-theme", "Log In")
|
||||
Layout.preferredHeight: passwordBox.implicitHeight
|
||||
Layout.preferredWidth: text.length === 0 ? loginButton.Layout.preferredHeight : -1
|
||||
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ Item {
|
|||
notificationMessage: {
|
||||
const parts = [];
|
||||
if (capsLockState.locked) {
|
||||
parts.push(i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Caps Lock is on"));
|
||||
parts.push(i18nd("plasma-desktop-sddm-theme", "Caps Lock is on"));
|
||||
}
|
||||
if (root.notificationMessage) {
|
||||
parts.push(root.notificationMessage);
|
||||
|
|
@ -204,28 +204,28 @@ Item {
|
|||
actionItems: [
|
||||
ActionButton {
|
||||
iconSource: "system-suspend"
|
||||
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Suspend to RAM", "Sleep")
|
||||
text: i18ndc("plasma-desktop-sddm-theme", "Suspend to RAM", "Sleep")
|
||||
fontSize: Kirigami.Theme.defaultFont.pointSize + 1
|
||||
onClicked: sddm.suspend()
|
||||
enabled: sddm.canSuspend
|
||||
},
|
||||
ActionButton {
|
||||
iconSource: "system-reboot"
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Restart")
|
||||
text: i18nd("plasma-desktop-sddm-theme", "Restart")
|
||||
fontSize: Kirigami.Theme.defaultFont.pointSize + 1
|
||||
onClicked: sddm.reboot()
|
||||
enabled: sddm.canReboot
|
||||
},
|
||||
ActionButton {
|
||||
iconSource: "system-shutdown"
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Shut Down")
|
||||
text: i18nd("plasma-desktop-sddm-theme", "Shut Down")
|
||||
fontSize: Kirigami.Theme.defaultFont.pointSize + 1
|
||||
onClicked: sddm.powerOff()
|
||||
enabled: sddm.canPowerOff
|
||||
},
|
||||
ActionButton {
|
||||
iconSource: "system-user-prompt"
|
||||
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "For switching to a username and password prompt", "Other…")
|
||||
text: i18ndc("plasma-desktop-sddm-theme", "For switching to a username and password prompt", "Other…")
|
||||
fontSize: Kirigami.Theme.defaultFont.pointSize + 1
|
||||
onClicked: mainStack.push(userPromptComponent)
|
||||
enabled: true
|
||||
|
|
@ -334,7 +334,7 @@ Item {
|
|||
}
|
||||
Component.onCompleted: {
|
||||
// as we can't bind inside ListElement
|
||||
setProperty(0, "name", i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Type in Username and Password"));
|
||||
setProperty(0, "name", i18nd("plasma-desktop-sddm-theme", "Type in Username and Password"));
|
||||
setProperty(0, "icon", Qt.resolvedUrl("faces/.face.icon"))
|
||||
}
|
||||
}
|
||||
|
|
@ -348,28 +348,28 @@ Item {
|
|||
actionItems: [
|
||||
ActionButton {
|
||||
iconSource: "system-suspend"
|
||||
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Suspend to RAM", "Sleep")
|
||||
text: i18ndc("plasma-desktop-sddm-theme", "Suspend to RAM", "Sleep")
|
||||
fontSize: Kirigami.Theme.defaultFont.pointSize + 1
|
||||
onClicked: sddm.suspend()
|
||||
enabled: sddm.canSuspend
|
||||
},
|
||||
ActionButton {
|
||||
iconSource: "system-reboot"
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Restart")
|
||||
text: i18nd("plasma-desktop-sddm-theme", "Restart")
|
||||
fontSize: Kirigami.Theme.defaultFont.pointSize + 1
|
||||
onClicked: sddm.reboot()
|
||||
enabled: sddm.canReboot
|
||||
},
|
||||
ActionButton {
|
||||
iconSource: "system-shutdown"
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Shut Down")
|
||||
text: i18nd("plasma-desktop-sddm-theme", "Shut Down")
|
||||
fontSize: Kirigami.Theme.defaultFont.pointSize + 1
|
||||
onClicked: sddm.powerOff()
|
||||
enabled: sddm.canPowerOff
|
||||
},
|
||||
ActionButton {
|
||||
iconSource: "system-user-list"
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "List Users")
|
||||
text: i18nd("plasma-desktop-sddm-theme", "List Users")
|
||||
fontSize: Kirigami.Theme.defaultFont.pointSize + 1
|
||||
onClicked: mainStack.pop()
|
||||
}
|
||||
|
|
@ -444,7 +444,7 @@ Item {
|
|||
PlasmaComponents3.ToolButton {
|
||||
id: virtualKeyboardButton
|
||||
|
||||
text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Button to show/hide virtual keyboard", "Virtual Keyboard")
|
||||
text: i18ndc("plasma-desktop-sddm-theme", "Button to show/hide virtual keyboard", "Virtual Keyboard")
|
||||
icon.name: inputPanel.keyboardActive ? "input-keyboard-virtual-on" : "input-keyboard-virtual-off"
|
||||
onClicked: {
|
||||
// Otherwise the password field loses focus and virtual keyboard
|
||||
|
|
@ -511,7 +511,7 @@ Item {
|
|||
Connections {
|
||||
target: sddm
|
||||
function onLoginFailed() {
|
||||
notificationMessage = i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Login Failed")
|
||||
notificationMessage = i18nd("plasma-desktop-sddm-theme", "Login Failed")
|
||||
footer.enabled = true
|
||||
mainStack.enabled = true
|
||||
userListComponent.userList.opacity = 1
|
||||
|
|
|
|||
2
sddm-theme/Messages.sh
Normal file
2
sddm-theme/Messages.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#! /usr/bin/env bash
|
||||
$XGETTEXT `find . -name \*.qml` -L Java -o $podir/plasma-desktop-sddm-theme.pot
|
||||
|
|
@ -15,7 +15,7 @@ PlasmaComponents.ToolButton {
|
|||
|
||||
property int currentIndex: -1
|
||||
|
||||
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Desktop Session: %1", instantiator.objectAt(currentIndex).text || "")
|
||||
text: i18nd("plasma-desktop-sddm-theme", "Desktop Session: %1", instantiator.objectAt(currentIndex).text || "")
|
||||
visible: menu.count > 1
|
||||
|
||||
Component.onCompleted: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue