Skip to content

Commit

Permalink
Tweak shift piece method label
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Jul 18, 2024
1 parent 64160cb commit 2f1f9c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/src/view/settings/board_behavior_settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class _Body extends ConsumerWidget {
settingsLabel: Text(context.l10n.preferencesHowDoYouMovePieces),
settingsValue:
pieceShiftMethodl10n(context, boardPrefs.pieceShiftMethod),
showCupertinoTrailingValue: false,
onTap: () {
if (Theme.of(context).platform == TargetPlatform.android) {
showChoicePicker(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ String pieceShiftMethodl10n(
// This is called 'Either' in the Web UI, but in the app we might display this string
// without having the other values as context, so we need to be more explicit.
// TODO add this to mobile translations
PieceShiftMethod.either => 'Click or drag pieces',
PieceShiftMethod.either => 'Either click or drag',
PieceShiftMethod.drag => context.l10n.preferencesDragPiece,
// TODO This string uses 'click', we might want to use 'tap' instead in a mobile-specific translation
PieceShiftMethod.tapTwoSquares => context.l10n.preferencesClickTwoSquares,
Expand Down

0 comments on commit 2f1f9c8

Please sign in to comment.