<p>I ended up using the suggestion of Robin Schambach, in front-end templates using the <code>{{ site.group.name }}</code></p>
<p>E-mail contents can be changed in the admin section, using {{currentSite.group.name}}</p>
<h3>Craft 2:</h3>
<p><code>settings -&gt; email -&gt; Messages</code></p>
<h3>Craft 3.0:</h3>
<p><code>settings -&gt; email -&gt; Messages</code></p>
<h3>Craft 3.1:</h3>
<p><code>Utilities -&gt; System Messages</code></p>

CC BY-SA 4.0
2019-02-26T10:18:43.673Z
There is a template for the body of an email. You can change those however you like. Depending on your Craft version those live in tools -> systemmessages or settings -> email -> systemmessages
Robin Schambach
CC BY-SA 4.0
2019-02-27T12:19:59.173Z
That's even easier, have been looking for that but never thought to find it under Utilities.
dazz
CC BY-SA 4.0
2019-02-26T10:10:47.613Z
2019-02-27T12:27:18.153Z
2020-06-17T08:56:27.903Z
dazz
<p>We have a site with multiple languages so I created a site for each language.
I named these according to the language so, one is named "French", another "English" etc.</p>

<p>Now in the backend this is all fine, when creating entries its clear what the language is you are working in.</p>

<p>I soon noticed these are also used in the front-end and that creates some problems. The site name in a template is easily override by adding something like <code>{% set siteName = getenv('SITE_NAME') %}</code>.</p>

<p>But harder to fix are for example the mails send out when creating a account, they now say something like "Thank you for creating an account on English!"</p>

<p>I tried a fix by setting the same site name in the config/general.php, this works, but now all the sites in the site switcher in the backend are the same. So not really a good fix.</p>

<p>Having to set a different name for each site is kinda weird, in most cases the brand name is the same in every language. Google is Google no matter the language.</p>

<p>Anyone who knows a decent way to handle this?</p>

CC BY-SA 4.0
2019-02-26T08:46:29.243Z
We always handle it a little bit differently. When you are in such a situation use the site group in emails and in our frontend as the identifier of the site. Would that be an option for you? So the site name is just `French` but we never reveal that in our frontend, we always show the site group name `{{ site.group.name }}` -> `My Awesome Site` and `{{ site.name }}` -> `French`
Robin Schambach
CC BY-SA 4.0
2019-02-26T09:05:34.040Z
Using the group name is a good idea. But how do is use this in auto generated mails like the account activation mail?
dazz
CC BY-SA 4.0
2019-02-26T09:39:05.017Z
You can just change the template
Robin Schambach
<craft3><localization><multi-site><sites>
Same site name in multiple languages
# Same site name in multiple languages

(Asked by: username_0 on 2019-02-25)

We have a site with multiple languages so I created a site for each language.
I named these according to the language so, one is named "French", another "English" etc.

Now in the backend this is all fine, when creating entries its clear what the language is you are working in.

I soon noticed these are also used in the front-end and that creates some problems. The site name in a template is easily override by adding something like `{% set siteName = getenv('SITE_NAME') %}`.

But harder to fix are for example the mails send out when creating a account, they now say something like "Thank you for creating an account on English!"

I tried a fix by setting the same site name in the config/general.php, this works, but now all the sites in the site switcher in the backend are the same. So not really a good fix.

Having to set a different name for each site is kinda weird, in most cases the brand name is the same in every language. Google is Google no matter the language.

Anyone who knows a decent way to handle this?

**Tags:** craft3, localization, multi-site, sites

> **Comments:**
> **username_1**: We always handle it a little bit differently. When you are in such a situation use the site group in emails and in our frontend as the identifier of the site. Would that be an option for you? So the site name is just `French` but we never reveal that in our frontend, we always show the site group name `{{ site.group.name }}` -> `My Awesome Site` and `{{ site.name }}` -> `French`  
> **username_0**: Using the group name is a good idea. But how do is use this in auto generated mails like the account activation mail?  
> **username_1**: You can just change the template  

---

## 1 answers

### Answer by username_0 on 2019-02-26. Score: 1

I ended up using the suggestion of username_1, in front-end templates using the `{{ site.group.name }}`

E-mail contents can be changed in the admin section, using {{currentSite.group.name}}

### Craft 2:

`settings -> email -> Messages`

### Craft 3.0:

`settings -> email -> Messages`

### Craft 3.1:

`Utilities -> System Messages`

> **Comments:**
> **username_1**: There is a template for the body of an email. You can change those however you like. Depending on your Craft version those live in tools -> systemmessages or settings -> email -> systemmessages  
> **username_0**: That's even easier, have been looking for that but never thought to find it under Utilities.  

---

