<p>If you place a PHP file in <code>craft/translations</code> named after a locale ID and returning an array, those values will be used instead.</p>

<p><strong>craft/translations/en.php</strong></p>

<pre><code>&lt;?php

return array(
    'Logged in.' =&gt; 'Good to see you.',
);
</code></pre>

<p>Craft's own CP translation files can be found in <code>craft/app/translations</code>.</p>

<p>You can read more about it here: <a href="http://buildwithcraft.com/help/static-translations" rel="nofollow">http://buildwithcraft.com/help/static-translations</a></p>

CC BY-SA 3.0
2015-08-16T11:24:07.813Z
2015-08-16T16:37:23.543Z
2015-08-16T16:37:23.543Z
Mike Pepper
<p>I couldn't find anything on here about this. Maybe I'm the only one, but for example when you log in there is a session notice with the message "Logged in.", but I want it to display something like "Good to see you" or something.</p>

<p>I can see the notices are set via <code>Craft::t()</code>, so I would assume they are translatable somehow, so can I do this through configuration files or a plugin init method or something?</p>

<templating><config><session>
Is it possible to override the default session notices?
# Is it possible to override the default session notices?

(Asked by: username_0 on 2015-08-16)

I couldn't find anything on here about this. Maybe I'm the only one, but for example when you log in there is a session notice with the message "Logged in.", but I want it to display something like "Good to see you" or something.

I can see the notices are set via `Craft::t()`, so I would assume they are translatable somehow, so can I do this through configuration files or a plugin init method or something?

**Tags:** templating, config, session

---

## 1 answers

### Answer by username_1 on 2015-08-16. Score: 4 | Accepted answer

If you place a PHP file in craft/translations named after a locale ID and returning an array, those values will be used instead.
craft/translations/en.php
 'Good to see you.',
);

Craft's own CP translation files can be found in craft/app/translations.
You can read more about it here: http://buildwithcraft.com/help/static-translations


---

