Do you know how I can edit server.en.yml to modify email template. Or an example of a plugin to do this, I don’t think the word replace plugin would be reliable for something like this.
email_custom_headers: "A list of custom email headers"
email_subject: "Customizable subject format for standard emails. See <a href='https://meta.discourse.org/t/customizing-specific-system-email-templates/88323' target='_blank'>Customizing specific system email templates on Meta</a>."
simple_email_subject: "When enabled, the email subject lines will be more concise, containing only the essential information. This makes it easier for users to quickly understand the purpose of the email at a glance."
detailed_404: "Provides more details to users about why they can’t access a particular topic. Note: This is less secure because users will know if a URL links to a valid topic."
enforce_second_factor: "Require users to enable two-factor authentication (2FA) before they can access the Discourse UI. This setting does not affect API or 'DiscourseConnect provider' authentication. If {{setting:enforce_second_factor_on_external_auth}} is enabled, users will not be able to log in with external authentication providers after they set up 2FA."
enforce_second_factor_on_external_auth: "Require users to use two-factor authentication (2FA) at all times. When enabled, this will prevent users logging in with external authentication methods like social logins if they have 2FA enabled. When disabled, users will only need to confirm their 2FA when logging in with a username and password. Also see the {{setting:enforce_second_factor}} setting."
force_https: "Force your site to use HTTPS only. WARNING: do NOT enable this until you verify HTTPS is fully set up and working absolutely everywhere! Did you check your CDN, all social logins, and any external logos / dependencies to make sure they are all HTTPS compatible, too?"
summary_score_threshold: "The minimum score required for a post to be included in 'Summarize This Topic'"
gerhard
(Gerhard Schlager)
Août 21, 2015, 8:58
2
You could use the discourse-locale-override plugin for this.
Doesn’t appear to work with the latest beta
neil
(Neil Lalonde)
Août 24, 2015, 5:19
4
You can do this in a plugin.
Create plugin.rb with the usual comments.
# name: my-translation-overrides
# about: Neil changes some words
# version: 0.1
# authors: Neil Lalonde
Create directory /config/locales
In that directory, create server.en.yml with the translations that you want to override. For example:
en:
terms_of_service:
title: "The Rules"
That should be it.
erlend_sh
(Erlend Sogge Heggen)
Décembre 6, 2015, 10:54
5
We now support customizable e-mail templates:
Don’t like the text in our emails? Well now you can change them! (as long as you’re tracking our tests-passed branch)
Just visit Admin > Customize > Email Templates and you’ll be presented with this nifty interface:
[image]
Give it a whirl and let us know how it works out for you.
Furthermore, all text in Discourse can now be customized.
This is a guide for customizing text in Discourse via the admin interface, enabling changes to various UI elements.
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 translatio…