1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

Localization framework

This commit is contained in:
bbedward
2025-10-06 16:00:50 -04:00
parent 2ccec607a0
commit 5460c20ac3
79 changed files with 5356 additions and 396 deletions

View File

@@ -58,14 +58,14 @@ FocusScope {
spacing: Theme.spacingXS
StyledText {
text: "Plugin Management"
text: qsTr("Plugin Management")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
}
StyledText {
text: "Manage and configure plugins for extending DMS functionality"
text: qsTr("Manage and configure plugins for extending DMS functionality")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
@@ -98,7 +98,7 @@ FocusScope {
}
StyledText {
text: "DMS Plugin Manager Unavailable"
text: qsTr("DMS Plugin Manager Unavailable")
font.pixelSize: Theme.fontSizeSmall
color: Theme.warning
font.weight: Font.Medium
@@ -107,7 +107,7 @@ FocusScope {
}
StyledText {
text: "The DMS_SOCKET environment variable is not set or the socket is unavailable. Automated plugin management requires the DMS_SOCKET."
text: qsTr("The DMS_SOCKET environment variable is not set or the socket is unavailable. Automated plugin management requires the DMS_SOCKET.")
font.pixelSize: Theme.fontSizeSmall - 1
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -121,7 +121,7 @@ FocusScope {
spacing: Theme.spacingM
DankButton {
text: "Browse"
text: qsTr("Browse")
iconName: "store"
enabled: DMSService.dmsAvailable
onClicked: {
@@ -130,7 +130,7 @@ FocusScope {
}
DankButton {
text: "Scan"
text: qsTr("Scan")
iconName: "refresh"
onClicked: {
pluginsTab.isRefreshingPlugins = true
@@ -143,7 +143,7 @@ FocusScope {
}
DankButton {
text: "Create Dir"
text: qsTr("Create Dir")
iconName: "create_new_folder"
onClicked: {
PluginService.createPluginDirectory()
@@ -169,7 +169,7 @@ FocusScope {
spacing: Theme.spacingM
StyledText {
text: "Plugin Directory"
text: qsTr("Plugin Directory")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
@@ -183,7 +183,7 @@ FocusScope {
}
StyledText {
text: "Place plugin directories here. Each plugin should have a plugin.json manifest file."
text: qsTr("Place plugin directories here. Each plugin should have a plugin.json manifest file.")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
@@ -207,7 +207,7 @@ FocusScope {
spacing: Theme.spacingM
StyledText {
text: "Available Plugins"
text: qsTr("Available Plugins")
font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText
font.weight: Font.Medium
@@ -782,7 +782,7 @@ FocusScope {
StyledText {
id: headerText
text: "Browse Plugins"
text: qsTr("Browse Plugins")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -831,7 +831,7 @@ FocusScope {
}
StyledText {
text: "Install plugins from the DMS plugin registry"
text: qsTr("Install plugins from the DMS plugin registry")
font.pixelSize: Theme.fontSizeSmall
color: Theme.outline
width: parent.width
@@ -853,7 +853,7 @@ FocusScope {
showClearButton: true
textColor: Theme.surfaceText
font.pixelSize: Theme.fontSizeMedium
placeholderText: "Search plugins..."
placeholderText: qsTr("Search plugins...")
text: pluginBrowserModal.searchQuery
focus: true
ignoreLeftRightKeys: true
@@ -889,7 +889,7 @@ FocusScope {
}
StyledText {
text: "Loading plugins..."
text: qsTr("Loading plugins...")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
anchors.horizontalCenter: parent.horizontalCenter
@@ -969,7 +969,7 @@ FocusScope {
StyledText {
id: firstPartyText
anchors.centerIn: parent
text: "official"
text: qsTr("official")
font.pixelSize: Theme.fontSizeSmall - 2
color: Theme.primary
font.weight: Font.Medium
@@ -989,7 +989,7 @@ FocusScope {
StyledText {
id: thirdPartyText
anchors.centerIn: parent
text: "3rd party"
text: qsTr("3rd party")
font.pixelSize: Theme.fontSizeSmall - 2
color: Theme.warning
font.weight: Font.Medium
@@ -1113,7 +1113,7 @@ FocusScope {
}
StyledText {
text: "No plugins found"
text: qsTr("No plugins found")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText
anchors.horizontalCenter: parent.horizontalCenter
@@ -1162,7 +1162,7 @@ FocusScope {
}
StyledText {
text: "Third-Party Plugin Warning"
text: qsTr("Third-Party Plugin Warning")
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
@@ -1183,19 +1183,19 @@ FocusScope {
spacing: Theme.spacingS
StyledText {
text: "• Plugins may contain bugs or security issues"
text: qsTr("• Plugins may contain bugs or security issues")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: "• Review code before installation when possible"
text: qsTr("• Review code before installation when possible")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
StyledText {
text: "• Install only from trusted sources"
text: qsTr("• Install only from trusted sources")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
@@ -1211,13 +1211,13 @@ FocusScope {
spacing: Theme.spacingM
DankButton {
text: "Cancel"
text: qsTr("Cancel")
iconName: "close"
onClicked: thirdPartyConfirmModal.close()
}
DankButton {
text: "I Understand"
text: qsTr("I Understand")
iconName: "check"
onClicked: {
SessionData.setShowThirdPartyPlugins(true)