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
gerhard
(Gerhard Schlager)
August 21, 2015, 8:58pm
2
You could use the discourse-locale-override plugin for this.
1 Like
Doesn’t appear to work with the latest beta
neil
(Neil Lalonde)
August 24, 2015, 5:19pm
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.
2 Likes
erlend_sh
(Erlend Sogge Heggen)
December 6, 2015, 10:54am
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.
In Discourse you can customize all of the text via the admin interface. Simply go to Admin > Customize > Text and you’ll be presented with a search page.
[image]
Search for the text you want to customize, click Edit then enter the new value. For example, I changed the “Dashboard” link to say “Evil Trout” here on Meta. After refreshing the page the text has been updated:
[image]
Need help identifying the strings to translate? See how to Find a translation key with verbose localization
As …
5 Likes
erlend_sh
(Erlend Sogge Heggen)
Closed
December 8, 2015, 10:55am
6
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.