removed equipmentProfileValuesCount from intl

This commit is contained in:
Vadim 2023-03-30 14:17:59 +03:00
parent eba64df971
commit 078b17824d
3 changed files with 7 additions and 14 deletions

View file

@ -37,14 +37,6 @@
"equipment": "Equipment",
"equipmentProfileName": "Equipment profile name",
"equipmentProfileNameHint": "Praktica MTL5B",
"equipmentProfileValuesCount" : "{count, plural, zero{0 values} one{1 value} other{{count} values}}",
"@equipmentProfileValuesCount": {
"placeholders": {
"count": {
"type": "int"
}
}
},
"equipmentProfileAllValues": "All",
"apertureValues": "Aperture values",
"apertureValuesFilterDescription": "Select the range of aperture values to display. This is usually determined by the lens you are using.",
@ -54,6 +46,7 @@
"shutterSpeedValuesFilterDescription": "Select the range of shutter speed values to display. This is usually determined by the camera body you are using.",
"isoValues": "ISO values",
"isoValuesFilterDescription": "Select the ISO values to display. These may be your most commonly used values or those supported by your camera.",
"equipmentProfile": "Equipment profile",
"equipmentProfiles": "Equipment profiles",
"general": "General",
"keepScreenOn": "Keep screen on",

View file

@ -99,14 +99,14 @@ class _EquipmentProfilePicker extends StatelessWidget {
@override
Widget build(BuildContext context) {
return AnimatedDialogPicker<EquipmentProfileData>(
title: S.of(context).equipmentProfiles,
title: S.of(context).equipmentProfile,
selectedValue: selectedValue,
values: values,
itemTitleBuilder: (_, value) => Text(value.id.isEmpty ? S.of(context).none : value.name),
onChanged: onChanged,
closedChild: ReadingValueContainer.singleValue(
value: ReadingValue(
label: S.of(context).equipmentProfiles,
label: S.of(context).equipmentProfile,
value: selectedValue.id.isEmpty ? S.of(context).none : selectedValue.name,
),
),

View file

@ -38,7 +38,7 @@ class EquipmentListTiles extends StatelessWidget {
values: isoValues,
valuesCount: selectedIsoValues.length == isoValues.length
? S.of(context).equipmentProfileAllValues
: S.of(context).equipmentProfileValuesCount(selectedIsoValues.length),
: selectedIsoValues.length.toString(),
selectedValues: selectedIsoValues,
rangeSelect: false,
onChanged: onIsoValuesSelecred,
@ -50,7 +50,7 @@ class EquipmentListTiles extends StatelessWidget {
values: ndValues,
valuesCount: selectedNdValues.length == ndValues.length
? S.of(context).equipmentProfileAllValues
: S.of(context).equipmentProfileValuesCount(selectedNdValues.length),
: selectedNdValues.length.toString(),
selectedValues: selectedNdValues,
rangeSelect: false,
onChanged: onNdValuesSelected,
@ -62,7 +62,7 @@ class EquipmentListTiles extends StatelessWidget {
values: apertureValues,
valuesCount: selectedApertureValues.length == apertureValues.length
? S.of(context).equipmentProfileAllValues
: S.of(context).equipmentProfileValuesCount(selectedApertureValues.length),
: selectedApertureValues.length.toString(),
selectedValues: selectedApertureValues,
rangeSelect: true,
onChanged: onApertureValuesSelected,
@ -74,7 +74,7 @@ class EquipmentListTiles extends StatelessWidget {
values: shutterSpeedValues,
valuesCount: selectedShutterSpeedValues.length == shutterSpeedValues.length
? S.of(context).equipmentProfileAllValues
: S.of(context).equipmentProfileValuesCount(selectedShutterSpeedValues.length),
: selectedShutterSpeedValues.length.toString(),
selectedValues: selectedShutterSpeedValues,
rangeSelect: true,
onChanged: onShutterSpeedValuesSelected,