From eaac033640c33b5d24b8fc61c34602e95a861543 Mon Sep 17 00:00:00 2001 From: Richard Date: Sun, 19 Jan 2020 14:49:51 +0100 Subject: [PATCH] translations and import of the i18n lib to be usable --- ui/src/components/post-listing.tsx | 49 +++++++++++++++-------------- ui/src/components/post-listings.tsx | 11 +++---- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index c945806bd..64c122136 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -231,27 +231,27 @@ export class PostListing extends Component { )} {post.removed && ( - # + { i18n.t('removed') } )} {post.deleted && ( - # + { i18n.t('deleted') } )} {post.locked && ( - # + { i18n.t('locked') } )} {post.stickied && ( - # + { i18n.t('stickied') } )} {post.nsfw && ( - # + { i18n.t('nsfw') } )} @@ -273,17 +273,17 @@ export class PostListing extends Component { {this.isMod && ( - # + { i18n.t('mod') } )} {this.isAdmin && ( - # + { i18n.t('admin') } )} {(post.banned_from_community || post.banned) && ( - # + { i18n.t('banned') } )} {this.props.showCommunity && ( @@ -390,14 +390,14 @@ export class PostListing extends Component { class="pointer" onClick={linkEvent(this, this.handleModRemoveShow)} > - # + { i18n.t('remove') } ) : ( - # + { i18n.t('restore') } )} @@ -414,7 +414,7 @@ export class PostListing extends Component { this.handleModBanFromCommunityShow )} > - # + { i18n.t('ban') } ) : ( { this.handleModBanFromCommunitySubmit )} > - # + { i18n.t('unban') } )} @@ -471,7 +471,7 @@ export class PostListing extends Component { this.handleTransferCommunity )} > - # + { i18n.t('yes') } { this.handleCancelShowConfirmTransferCommunity )} > - # + { i18n.t('no') } )} @@ -496,14 +496,14 @@ export class PostListing extends Component { class="pointer" onClick={linkEvent(this, this.handleModBanShow)} > - # + { i18n.t('ban_from_site') } ) : ( - # + { i18n.t('unban_from_site') } )} @@ -533,18 +533,18 @@ export class PostListing extends Component { this.handleShowConfirmTransferSite )} > - # + { i18n.t('transfer_site') } ) : ( <> - # + { i18n.t('are_you_sure') } - # + { i18n.t('yes') } { this.handleCancelShowConfirmTransferSite )} > - # + { i18n.t('no') } )} @@ -567,7 +567,7 @@ export class PostListing extends Component { className="pointer" onClick={linkEvent(this, this.handleViewSource)} > - # + { i18n.t('view_source') } )} @@ -585,18 +585,19 @@ export class PostListing extends Component { onInput={linkEvent(this, this.handleModRemoveReasonChange)} /> )} {this.state.showBanDialog && (
-