From 89c3eae9b1d63a5f5541a1230fd46ddcd507e825 Mon Sep 17 00:00:00 2001 From: John Livingston <git@john-livingston.fr> Date: Tue, 26 Sep 2023 14:58:59 +0200 Subject: [PATCH] labels --- client/@types/global.d.ts | 1 + client/common/configuration/templates/channel.mustache | 2 +- client/common/configuration/templates/channel.ts | 1 + languages/en.yml | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/@types/global.d.ts b/client/@types/global.d.ts index a4bc56c1..c13f008c 100644 --- a/client/@types/global.d.ts +++ b/client/@types/global.d.ts @@ -64,6 +64,7 @@ declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_COMMAND_CMD_DESC: string declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_COMMAND_MESSAGE_LABEL: string declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_COMMAND_MESSAGE_DESC: string declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_QUOTE_LABEL: string +declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_QUOTE_LABEL2: string declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_QUOTE_DESC: string declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_QUOTE_DESC2: string declare const LOC_LIVECHAT_CONFIGURATION_CHANNEL_QUOTE_DELAY_LABEL: string diff --git a/client/common/configuration/templates/channel.mustache b/client/common/configuration/templates/channel.mustache index 9f202c63..2b4a3ca2 100644 --- a/client/common/configuration/templates/channel.mustache +++ b/client/common/configuration/templates/channel.mustache @@ -126,7 +126,7 @@ </div> <div class="col-12 col-lg-8 col-xl-9"> <div class="form-group"> - <label for="peertube-livechat-quote-{{fieldNumber}}">{{quoteLabel}}</label> + <label for="peertube-livechat-quote-{{fieldNumber}}">{{quoteLabel2}}</label> {{! warning: don't add extra line break in textarea! }} <textarea name="quote_{{fieldNumber}}" diff --git a/client/common/configuration/templates/channel.ts b/client/common/configuration/templates/channel.ts index bccdcb49..6f77e009 100644 --- a/client/common/configuration/templates/channel.ts +++ b/client/common/configuration/templates/channel.ts @@ -98,6 +98,7 @@ async function fillLabels ( LOC_LIVECHAT_CONFIGURATION_CHANNEL_FORBIDDEN_WORDS_COMMENTS_DESC ) view.quoteLabel = await peertubeHelpers.translate(LOC_LIVECHAT_CONFIGURATION_CHANNEL_QUOTE_LABEL) + view.quoteLabel2 = await peertubeHelpers.translate(LOC_LIVECHAT_CONFIGURATION_CHANNEL_QUOTE_LABEL2) view.quoteDesc = await peertubeHelpers.translate(LOC_LIVECHAT_CONFIGURATION_CHANNEL_QUOTE_DESC) view.quoteDesc2 = await peertubeHelpers.translate(LOC_LIVECHAT_CONFIGURATION_CHANNEL_QUOTE_DESC2) view.quoteDelayLabel = await peertubeHelpers.translate(LOC_LIVECHAT_CONFIGURATION_CHANNEL_QUOTE_DELAY_LABEL) diff --git a/languages/en.yml b/languages/en.yml index 277fa0c2..a514ac29 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -345,6 +345,7 @@ livechat_configuration_channel_quote_desc: | You can configure several timers that will send messages at regular interval. These messages will be sent by the bot every X minutes. You can for example make the bot sent some sponsoring information every 5 minutes. +livechat_configuration_channel_quote_label2: "Messages" livechat_configuration_channel_quote_desc2: | One message per line. If multiple messages, it will pick one randomly every X minutes.