improve settings.

This commit is contained in:
piuvas 2025-05-26 23:57:57 -03:00
parent 6874a318ea
commit 2ce8b45a7f
No known key found for this signature in database
4 changed files with 5 additions and 12 deletions

6
locales/index.d.ts vendored
View file

@ -13134,13 +13134,9 @@ export interface Locale extends ILocale {
*/
"attributionDomains": string;
/**
* A list of domains whose content can be attributed to you on link previews, separated by new-line. Any subdomain will also be valid.
* A list of domains whose content can be attributed to you on link previews, separated by new-line. Any subdomain will also be valid. The following needs to be on the webpage:
*/
"attributionDomainsDescription": string;
/**
* Webpages with `<meta name="fediverse:creator" content="@{user}@{host}" />` can then be attributed to you.
*/
"attributionDomainsTutorial": ParameterizedString<"user" | "host">;
/**
* Written by
*/

View file

@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #label>{{ i18n.ts.attributionDomains }}</template>
<template #caption>{{ i18n.ts.attributionDomainsDescription }}
<br/>
<Mfm :text="i18n.tsx.attributionDomainsTutorial({ user: $i.username, host: host})"/>
<Mfm :text="tutorialTag"/>
</template>
</MkTextarea>
</SearchMarker>
@ -33,7 +33,7 @@ const $i = ensureSignin();
const attributionDomains = ref($i.attributionDomains.join('\n'));
const changed = ref(false);
const host = toUnicode(hostRaw);
const tutorialTag = '`<meta name="fediverse:creator" content="' + $i.username + '@' + toUnicode(hostRaw) + '" />`';
async function save() {
let domains = attributionDomains.value

View file

@ -591,7 +591,5 @@ translationTimeoutLabel: "Translation timeout"
translationTimeoutCaption: "Timeout in milliseconds for translation API requests."
attributionDomains: "Attribution Domains"
attributionDomainsDescription: "A list of domains whose content can be attributed to you on link previews, separated by new-line. Any subdomain will also be valid."
attributionDomainsTutorial: "Webpages with `<meta name=\"fediverse:creator\" content=\"@{user}@{host}\" />` can then be attributed to you."
attributionDomainsDescription: "A list of domains whose content can be attributed to you on link previews, separated by new-line. Any subdomain will also be valid. The following needs to be on the webpage:"
writtenBy: "Written by"

View file

@ -8,6 +8,5 @@ allowClickingNotifications: "Permitir clicar em notificações"
pinnedOnly: "Fixado"
blockingYou: "Bloqueando você"
attributionDomains: "Domínios de Atribuição"
attributionDomainsDescription: "Uma lista de domínios cujo conteúdo pode ser atribuído a você em prévias de link, separadas por linha. Qualquer subdomínio também será válido."
attributionDomainsTutorial: "Páginas web com `<meta name=\"fediverse:creator\" content=\"@{user}@{host}\" />` podem ser atribuídas a você."
attributionDomainsDescription: "Uma lista de domínios cujo conteúdo pode ser atribuído a você em prévias de link, separadas por linha. Qualquer subdomínio também será válido. O código seguinte precisa estar presente na página:"
writtenBy: "Escrito por"