From: alisapa <34424201+alisapa@users.noreply.github.com> Date: Tue, 4 Aug 2020 21:35:48 +0000 (+0200) Subject: Clarify community creation form (#1056) X-Git-Url: http://these/git/%24%7Bsubmission.url%7D?a=commitdiff_plain;h=1de22f0f10c5d30f91613b8c216bd4fb454b98b6;p=lemmy.git Clarify community creation form (#1056) * Clarify community creation form * Did requested changes * Removed div, corrected translation file * Delete en.ts --- diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index dc73ffc0..7e6c4cf4 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -116,6 +116,14 @@ export class CommunityForm extends Component< <div class="form-group row"> <label class="col-12 col-form-label" htmlFor="community-name"> {i18n.t('name')} + <a + class="btn btn-sm text-muted" + data-tippy-content={i18n.t('name_explain')} + > + <svg class="icon icon-inline"> + <use xlinkHref="#icon-help-circle"></use> + </svg> + </a> </label> <div class="col-12"> <input @@ -135,7 +143,15 @@ export class CommunityForm extends Component< )} <div class="form-group row"> <label class="col-12 col-form-label" htmlFor="community-title"> - {i18n.t('title')} + {i18n.t('display_name')} + <a + class="btn btn-sm text-muted" + data-tippy-content={i18n.t('display_name_explain')} + > + <svg class="icon icon-inline"> + <use xlinkHref="#icon-help-circle"></use> + </svg> + </a> </label> <div class="col-12"> <input diff --git a/ui/translations/en.json b/ui/translations/en.json index 7304d4a7..f9848ea2 100644 --- a/ui/translations/en.json +++ b/ui/translations/en.json @@ -109,6 +109,9 @@ "number_online": "{{count}} User Online", "number_online_plural": "{{count}} Users Online", "name": "Name", + "name_explain": "Name â used as the identifier for the community, cannot be changed.", + "display_name": "Display name", + "display_name_explain": "Display name â shown as the title on the community's page, can be changed.", "title": "Title", "category": "Category", "subscribers": "Subscribers",