mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-12 00:32:17 -04:00
Added plural support (#1750)
* Update it.json * Enhance SettingsSliderRow: add resetText property and update reset button styling * added i18n strings * adjust reset button width to be dynamic based on content size * added i18n strings * Update template.json * reverted changes * Update it.json * Update template.json * Update NotificationSettings.qml * added plurar support * Update it.json * Update ThemeColorsTab.qml
This commit is contained in:
@@ -305,7 +305,9 @@ Item {
|
||||
const prefs = cfg?.screenPreferences || ["all"];
|
||||
if (prefs.includes("all") || (typeof prefs[0] === "string" && prefs[0] === "all"))
|
||||
return I18n.tr("All displays");
|
||||
return I18n.tr("%1 display(s)").replace("%1", prefs.length);
|
||||
return prefs.length === 1
|
||||
? I18n.tr("%1 display").arg(prefs.length)
|
||||
: I18n.tr("%1 displays").arg(prefs.length);
|
||||
}
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
color: Theme.surfaceVariantText
|
||||
|
||||
Reference in New Issue
Block a user