Editing Server.en.yml


(Jared Needell) #1

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.


Customize all text in Discourse
(Gerhard Schlager) #2

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


(Jared Needell) #3

Doesn’t appear to work with the latest beta


(Neil Lalonde) #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 Sogge Heggen) #5

We now support customizable e-mail templates:

Furthermore, all text in Discourse can now be customized.


(Erlend Sogge Heggen) #6

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