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

View file

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

View file

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