Editing Server.en.yml

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.

https://github.com/discourse/discourse/blob/master/config/locales/server.en.yml#L1935-L1943

1 Like

You could use the discourse-locale-override plugin for this.

1 Like

Doesn’t appear to work with the latest beta

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.

2 Likes

We now support customizable e-mail templates:

Furthermore, all text in Discourse can now be customized.

5 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.