mirror of https://github.com/zulip/zulip.git
display_settings: Rename and update the 'language-time' section.
Rename the 'language-time' title to 'General'. As the 'language-time' section no longer exists, replace the 'lang-time-settings' classname with the 'general-settings' classname in the 'settings_display.js' file. Updated the 'change-the-time-format.md' and 'change-your-language.md' documentation files to reflect these changes. To pass the puppeteer_test Replaced the 'lang-time-settings-status' classname to 'general-settings-status' inside 'settings.test.ts' file.
This commit is contained in:
parent
49081b9682
commit
2067c71a93
|
@ -9,7 +9,7 @@ format (e.g. 5:00 PM) or a 24-hour format (e.g. 17:00).
|
||||||
|
|
||||||
{settings_tab|display-settings}
|
{settings_tab|display-settings}
|
||||||
|
|
||||||
1. Under **Language and time**, select your preferred option from the
|
1. Under **General**, select your preferred option from the
|
||||||
**Time format** dropdown.
|
**Time format** dropdown.
|
||||||
|
|
||||||
{end_tabs}
|
{end_tabs}
|
||||||
|
|
|
@ -13,7 +13,7 @@ messages you receive.
|
||||||
|
|
||||||
{settings_tab|display-settings}
|
{settings_tab|display-settings}
|
||||||
|
|
||||||
1. Under **Language and time**, click the button under **Language**.
|
1. Under **General**, click the button under **Language**.
|
||||||
|
|
||||||
1. Select a language.
|
1. Select a language.
|
||||||
|
|
||||||
|
|
|
@ -347,7 +347,7 @@ async function change_language(page: Page, language_data_code: string): Promise<
|
||||||
}
|
}
|
||||||
|
|
||||||
async function check_language_setting_status(page: Page): Promise<void> {
|
async function check_language_setting_status(page: Page): Promise<void> {
|
||||||
await page.waitForSelector("#user-display-settings .lang-time-settings-status .reload_link", {
|
await page.waitForSelector("#user-display-settings .general-settings-status .reload_link", {
|
||||||
visible: true,
|
visible: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -400,7 +400,7 @@ async function test_default_language_setting(page: Page): Promise<void> {
|
||||||
await page.goto("http://zulip.zulipdev.com:9981/#settings"); // get back to normal language.
|
await page.goto("http://zulip.zulipdev.com:9981/#settings"); // get back to normal language.
|
||||||
await page.waitForSelector(display_settings_section, {visible: true});
|
await page.waitForSelector(display_settings_section, {visible: true});
|
||||||
await page.click(display_settings_section);
|
await page.click(display_settings_section);
|
||||||
await page.waitForSelector("#user-display-settings .lang-time-settings-status", {
|
await page.waitForSelector("#user-display-settings .general-settings-status", {
|
||||||
visible: true,
|
visible: true,
|
||||||
});
|
});
|
||||||
await page.waitForSelector("#user-display-settings .language_selection_button", {
|
await page.waitForSelector("#user-display-settings .language_selection_button", {
|
||||||
|
|
|
@ -98,7 +98,7 @@ function user_default_language_modal_post_render() {
|
||||||
|
|
||||||
change_display_setting(
|
change_display_setting(
|
||||||
data,
|
data,
|
||||||
$("#settings_content").find(".lang-time-settings-status"),
|
$("#settings_content").find(".general-settings-status"),
|
||||||
$t_html(
|
$t_html(
|
||||||
{
|
{
|
||||||
defaultMessage:
|
defaultMessage:
|
||||||
|
|
|
@ -1,14 +1,10 @@
|
||||||
<form class="display-settings-form">
|
<form class="display-settings-form">
|
||||||
<div class="lang-time-settings {{#if for_realm_settings}}settings-subsection-parent{{else}}subsection-parent{{/if}}">
|
<div class="general-settings {{#if for_realm_settings}}settings-subsection-parent{{else}}subsection-parent{{/if}}">
|
||||||
<!-- this is inline block so that the alert notification can sit beside
|
<!-- this is inline block so that the alert notification can sit beside
|
||||||
it. If there's not an alert, don't make it inline-block.-->
|
it. If there's not an alert, don't make it inline-block.-->
|
||||||
<div class="subsection-header inline-block">
|
<div class="subsection-header inline-block">
|
||||||
{{#if for_realm_settings}}
|
<h3>{{t "General" }}</h3>
|
||||||
<h3>{{t "Time" }}</h3>
|
{{> settings_save_discard_widget section_name="general-settings" show_only_indicator=(not for_realm_settings) }}
|
||||||
{{else}}
|
|
||||||
<h3>{{t "Language and time" }}</h3>
|
|
||||||
{{/if}}
|
|
||||||
{{> settings_save_discard_widget section_name="lang-time-settings" show_only_indicator=(not for_realm_settings) }}
|
|
||||||
</div>
|
</div>
|
||||||
{{#unless for_realm_settings}}
|
{{#unless for_realm_settings}}
|
||||||
{{> language_selection_widget
|
{{> language_selection_widget
|
||||||
|
|
Loading…
Reference in New Issue