Skip to content

Commit f5f8d38

Browse files
author
lenify
committed
Update Channel settings and User Notice strings
1 parent 5b3ae3e commit f5f8d38

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

src/components/servers/settings/channel/ServerSettingsChannel.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ function GeneralTab() {
407407
<Show when={!isCategory()}>
408408
<SettingsBlock
409409
icon="speed"
410-
label={t("messageView.slowMode")}
410+
label={t("servers.settings.channel.slowMode")}
411411
description={t("servers.settings.channel.slowModeDescription")}
412412
>
413413
<Input
@@ -532,7 +532,7 @@ function ChannelNoticeBlock(props: { serverId: string; channelId: string }) {
532532
const save = async () => {
533533
setError("");
534534
if (inputValues().content.length > 300)
535-
return setError("Channel notice cannot be longer than 300 characters.");
535+
return setError(t("servers.settings.channel.channelNoticeTooLong"));
536536
const res = await updateChannelNotice(
537537
props.serverId,
538538
props.channelId,
@@ -567,9 +567,9 @@ function ChannelNoticeBlock(props: { serverId: string; channelId: string }) {
567567
>
568568
<SettingsBlock
569569
icon="info"
570-
label="Channel Notice"
570+
label={t("servers.settings.channel.channelNotice")}
571571
class={NoticeBlockStyle}
572-
description="Shows when the user is about to chat for the first time. Changes apply after reload."
572+
description={t("servers.settings.channel.channelNoticeDescription")}
573573
>
574574
<Text size={12} style={{ "margin-left": "38px", "margin-top": "5px" }}>
575575
({inputValues().content.length} / 300)
@@ -676,9 +676,9 @@ const WebhooksBlock = (props: { channelId: string; serverId: string }) => {
676676
<SettingsGroup>
677677
<SettingsBlock
678678
icon="webhook"
679-
label="Webhooks"
679+
label={t("servers.settings.webhook.title")}
680680
>
681-
<Button label="Create" iconName="add" onClick={handleCreate} />
681+
<Button label={t("servers.settings.webhook.addButton")} iconName="add" onClick={handleCreate} />
682682
</SettingsBlock>
683683
<For each={webhooks()}>
684684
{(webhook) => (

src/components/settings/AccountSettings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ function ChannelNoticeBlock(props: { botToken?: string | null }) {
723723
setError("");
724724
const formattedContent = formatMessage(inputValues().content.trim());
725725
if (formattedContent.length > 300)
726-
return setError(t("settings.account.channelNoticeTooLong"));
726+
return setError(t("settings.account.userNoticeTooLong"));
727727
const res = await updateDMChannelNotice(
728728
formattedContent,
729729
props.botToken
@@ -754,9 +754,9 @@ function ChannelNoticeBlock(props: { botToken?: string | null }) {
754754
>
755755
<SettingsBlock
756756
icon="info"
757-
label={t("settings.account.channelNotice")}
757+
label={t("settings.account.userNotice")}
758758
class={NoticeBlockStyle}
759-
description={t("settings.account.channelNoticeDescription")}
759+
description={t("settings.account.userNoticeDescription")}
760760
>
761761
<Text size={12} style={{ "margin-left": "38px", "margin-top": "5px" }}>
762762
({inputValues().content.length} / 300)

src/locales/list/en-gb.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@
346346
},
347347
"webhook": {
348348
"title": "Webhooks",
349+
"addButton": "Add Webhook",
349350
"name": "Webhook Name",
350351
"link": "Webhook URL",
351352
"linkDescription": "Execute actions using this link",
@@ -414,10 +415,14 @@
414415
"channelName": "Channel Name",
415416
"channelIcon": "Channel Icon",
416417
"permissionsDescription": "Manage permissions for this channel.",
418+
"slowMode": "Slow Mode",
417419
"slowModeDescription": "Specify how long a user must wait before they can send a message.",
418420
"deleteThisChannel": "Delete this channel",
419421
"deleteChannelTitle": "Delete {{channelName}}",
420422
"deleteChannelButton": "Delete Channel",
423+
"channelNotice": "Channel Notice",
424+
"channelNoticeDescription": "Shows when the user is about to chat for the first time. Changes apply after reload.",
425+
"channelNoticeTooLong": "Channel notice cannot be longer than 300 characters.",
421426
"removeNoticeButton": "Remove Notice"
422427
},
423428
"notifications": {
@@ -602,9 +607,9 @@
602607
"enterCode": "Enter the 5 digit code sent to your email:",
603608
"sendCodeButton": "Send Code",
604609
"resendIn": "Resend in {{time}}",
605-
"channelNotice": "Channel Notice",
606-
"channelNoticeDescription": "Shows when the user is about to chat for the first time. Changes apply after reload.",
607-
"channelNoticeTooLong": "Channel notice cannot be longer than 300 characters.",
610+
"userNotice": "User Notice",
611+
"userNoticeDescription": "Shows when the user is about to message you for the first time. Changes apply after reload.",
612+
"userNoticeTooLong": "User notice cannot be longer than 300 characters.",
608613
"deleteAccount": "Delete My Account",
609614
"deleteAccountDescription": "This cannot be undone!",
610615
"deleteAccountNotice": "You must leave/delete all servers before you can delete your account.",

0 commit comments

Comments
 (0)