UX: better help text for private invite-only instance

approved

#1

UX: better help text for private invite-only instance

diff --git a/app/views/static/login.html.erb b/app/views/static/login.html.erb
index c08a766..19fa6ac 100644
--- a/app/views/static/login.html.erb
+++ b/app/views/static/login.html.erb
@@ -1,5 +1,5 @@
 <% if SiteSetting.login_required %>
   <div class='login-required'>
-    <%= PrettyText.cook(I18n.t('login_required.welcome_message', title: SiteSetting.title)).html_safe %>
+    <%= PrettyText.cook(I18n.t("login_required.#{SiteSetting.invite_only? ? "welcome_message_invite_only" : "welcome_message"}", title: SiteSetting.title)).html_safe %>
   </div>
 <% end %>
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 8bff05e..4e3f122 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -3347,6 +3347,9 @@ en:
     welcome_message: |
       ## [Welcome to %{title}](#welcome)
       An account is required. Please create an account or log in to continue.
+    welcome_message_invite_only: |
+      ## [Welcome to %{title}](#welcome)
+      An account is required. Please ask an existing member for an invite or log in to continue.
 
   terms_of_service:
     title: "Terms of Service"

GitHub sha: 93eb0a06


Approved #2

Followed Up #3

Copy `welcome_message` translation override to `welcome_message_invite_only` (#6949)