settings: Simplify setting organization default language.

The changes in the last few commits changed the semantics of the
organization default language to no longer be the primary source of
information for a user's language when creating a new account.

Here, we change the settings UI and /help/ documentation to reflect
this.
This commit is contained in:
Tim Abbott 2022-04-28 13:45:25 -07:00 committed by Tim Abbott
parent 47c6100da9
commit 627144b0c7
7 changed files with 45 additions and 42 deletions

View File

@ -314,11 +314,11 @@ async function test_organization_profile(page: Page): Promise<void> {
async function submit_default_user_settings(page: Page): Promise<void> { async function submit_default_user_settings(page: Page): Promise<void> {
assert.strictEqual( assert.strictEqual(
await common.get_text_from_selector(page, "#org-submit-user-defaults"), await common.get_text_from_selector(page, "#org-submit-notifications"),
"Save changes", "Save changes",
); );
await page.click("#org-submit-user-defaults"); await page.click("#org-submit-notifications");
const saved_status = '#org-submit-user-defaults[data-status="saved"]'; const saved_status = '#org-submit-notifications[data-status="saved"]';
await page.waitForSelector(saved_status, {hidden: true}); await page.waitForSelector(saved_status, {hidden: true});
} }

View File

@ -48,17 +48,11 @@
reset_button_text=(t '[Disable]') reset_button_text=(t '[Disable]')
label=admin_settings_label.realm_signup_notifications_stream }} label=admin_settings_label.realm_signup_notifications_stream }}
</div>
<div id="org-user-defaults" class="org-subsection-parent">
<div class="subsection-header">
<h3>{{t "Default user settings" }}</h3>
{{> settings_save_discard_widget section_name="user-defaults" }}
</div>
<p>{{t "Default settings for new users joining this organization." }}</p>
<div class="inline-block organization-settings-parent">
<div class="input-group"> <div class="input-group">
<label for="realm_default_language" class="dropdown-title">{{t "Default language" }}</label> <label for="realm_default_language" class="dropdown-title">
{{t "Notifications language" }}
{{> ../help_link_widget link="/help/change-the-default-language-for-your-organization" }}
</label>
<select name="realm_default_language" class ="setting-widget prop-element" id="id_realm_default_language" data-setting-widget-type="string"> <select name="realm_default_language" class ="setting-widget prop-element" id="id_realm_default_language" data-setting-widget-type="string">
{{#each language_list}} {{#each language_list}}
<option value='{{this.code}}'>{{this.name}}</option> <option value='{{this.code}}'>{{this.name}}</option>
@ -66,7 +60,6 @@
</select> </select>
</div> </div>
</div> </div>
</div>
<div id="org-message-retention" class="org-subsection-parent"> <div id="org-message-retention" class="org-subsection-parent">
<div class="subsection-header"> <div class="subsection-header">

View File

@ -1,27 +1,36 @@
# Set the default language for new users # Configure organization notifications language
{!admin-only.md!} {!admin-only.md!}
Zulip has been translated or partially translated into a number of different Zulip has been translated or partially translated into dozens of
languages. You can see which languages Zulip supports, and help add support languages. You can see which languages Zulip supports, and help add
for new languages on **[Transifex](https://www.transifex.com/zulip/zulip/)**. support for new languages on **[Transifex](https://www.transifex.com/zulip/zulip/)**.
If your organization usually uses a language other than English, you can set Each user can use Zulip with [their preferred
a default language for new users. This setting will not affect existing language](/help/change-your-language). In addition, if your
users, and new users can still organization has a primary language other than American English, you
[manage their individual language setting](change-your-language). can set the notifications language for the organization. This setting:
### Set the default language for new users * Determines the language used for automated messages sent to streams
by [Notification
Bot](/help/configure-notification-bot). (Notifications sent to a
single user will use that user's language).
* Determines the language used for outgoing
[invitation emails](/help/invite-new-users).
* Is used as the default language for new user accounts when Zulip
cannot detect their language preferences from their browser,
including all users [created via the Zulip API][api-create-user].
### Configure the organization notifications language
{start_tabs} {start_tabs}
{settings_tab|organization-settings} {settings_tab|organization-settings}
2. Under **Default user settings**, change the **Default language**. 2. Under **Notifications**, change the **Notifications language**.
{!save-changes.md!} {!save-changes.md!}
{end_tabs} {end_tabs}
Note that users can always send and read messages in any language, regardless [api-create-user]: https://zulip.com/api/create-user
of their language setting.

View File

@ -1,11 +1,12 @@
# Change your language # Change your language
Zulip has been translated or partially translated into a number of different Zulip has been translated or partially translated into dozens of
languages. You can see which languages Zulip supports, and help add support languages. You can see which languages Zulip supports, and help add
for new languages on **[Transifex](https://www.transifex.com/zulip/zulip/)**. support for new languages on **[Transifex](https://www.transifex.com/zulip/zulip/)**.
If your entire organization speaks a language other than English, an administrator can If your organization has a primary language other than American
[set the default language][change-org-lang] for new users joining the organization. English, an administrator should also [set the organization
notifications language][change-org-lang].
[change-org-lang]: change-the-default-language-for-your-organization [change-org-lang]: change-the-default-language-for-your-organization

View File

@ -3,8 +3,8 @@ Customize settings for new users to get them off to a great start.
* [Add custom profile fields](/help/add-custom-profile-fields). * [Add custom profile fields](/help/add-custom-profile-fields).
* [Configure default new user settings][default-user-settings]. * [Configure default new user settings][default-user-settings].
* [Set default streams for new users](/help/set-default-streams-for-new-users). * [Set default streams for new users](/help/set-default-streams-for-new-users).
* [Set the default language for new users][change-default-language], * [Set organization notifications language][change-notifications-language],
if it should be something other than US English. if it should be something other than American English.
[change-default-language]: /help/change-the-default-language-for-your-organization [change-notifications-language]: /help/change-the-default-language-for-your-organization
[default-user-settings]: /help/configure-default-new-user-settings [default-user-settings]: /help/configure-default-new-user-settings

View File

@ -150,7 +150,7 @@
* [Deactivate or reactivate a user](/help/deactivate-or-reactivate-a-user) * [Deactivate or reactivate a user](/help/deactivate-or-reactivate-a-user)
* [Add custom profile fields](/help/add-custom-profile-fields) * [Add custom profile fields](/help/add-custom-profile-fields)
* [Configure default new user settings](/help/configure-default-new-user-settings) * [Configure default new user settings](/help/configure-default-new-user-settings)
* [Set default language for new users](/help/change-the-default-language-for-your-organization) * [Configure organization notifications language](/help/change-the-default-language-for-your-organization)
* [User groups](/help/user-groups) * [User groups](/help/user-groups)
* [Restrict visibility of email addresses](/help/restrict-visibility-of-email-addresses) * [Restrict visibility of email addresses](/help/restrict-visibility-of-email-addresses)
* [Change a user's role](/help/change-a-users-role) * [Change a user's role](/help/change-a-users-role)

View File

@ -10982,7 +10982,7 @@ paths:
description: | description: |
Present if `realm` is present in `fetch_event_types`. Present if `realm` is present in `fetch_event_types`.
The default UI language for new users joining this organization. The [notifications language for the organization](/help/change-the-default-language-for-your-organization).
realm_description: realm_description:
type: string type: string
description: | description: |