Render hints with HTML for hometown preferences

This commit is contained in:
Darius Kazemi 2023-12-30 20:37:08 -08:00
parent 2aa48f7f09
commit a120693950
4 changed files with 10 additions and 6 deletions

View File

@ -9,7 +9,7 @@
= f.simple_fields_for :settings, current_user.settings do |ff|
.fields-group
= ff.input :noindex, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_noindex'), hint: I18n.t('simple_form.hints.defaults.setting_noindex')
= ff.input :noindex, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_noindex'), hint: t('simple_form.hints.defaults.setting_noindex_html')
.fields-group
= ff.input :aggregate_reblogs, wrapper: :with_label, recommended: true, label: I18n.t('simple_form.labels.defaults.setting_aggregate_reblogs'), hint: I18n.t('simple_form.hints.defaults.setting_aggregate_reblogs')
@ -27,7 +27,7 @@
= ff.input :default_sensitive, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_default_sensitive'), hint: I18n.t('simple_form.hints.defaults.setting_default_sensitive')
.fields-group
= ff.input :default_federation, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_default_federation'), hint: I18n.t('simple_form.hints.defaults.setting_default_federation')
= ff.input :default_federation, wrapper: :with_label, label: I18n.t('simple_form.labels.defaults.setting_default_federation'), hint: t('simple_form.hints.defaults.setting_default_federation_html')
%h4= t 'preferences.public_timelines'

View File

@ -55,7 +55,8 @@ de:
scopes: Welche Schnittstellen der Applikation erlaubt sind. Wenn du einen Top-Level-Scope auswählst, dann musst du nicht jeden einzelnen darunter auswählen.
setting_aggregate_reblogs: Beiträge, die erst kürzlich geteilt wurden, werden nicht noch einmal angezeigt (wirkt sich nur auf zukünftige geteilte Beiträge aus)
setting_always_send_emails: Normalerweise werden Benachrichtigungen nicht per E-Mail versendet, wenn du gerade auf Mastodon aktiv bist
setting_default_federation: <ul><li>Wenn ausgewählt, werden neue Beiträge mit anderen Instanzen geteilt, es sei denn, es wird beim Verfassen in der Weboberfläche manuell überschrieben.</li><li>Wenn diese Option nicht aktiviert ist, bleiben Ihre neuen Beiträge lokal, es sei denn, sie werden beim Verfassen in der Weboberfläche manuell geändert.</li><li>Anwendungen von Drittanbietern werden neue Beiträge erstellen, die diese Einstellung berücksichtigen. <a href="https://github.com/hometown-fork/hometown/wiki/Local-only-posting#note-on-3rd-party-apps">Weitere for more info on third-party apps</a></li></ul>
setting_noindex_html: Affects your public profile and post pages. Public replies you make to other people may still be indexed on their pages. <a href="https://github.com/hometown-fork/hometown/issues/1234">See here for more information.</a>
setting_default_federation_html: <ul><li>Wenn ausgewählt, werden neue Beiträge mit anderen Instanzen geteilt, es sei denn, es wird beim Verfassen in der Weboberfläche manuell überschrieben.</li><li>Wenn diese Option nicht aktiviert ist, bleiben Ihre neuen Beiträge lokal, es sei denn, sie werden beim Verfassen in der Weboberfläche manuell geändert.</li><li>Anwendungen von Drittanbietern werden neue Beiträge erstellen, die diese Einstellung berücksichtigen. <a href="https://github.com/hometown-fork/hometown/wiki/Local-only-posting#note-on-3rd-party-apps">Weitere for more info on third-party apps</a></li></ul>
setting_default_sensitive: Medien, die mit einer Inhaltswarnung versehen worden sind, werden je nach Einstellung erst nach einem zusätzlichen Klick angezeigt
setting_display_media_default: Medien mit Inhaltswarnung ausblenden
setting_display_media_hide_all: Medien immer ausblenden
@ -217,6 +218,7 @@ de:
setting_display_media_show_all: Alle Medien anzeigen
setting_expand_spoilers: Beiträge mit Inhaltswarnung immer ausklappen
setting_hide_network: Follower und „Folge ich“ nicht anzeigen
setting_noindex: Opt-out of search engine indexing
setting_reduce_motion: Bewegung in Animationen verringern
setting_system_font_ui: Standardschriftart des Browsers verwenden
setting_theme: Design

View File

@ -55,13 +55,13 @@ en:
scopes: Which APIs the application will be allowed to access. If you select a top-level scope, you don't need to select individual ones.
setting_aggregate_reblogs: Do not show new boosts for posts that have been recently boosted (only affects newly-received boosts)
setting_always_send_emails: Normally e-mail notifications won't be sent when you are actively using Mastodon
setting_default_federation: <ul><li>If checked, your new posts federate to other instances unless manually changed while composing in the web interface.</li><li>If unchecked, your new posts stay local unless manually changed while composing in the web interface.</li><li>Third party apps will make new posts that respect this setting. <a href="https://github.com/hometown-fork/hometown/wiki/Local-only-posting#note-on-3rd-party-apps">See here for more info on third-party apps</a></li></ul>
setting_default_federation_html: <ul><li>If checked, your new posts federate to other instances unless manually changed while composing in the web interface.</li><li>If unchecked, your new posts stay local unless manually changed while composing in the web interface.</li><li>Third party apps will make new posts that respect this setting. <a href="https://github.com/hometown-fork/hometown/wiki/Local-only-posting#note-on-3rd-party-apps">See here for more info on third-party apps</a></li></ul>
setting_default_sensitive: Sensitive media is hidden by default and can be revealed with a click
setting_display_media_default: Hide media marked as sensitive
setting_display_media_hide_all: Always hide media
setting_display_media_show_all: Always show media
setting_hide_network: Who you follow and who follows you will be hidden on your profile
setting_noindex: Affects your public profile and post pages. Public replies you make to other people may still be indexed on their pages. <a href="https://github.com/hometown-fork/hometown/issues/1234">See here for more information.</a>
setting_noindex_html: Affects your public profile and post pages. Public replies you make to other people may still be indexed on their pages. <a href="https://github.com/hometown-fork/hometown/issues/1234">See here for more information.</a>
setting_show_application: The application you use to post will be displayed in the detailed view of your posts
setting_use_blurhash: Gradients are based on the colors of the hidden visuals but obfuscate any details
setting_use_pending_items: Hide timeline updates behind a click instead of automatically scrolling the feed

View File

@ -55,11 +55,12 @@ it:
scopes: A quali API l'applicazione potrà avere accesso. Se selezionate un ambito di alto livello, non c'è bisogno di selezionare quelle singole.
setting_aggregate_reblogs: Non mostrare nuove condivisioni per toot che sono stati condivisi di recente (ha effetto solo sulle nuove condivisioni)
setting_always_send_emails: Normalmente le notifiche e-mail non vengono inviate quando si utilizza attivamente Mastodon
setting_default_federation: <ul><li>Se selezionato, i tuoi nuovi post sono disponibili per altri server in modo predefinito.</li><li>Se non selezionato, i tuoi nuovi post sono visibili solo ad altri utenti del tuo server in modo predefinito.</li></ul>
setting_default_federation_html: <ul><li>Se selezionato, i tuoi nuovi post sono disponibili per altri server in modo predefinito.</li><li>Se non selezionato, i tuoi nuovi post sono visibili solo ad altri utenti del tuo server in modo predefinito.</li></ul>
setting_default_sensitive: Media con contenuti sensibili sono nascosti in modo predefinito e possono essere rivelati con un click
setting_display_media_default: Nascondi media segnati come sensibili
setting_display_media_hide_all: Nascondi sempre tutti i media
setting_display_media_show_all: Mostra sempre i media segnati come sensibili
setting_noindex_html: Affects your public profile and post pages. Public replies you make to other people may still be indexed on their pages. <a href="https://github.com/hometown-fork/hometown/issues/1234">See here for more information.</a>
setting_use_blurhash: I gradienti sono basati sui colori delle immagini nascoste ma offuscano tutti i dettagli
setting_use_pending_items: Fare clic per mostrare i nuovi messaggi invece di aggiornare la timeline automaticamente
username: Puoi usare lettere, numeri e caratteri di sottolineatura
@ -217,6 +218,7 @@ it:
setting_display_media_show_all: Mostra tutti
setting_expand_spoilers: Espandi sempre post con content warning
setting_hide_network: Nascondi la tua rete
setting_noindex: Opt-out of search engine indexing
setting_reduce_motion: Riduci movimento nelle animazioni
setting_system_font_ui: Usa il carattere predefinito del sistema
setting_theme: Tema del sito