Browse Source

Rename users "online" to users "viewing" in comm/post views

Fixes #116
main
layla 11 months ago
parent
commit
7d526c4bf0
  1. 2
      src/components/community.tsx
  2. 2
      src/components/post.tsx
  3. 3
      translations/en.json

2
src/components/community.tsx

@ -237,7 +237,7 @@ export class BaseCommunity extends Component<any, State> {
title={this.state.community.title}
subtitle={'/c/' + this.state.community.name}
details={{
[i18n.t('number_online_label')]: this.state.online,
[i18n.t('number_viewing_label')]: this.state.online,
[i18n.t('members')]: this.state.community
.number_of_subscribers,
}}

2
src/components/post.tsx

@ -336,7 +336,7 @@ export class Post extends Component<any, PostState> {
</StyledLink>
}
details={{
[i18n.t('number_online_label')]: this.state.online,
[i18n.t('number_viewing_label')]: this.state.online,
[i18n.t('members')]: this.state?.community
?.number_of_subscribers,
}}

3
translations/en.json

@ -116,6 +116,7 @@
"number_online": "{{count}} User Online",
"number_online_plural": "{{count}} Users Online",
"number_online_label": "Online",
"number_viewing_label": "Viewing",
"name": "Name",
"title": "Title",
"category": "Category",
@ -316,4 +317,4 @@
"disable_inbox": "Disable Inbox",
"new_user_24h_waiting_period_not_met": "New users must wait 24 hours before sending private messages",
"new_user_5min_waiting_period_not_met": "New users must wait 5 minutes before creating posts or comments"
}
}
Loading…
Cancel
Save