Migrate more strings to translation keys (#11613)
This commit is contained in:
parent
d46d4b3d04
commit
5cb8cbd893
111 changed files with 8214 additions and 6766 deletions
|
@ -84,7 +84,7 @@ const QuickSettingsButton: React.FC<{
|
|||
}}
|
||||
kind="danger_outline"
|
||||
>
|
||||
{_t("Developer tools")}
|
||||
{_t("devtools|title")}
|
||||
</AccessibleButton>
|
||||
)}
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ const spaceNameValidator = withValidation({
|
|||
{
|
||||
key: "required",
|
||||
test: async ({ value }) => !!value,
|
||||
invalid: () => _t("Please enter a name for the space"),
|
||||
invalid: () => _t("create_space|name_required"),
|
||||
},
|
||||
],
|
||||
});
|
||||
|
@ -193,7 +193,7 @@ export const SpaceCreateForm: React.FC<ISpaceCreateFormProps> = ({
|
|||
onChange={setAlias}
|
||||
domain={domain}
|
||||
value={alias}
|
||||
placeholder={name ? nameToLocalpart(name) : _t("e.g. my-space")}
|
||||
placeholder={name ? nameToLocalpart(name) : _t("create_space|name_placeholder")}
|
||||
label={_t("Address")}
|
||||
disabled={busy}
|
||||
onKeyDown={onKeyDown}
|
||||
|
@ -285,28 +285,24 @@ const SpaceCreateMenu: React.FC<{
|
|||
body = (
|
||||
<React.Fragment>
|
||||
<h2>{_t("Create a space")}</h2>
|
||||
<p>
|
||||
{_t(
|
||||
"Spaces are a new way to group rooms and people. What kind of Space do you want to create? You can change this later.",
|
||||
)}
|
||||
</p>
|
||||
<p>{_t("create_space|explainer")}</p>
|
||||
|
||||
<SpaceCreateMenuType
|
||||
title={_t("common|public")}
|
||||
description={_t("Open space for anyone, best for communities")}
|
||||
description={_t("create_space|public_description")}
|
||||
className="mx_SpaceCreateMenuType_public"
|
||||
onClick={() => setVisibility(Visibility.Public)}
|
||||
/>
|
||||
<SpaceCreateMenuType
|
||||
title={_t("common|private")}
|
||||
description={_t("Invite only, best for yourself or teams")}
|
||||
description={_t("create_space|private_description")}
|
||||
className="mx_SpaceCreateMenuType_private"
|
||||
onClick={() => setVisibility(Visibility.Private)}
|
||||
/>
|
||||
|
||||
{supportsSpaceFiltering && (
|
||||
<AccessibleButton kind="primary_outline" onClick={onSearchClick}>
|
||||
{_t("Search for public spaces")}
|
||||
{_t("create_space|search_public_button")}
|
||||
</AccessibleButton>
|
||||
)}
|
||||
</React.Fragment>
|
||||
|
@ -320,9 +316,13 @@ const SpaceCreateMenu: React.FC<{
|
|||
title={_t("action|go_back")}
|
||||
/>
|
||||
|
||||
<h2>{visibility === Visibility.Public ? _t("Your public space") : _t("Your private space")}</h2>
|
||||
<h2>
|
||||
{visibility === Visibility.Public
|
||||
? _t("create_space|public_heading")
|
||||
: _t("create_space|private_heading")}
|
||||
</h2>
|
||||
<p>
|
||||
{_t("Add some details to help people recognise it.")} {_t("You can change these anytime.")}
|
||||
{_t("create_space|add_details_prompt")} {_t("You can change these anytime.")}
|
||||
</p>
|
||||
|
||||
<SpaceCreateForm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue