Skip to content

Commit

Permalink
clarify wording for multi-select (fixes #5740)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Jul 18, 2024
1 parent ab5cc91 commit b8c3d29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ abstract class AImageListQuestForm<I, T> : AbstractOsmQuestForm<T>() {
binding.list.layoutManager = GridLayoutManager(activity, itemsPerRow)
binding.list.isNestedScrollingEnabled = false

binding.selectHintLabel.setText(if (maxSelectableItems == 1) R.string.quest_roofShape_select_one else R.string.quest_select_hint)
binding.selectHintLabel.setText(
if (maxSelectableItems == 1) R.string.quest_roofShape_select_one
else R.string.quest_multiselect_hint
)

imageSelector.listeners.add(object : ImageSelectAdapter.OnItemSelectionListener {
override fun onIndexSelected(index: Int) {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ The info you enter is directly added to OpenStreetMap in your name, without the
<!-- As in: "select ONE of the pictures below" -->
<string name="quest_roofShape_select_one">"Select one:"</string>
<!-- As in: "select any of the pictures below that fit" -->
<string name="quest_multiselect_hint">"Select any that apply:"</string>
<string name="quest_select_hint">"Select:"</string>
<!-- As in: "show more of those pictures to select an answer from -->
<string name="quest_roofShape_show_more">"Show more…"</string>
Expand Down

0 comments on commit b8c3d29

Please sign in to comment.