Skip to content

Commit 79a7f85

Browse files
committed
remove text that can be confusing (fixes #6810)
1 parent 55970f1 commit 79a7f85

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

app/src/commonMain/composeResources/values/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,6 @@ If there are no signs along the whole street which apply for the highlighted sec
13281328
<string name="quest_openingHours_add_off_days">Add off days</string>
13291329
<string name="quest_openingHours_delete">Delete</string>
13301330
<string name="quest_openingHours_off_day">Off day</string>
1331-
<string name="quest_openingHours_unspecified_range">Not specified</string>
13321331
<string name="quest_openingHours_chooseMonthsTitle">Select months</string>
13331332
<string name="quest_openingHours_chooseWeekdaysTitle">Select days of the week</string>
13341333
<string name="quest_openingHours_chooseStartTimeTitle">Select start time</string>

app/src/commonMain/kotlin/de/westnordost/streetcomplete/ui/common/opening_hours/MonthsOrDateSelectorText.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ private fun getMonthsString(
6262
locale: Locale,
6363
layoutDirection: LayoutDirection,
6464
): String {
65-
if (months.isEmpty()) {
66-
return "(" + stringResource(Res.string.quest_openingHours_unspecified_range) + ")"
67-
}
65+
if (months.isEmpty()) return ""
6866
val style = DateTimeTextSymbolStyle.Short
6967

7068
return months

app/src/commonMain/kotlin/de/westnordost/streetcomplete/ui/common/opening_hours/WeekdayAndHolidaySelectorsText.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ private fun getWeekdaysAndHolidaysString(
7474
locale: Locale,
7575
layoutDirection: LayoutDirection,
7676
): String {
77-
if (weekdays.isEmpty() && holidays.isEmpty()) {
78-
return "(" + stringResource(Res.string.quest_openingHours_unspecified_range) + ")"
79-
}
77+
if (weekdays.isEmpty() && holidays.isEmpty()) return ""
8078

8179
val style = DateTimeTextSymbolStyle.Short
8280
val sb = StringBuilder()

0 commit comments

Comments
 (0)