1
0
Fork 0

For #4455 - Rename history headers by hours and days (#4478)

master
Emily Kager 2019-08-05 09:12:22 -07:00 committed by Colin Lee
parent 8aecc2b850
commit a526e0fad3
2 changed files with 9 additions and 9 deletions

View File

@ -19,9 +19,9 @@ enum class HistoryItemTimeGroup {
Today, ThisWeek, ThisMonth, Older; Today, ThisWeek, ThisMonth, Older;
fun humanReadable(context: Context): String = when (this) { fun humanReadable(context: Context): String = when (this) {
Today -> context.getString(R.string.history_today) Today -> context.getString(R.string.history_24_hours)
ThisWeek -> context.getString(R.string.history_this_week) ThisWeek -> context.getString(R.string.history_7_days)
ThisMonth -> context.getString(R.string.history_this_month) ThisMonth -> context.getString(R.string.history_30_days)
Older -> context.getString(R.string.history_older) Older -> context.getString(R.string.history_older)
} }
} }

View File

@ -362,12 +362,12 @@
<!-- Text for the button to clear selected history items. The first parameter <!-- Text for the button to clear selected history items. The first parameter
is a digit showing the number of items you have selected --> is a digit showing the number of items you have selected -->
<string name="history_delete_some">Delete %1$d items</string> <string name="history_delete_some">Delete %1$d items</string>
<!-- Text for the header that groups the history for Today --> <!-- Text for the header that groups the history for last 24 hours -->
<string name="history_today">Today</string> <string name="history_24_hours">Last 24 hours</string>
<!-- Text for the header that groups the history the past week --> <!-- Text for the header that groups the history the past 7 days -->
<string name="history_this_week">This week</string> <string name="history_7_days">Last 7 days</string>
<!-- Text for the header that groups the history the past month --> <!-- Text for the header that groups the history the past 30 days -->
<string name="history_this_month">This month</string> <string name="history_30_days">Last 30 days</string>
<!-- Text for the header that groups the history older than the last month --> <!-- Text for the header that groups the history older than the last month -->
<string name="history_older">Older</string> <string name="history_older">Older</string>
<!-- Text shown when no history exists --> <!-- Text shown when no history exists -->