[fenix] Bug 1813694: Update strings for history group section

pull/600/head
DreVla 1 year ago committed by mergify[bot]
parent 1f3439b667
commit 77b9f27bbe

@ -314,9 +314,9 @@ private fun RecentlyVisitedCaption(
modifier: Modifier,
) {
val stringId = if (count == 1) {
R.string.history_search_group_site
R.string.history_search_group_site_1
} else {
R.string.history_search_group_sites
R.string.history_search_group_sites_1
}
Text(

@ -73,9 +73,9 @@ class HistoryListItemViewHolder(
is History.Group -> {
val numChildren = item.items.size - groupPendingDeletionCount
val stringId = if (numChildren == 1) {
R.string.history_search_group_site
R.string.history_search_group_site_1
} else {
R.string.history_search_group_sites
R.string.history_search_group_sites_1
}
String.format(itemView.context.getString(stringId), numChildren)
}

@ -700,10 +700,16 @@
<!-- Text to show users they have one site in the history group section of the History fragment.
%d is a placeholder for the number of sites in the group. -->
<string name="history_search_group_site">%d site</string>
<string name="history_search_group_site" moz:RemovedIn="111" tools:ignore="UnusedResources">%d site</string>
<!-- Text to show users they have one page in the history group section of the History fragment.
%d is a placeholder for the number of pages in the group. -->
<string name="history_search_group_site_1">%d page</string>
<!-- Text to show users they have multiple sites in the history group section of the History fragment.
%d is a placeholder for the number of sites in the group. -->
<string name="history_search_group_sites">%d sites</string>
<string name="history_search_group_sites" moz:RemovedIn="111" tools:ignore="UnusedResources">%d sites</string>
<!-- Text to show users they have multiple pages in the history group section of the History fragment.
%d is a placeholder for the number of pages in the group. -->
<string name="history_search_group_sites_1">%d pages</string>
<!-- Option in library for Recently Closed Tabs -->
<string name="library_recently_closed_tabs">Recently closed tabs</string>

Loading…
Cancel
Save