Skip to content

Commit

Permalink
Simplify translation
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Jan 27, 2025
1 parent 301a47e commit adfb37f
Show file tree
Hide file tree
Showing 43 changed files with 57 additions and 125 deletions.
4 changes: 2 additions & 2 deletions contents/config/config.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import org.kde.plasma.configuration 2.0

ConfigModel {
ConfigCategory {
name: i18nc("@title", "General")
name: i18n("General")
icon: "plasma"
source: "ConfigGeneral.qml"
}

ConfigCategory {
name: i18nc("@title", "Appearance")
name: i18n("Appearance")
icon: "preferences-desktop-color"
source: "ConfigAppearance.qml"
}
Expand Down
40 changes: 20 additions & 20 deletions contents/ui/ConfigAppearance.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,51 +32,51 @@ KCM.SimpleKCM {
QQC2.RadioButton {
id: useFavicon

Kirigami.FormData.label: i18nc("@title:group", "Icon:")
text: i18nc("@option:radio", "Use website favicon")
Kirigami.FormData.label: i18n("Icon:")
text: i18n("Use website favicon")
QQC2.ButtonGroup.group: iconGroup
}

// Default icon options
QQC2.RadioButton {
id: useDefaultIcon

text: i18nc("@option:radio", "Default adaptive icon")
text: i18n("Default adaptive icon")
QQC2.ButtonGroup.group: iconGroup
}

QQC2.RadioButton {
id: useDefaultDarkIcon

text: i18nc("@option:radio", "Default dark icon")
text: i18n("Default dark icon")
QQC2.ButtonGroup.group: iconGroup
}

QQC2.RadioButton {
id: useDefaultLightIcon

text: i18nc("@option:radio", "Default light icon")
text: i18n("Default light icon")
QQC2.ButtonGroup.group: iconGroup
}

QQC2.RadioButton {
id: useOutlinedChatIcon

text: i18nc("@option:radio", "Outlined chat's icon")
text: i18n("Outlined chat's icon")
QQC2.ButtonGroup.group: iconGroup
}

QQC2.RadioButton {
id: useFilledChatIcon

text: i18nc("@option:radio", "Filled chat's icon")
text: i18n("Filled chat's icon")
QQC2.ButtonGroup.group: iconGroup
}

QQC2.RadioButton {
id: useColorfulChatIcon

text: i18nc("@option:radio", "Colorful chat's icon")
text: i18n("Colorful chat's icon")
QQC2.ButtonGroup.group: iconGroup
}

Expand All @@ -88,7 +88,7 @@ KCM.SimpleKCM {

// Header Options section
QQC2.Label {
Kirigami.FormData.label: i18nc("@title:group", "Header Options")
Kirigami.FormData.label: i18n("Header Options")
font.bold: true
Layout.fillWidth: true
}
Expand All @@ -97,15 +97,15 @@ KCM.SimpleKCM {
QQC2.CheckBox {
id: hideHeader

text: i18nc("@option:check", "Hide header")
text: i18n("Hide header")
checked: plasmoid.configuration.hideHeader
onCheckedChanged: plasmoid.configuration.hideHeader = checked
Layout.fillWidth: true
}

QQC2.CheckBox {
id: autoHideHeader
text: i18nc("@option:check", "Auto-hide header (show on mouse hover)")
text: i18n("Auto-hide header (show on mouse hover)")
checked: plasmoid.configuration.autoHideHeader
onCheckedChanged: plasmoid.configuration.autoHideHeader = checked
enabled: !hideHeader.checked
Expand All @@ -116,7 +116,7 @@ KCM.SimpleKCM {
QQC2.CheckBox {
id: hideKeepOpen

text: i18nc("@option:check", 'Hide "Keep Open" button')
text: i18n("Hide Keep Open button")
checked: plasmoid.configuration.hideKeepOpen
onCheckedChanged: plasmoid.configuration.hideKeepOpen = checked
Layout.fillWidth: true
Expand All @@ -125,7 +125,7 @@ KCM.SimpleKCM {
QQC2.CheckBox {
id: hideCustomURL

text: i18nc("@option:check", 'Hide "Custom URL" button')
text: i18n("Hide Custom URL button")
checked: plasmoid.configuration.hideCustomURL
onCheckedChanged: plasmoid.configuration.hideCustomURL = checked
Layout.fillWidth: true
Expand All @@ -134,7 +134,7 @@ KCM.SimpleKCM {
QQC2.CheckBox {
id: hidePrintButton

text: i18nc("@option:check", 'Hide "Auto-Hide" button')
text: i18n("Hide Auto-Hide button")
checked: plasmoid.configuration.hidePrintButton
onCheckedChanged: plasmoid.configuration.hidePrintButton = checked
Layout.fillWidth: true
Expand All @@ -143,7 +143,7 @@ KCM.SimpleKCM {
QQC2.CheckBox {
id: hideCloseButton

text: i18nc("@option:check", 'Hide "Close" button')
text: i18n("Hide Close button")
checked: plasmoid.configuration.hideCloseButton
onCheckedChanged: plasmoid.configuration.hideCloseButton = checked
Layout.fillWidth: true
Expand All @@ -152,7 +152,7 @@ KCM.SimpleKCM {
QQC2.CheckBox {
id: hideHomeButton

text: i18nc("@option:check", 'Hide "Home" button')
text: i18n("Hide Home button")
checked: plasmoid.configuration.hideHomeButton
onCheckedChanged: plasmoid.configuration.hideHomeButton = checked
Layout.fillWidth: true
Expand All @@ -161,7 +161,7 @@ KCM.SimpleKCM {
QQC2.CheckBox {
id: hideDownloadButton

text: i18nc("@option:check", 'Hide "Download" button')
text: i18n("Hide Download button")
checked: plasmoid.configuration.hideDownloadButton
onCheckedChanged: plasmoid.configuration.hideDownloadButton = checked
Layout.fillWidth: true
Expand All @@ -170,7 +170,7 @@ KCM.SimpleKCM {
QQC2.CheckBox {
id: hideNavigationButtons

text: i18nc("@option:check", 'Hide navigation buttons')
text: i18n("Hide navigation buttons")
checked: plasmoid.configuration.hideNavigationButtons
onCheckedChanged: plasmoid.configuration.hideNavigationButtons = checked
Layout.fillWidth: true
Expand All @@ -179,7 +179,7 @@ KCM.SimpleKCM {
QQC2.CheckBox {
id: hideRefreshButton

text: i18nc("@option:check", 'Hide refresh button')
text: i18n("Hide refresh button")
checked: plasmoid.configuration.hideRefreshButton
onCheckedChanged: plasmoid.configuration.hideRefreshButton = checked
Layout.fillWidth: true
Expand All @@ -188,7 +188,7 @@ KCM.SimpleKCM {
// Information message about hidden functionality
Kirigami.InlineMessage {
Layout.fillWidth: true
text: i18nc("@info:tooltip", 'You can still use the "Go back to ..." and "Keep open" actions by right-clicking the widget icon.')
text: i18n("You can still use the Go back to... and Keep open actions by right-clicking the widget icon.")
visible: hideHeader.checked || hideGoToButton.checked || hideKeepOpen.checked
}

Expand Down
Loading

0 comments on commit adfb37f

Please sign in to comment.