Make some English strings sentence case (#2338)

This commit is contained in:
Imran Remtulla
2025-07-02 20:40:09 -04:00
parent 0f803b963f
commit cdff0613b3
4 changed files with 17 additions and 8 deletions

View File

@ -37,7 +37,7 @@
"cancelled": "Cancelled", "cancelled": "Cancelled",
"appAlreadyAdded": "App already added", "appAlreadyAdded": "App already added",
"alreadyUpToDateQuestion": "App already up to date?", "alreadyUpToDateQuestion": "App already up to date?",
"addApp": "Add App", "addApp": "Add app",
"appSourceURL": "App source URL", "appSourceURL": "App source URL",
"error": "Error", "error": "Error",
"add": "Add", "add": "Add",
@ -88,7 +88,7 @@
"author": "Author", "author": "Author",
"upToDateApps": "Up to date apps", "upToDateApps": "Up to date apps",
"nonInstalledApps": "Non-installed apps", "nonInstalledApps": "Non-installed apps",
"importExport": "Import/Export", "importExport": "Import/export",
"settings": "Settings", "settings": "Settings",
"exportedTo": "Exported to {}", "exportedTo": "Exported to {}",
"obtainiumExport": "Obtainium export", "obtainiumExport": "Obtainium export",

View File

@ -312,7 +312,10 @@ class AddAppPageState extends State<AddAppPage> {
context: context, context: context,
builder: (BuildContext ctx) { builder: (BuildContext ctx) {
return SelectionModal( return SelectionModal(
title: tr('selectX', args: [plural('source', 2)]), title: tr(
'selectX',
args: [plural('source', 2).toLowerCase()],
),
entries: sourceStrings, entries: sourceStrings,
selectedByDefault: true, selectedByDefault: true,
onlyOneSelectionAllowed: false, onlyOneSelectionAllowed: false,

View File

@ -272,7 +272,9 @@ class _ImportExportPageState extends State<ImportExportPage> {
showMessage( showMessage(
tr( tr(
'importedX', 'importedX',
args: [plural('apps', selectedUrls.length)], args: [
plural('apps', selectedUrls.length).toLowerCase(),
],
), ),
context, context,
); );
@ -339,7 +341,7 @@ class _ImportExportPageState extends State<ImportExportPage> {
showMessage( showMessage(
tr( tr(
'importedX', 'importedX',
args: [plural('apps', selectedUrls.length)], args: [plural('apps', selectedUrls.length).toLowerCase()],
), ),
context, context,
); );
@ -512,7 +514,11 @@ class _ImportExportPageState extends State<ImportExportPage> {
return SelectionModal( return SelectionModal(
title: tr( title: tr(
'selectX', 'selectX',
args: [tr('source')], args: [
tr(
'source',
).toLowerCase(),
],
), ),
entries: sourceStrings, entries: sourceStrings,
selectedByDefault: false, selectedByDefault: false,

View File

@ -138,7 +138,7 @@ class _SettingsPageState extends State<SettingsPage> {
ColorPickerType.wheel: tr('custom'), ColorPickerType.wheel: tr('custom'),
}, },
title: Text( title: Text(
tr('selectX', args: [tr('colour')]), tr('selectX', args: [tr('colour').toLowerCase()]),
style: Theme.of(context).textTheme.titleLarge, style: Theme.of(context).textTheme.titleLarge,
), ),
wheelDiameter: 192, wheelDiameter: 192,
@ -180,7 +180,7 @@ class _SettingsPageState extends State<SettingsPage> {
var colorPicker = ListTile( var colorPicker = ListTile(
dense: true, dense: true,
contentPadding: EdgeInsets.zero, contentPadding: EdgeInsets.zero,
title: Text(tr('selectX', args: [tr('colour')])), title: Text(tr('selectX', args: [tr('colour').toLowerCase()])),
subtitle: Text( subtitle: Text(
"${ColorTools.nameThatColor(settingsProvider.themeColor)} " "${ColorTools.nameThatColor(settingsProvider.themeColor)} "
"(${ColorTools.materialNameAndCode(settingsProvider.themeColor, colorSwatchNameMap: colorsNameMap)})", "(${ColorTools.materialNameAndCode(settingsProvider.themeColor, colorSwatchNameMap: colorsNameMap)})",