Skip to content

Commit 23d039b

Browse files
authored
Merge pull request matrix-org#5428 from matrix-org/jryans/fix-message-search-summary
Fix message search summary text
2 parents 2d363a1 + 14e64c1 commit 23d039b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/components/views/settings/EventIndexPanel.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,13 @@ export default class EventIndexPanel extends React.Component {
130130
<div>
131131
<div className='mx_SettingsTab_subsectionText'>
132132
{_t("Securely cache encrypted messages locally for them " +
133-
"to appear in search results, using %(size)s to store messages from %(count)s rooms.",
133+
"to appear in search results, using %(size)s to store messages from %(rooms)s rooms.",
134134
{
135135
size: formatBytes(this.state.eventIndexSize, 0),
136-
count: formatCountLong(this.state.roomCount),
136+
// This drives the singular / plural string
137+
// selection for "room" / "rooms" only.
138+
count: this.state.roomCount,
139+
rooms: formatCountLong(this.state.roomCount),
137140
},
138141
)}
139142
</div>

src/i18n/strings/en_EN.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,8 @@
935935
"Failed to set display name": "Failed to set display name",
936936
"Encryption": "Encryption",
937937
"Individually verify each session used by a user to mark it as trusted, not trusting cross-signed devices.": "Individually verify each session used by a user to mark it as trusted, not trusting cross-signed devices.",
938-
"Securely cache encrypted messages locally for them to appear in search results, using %(size)s to store messages from %(count)s rooms.|other": "Securely cache encrypted messages locally for them to appear in search results, using %(size)s to store messages from %(count)s rooms.",
939-
"Securely cache encrypted messages locally for them to appear in search results, using %(size)s to store messages from %(count)s rooms.|one": "Securely cache encrypted messages locally for them to appear in search results, using %(size)s to store messages from %(count)s room.",
938+
"Securely cache encrypted messages locally for them to appear in search results, using %(size)s to store messages from %(rooms)s rooms.|other": "Securely cache encrypted messages locally for them to appear in search results, using %(size)s to store messages from %(rooms)s rooms.",
939+
"Securely cache encrypted messages locally for them to appear in search results, using %(size)s to store messages from %(rooms)s rooms.|one": "Securely cache encrypted messages locally for them to appear in search results, using %(size)s to store messages from %(rooms)s room.",
940940
"Manage": "Manage",
941941
"Securely cache encrypted messages locally for them to appear in search results.": "Securely cache encrypted messages locally for them to appear in search results.",
942942
"%(brand)s is missing some components required for securely caching encrypted messages locally. If you'd like to experiment with this feature, build a custom %(brand)s Desktop with <nativeLink>search components added</nativeLink>.": "%(brand)s is missing some components required for securely caching encrypted messages locally. If you'd like to experiment with this feature, build a custom %(brand)s Desktop with <nativeLink>search components added</nativeLink>.",

0 commit comments

Comments
 (0)