Personalizar texto en Discourse

:bookmark: This is a guide for customizing text in Discourse via the admin interface, enabling changes to various UI elements.

:person_raising_hand: Required user level: Administrator

In Discourse, you can customize all of the text via the admin interface. This can be useful for tailoring the user experience to better fit the particular tone or branding of your community.

Summary

This guide will cover:

  • Accessing the text customization interface
  • Editing text strings
  • Identifying translation keys

Accessing the text customization interface

To customize the text in Discourse, navigate to the text customization page:

  1. Go to Admin.
  2. Search for site text in the sidebar search.
    OR
    Enter the URL of the screen directly https://discourse.example.com/admin/customize/site_texts

You will be presented with a page where you can search for specific text strings to edit.

Editing text strings

To edit a text string:

  1. Search for the text you want to customize.
  2. Click Edit.
  3. Enter the new value.

For example, you might want to personalize the “About Your Site” link:

After making changes and refreshing the page, the text will be updated:

Identifying translation keys

If you need help identifying the strings to translate, refer to this guide: Find a translation key with verbose localization

FAQs

Can I customize all text in Discourse including system messages?
Yes, you can customize almost all text strings, including system messages, notifications, and UI elements.

Do I need to refresh the page to see changes?
Yes, after making changes, you’ll need to refresh the page for the updated text to appear.

Last edited by @Moin 2024-07-22T06:11:29Z

Check documentPerform check on document:
74 Me gusta

¿Hay alguna forma de añadir un hipervínculo a texto personalizado?

Sí, puedes hacerlo usando enlaces markdown, por ejemplo:
¡Este es un enlace a Google!
Que es (sin formato):

¡Este es un [enlace](https://google.com) a Google!
1 me gusta

Gracias @Firepup650. Estoy intentando actualizar un texto en el pie de página de uno de los correos electrónicos y, cuando copio y pego tu línea, se muestra como abajo. ¿Quizás estos enlaces de markdown no funcionan en los correos electrónicos?

Estaba intentando actualizar user_notifications.chat_summary.unsubscribe_no_link

Hm. Quizás las plantillas de correo electrónico sean diferentes. ¿Podrías probar HTML sin formato en su lugar?

Este es un enlace a Google.
Que es (sin formato):

Este es un <a href="https://google.com/">enlace</a> a Google.
1 me gusta

¡Eso funcionó! Gracias.

1 me gusta

Me pregunto si todavía era el caso hasta la nueva barra lateral de administración… :upside_down_face:

Necesitamos modificar estos registros en lote

Hay Globally replace translations para reemplazar una palabra en todas partes.

¡Gracias, este autor también es de mi país!

Intenté cambiar el texto, pero el botón ‘guardar cambios’ está deshabilitado.

Tengo problemas para aplicarlo en nuestra página de bienvenida “Se requiere inicio de sesión”. Parece que está en un div o algo así, pero el enlace no se puede hacer clic como se esperaba. ¿Cómo escaparía a la ventana actual como destino para el enlace? (Hacer clic derecho y seleccionar “Abrir este enlace en una nueva pestaña…” funcionará, por supuesto).

:white_check_mark: Corregido:
Usé una etiqueta de anclaje apuntando a target=“_blank” :slight_smile: