diff options
| author | piuvas <mail@piuvas.net> | 2025-05-26 23:57:57 -0300 |
|---|---|---|
| committer | piuvas <mail@piuvas.net> | 2025-05-26 23:57:57 -0300 |
| commit | 2ce8b45a7f91ae93e211aa097d8c0f659f9957e2 (patch) | |
| tree | 9847ed689523376c2cc83b4a8712697f96b5cb7d | |
| parent | small fixes. (diff) | |
| download | sharkey-2ce8b45a7f91ae93e211aa097d8c0f659f9957e2.tar.gz sharkey-2ce8b45a7f91ae93e211aa097d8c0f659f9957e2.tar.bz2 sharkey-2ce8b45a7f91ae93e211aa097d8c0f659f9957e2.zip | |
improve settings.
| -rw-r--r-- | locales/index.d.ts | 6 | ||||
| -rw-r--r-- | packages/frontend/src/pages/settings/attribution-domains-setting.vue | 4 | ||||
| -rw-r--r-- | sharkey-locales/en-US.yml | 4 | ||||
| -rw-r--r-- | sharkey-locales/pt-PT.yml | 3 |
4 files changed, 5 insertions, 12 deletions
diff --git a/locales/index.d.ts b/locales/index.d.ts index 9b71db33ac..1070318fa2 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -13134,14 +13134,10 @@ 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 */ "writtenBy": string; diff --git a/packages/frontend/src/pages/settings/attribution-domains-setting.vue b/packages/frontend/src/pages/settings/attribution-domains-setting.vue index 3090276f4f..0f95b91f08 100644 --- a/packages/frontend/src/pages/settings/attribution-domains-setting.vue +++ b/packages/frontend/src/pages/settings/attribution-domains-setting.vue @@ -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 diff --git a/sharkey-locales/en-US.yml b/sharkey-locales/en-US.yml index 20a03061d7..bfd0613cc7 100644 --- a/sharkey-locales/en-US.yml +++ b/sharkey-locales/en-US.yml @@ -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" diff --git a/sharkey-locales/pt-PT.yml b/sharkey-locales/pt-PT.yml index d8a8844afd..e522125e6c 100644 --- a/sharkey-locales/pt-PT.yml +++ b/sharkey-locales/pt-PT.yml @@ -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" |