From b92fe594369c3dffad51d2a20af188d222897f95 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 4 Feb 2020 00:01:58 +0000 Subject: [PATCH] Improve event indexing status strings for translation The strings used for the count of rooms was hard to translate, so this adds a bit more context. --- .../views/dialogs/eventindex/ManageEventIndexDialog.js | 6 ++++-- src/i18n/strings/en_EN.json | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/async-components/views/dialogs/eventindex/ManageEventIndexDialog.js b/src/async-components/views/dialogs/eventindex/ManageEventIndexDialog.js index b98fecf22f..5ae90b694e 100644 --- a/src/async-components/views/dialogs/eventindex/ManageEventIndexDialog.js +++ b/src/async-components/views/dialogs/eventindex/ManageEventIndexDialog.js @@ -144,8 +144,10 @@ export default class ManageEventIndexDialog extends React.Component {
{_t("Space used:")} {formatBytes(this.state.eventIndexSize, 0)}
{_t("Indexed messages:")} {formatCountLong(this.state.eventCount)}
- {_t("Number of rooms:")} {formatCountLong(this.state.crawlingRoomsCount)} {_t("of ")} - {formatCountLong(this.state.roomCount)}
+ {_t("Indexed rooms:")} {_t("%(crawlingRooms)s out of %(totalRooms)s", { + crawlingRooms: formatCountLong(this.state.crawlingRoomsCount), + totalRooms: formatCountLong(this.state.roomCount), + })}
{crawlerState}