<p>Can't be done, don't waste your time.</p>

<p>Only thing that could work is via a <a href="http://buildwithcraft.com/help/static-translations" rel="nofollow noreferrer">static translations</a> file, but the CP gets locale name data directly from that yii language file, so this is your only chance (see <a href="https://craftcms.stackexchange.com/q/6631/125">dupe question</a>). Other things can be overwritten though, e.g <code>'Users' =&gt; 'Members'</code>.</p>

CC BY-SA 3.0
2015-02-21T17:05:27.783Z
2015-02-21T17:05:27.783Z
2017-04-13T12:50:59.930Z
carlcs
<p>I've read all posts about localization and translation here and at Craft's documentation, but I still haven't found the answer.</p>

<p>What I want achieve here is having let's say UK instead of British English.</p>

<p>I found paragraph in documentation:  </p>

<pre><code>{{ "Welcome, {name}"|t({ name: user.friendlyName }) }}
</code></pre>

<p><strong>that says:</strong> If your text contains dynamic variables, add tokens to the string where they should go, and pass an object to the t filter that contains their values</p>

<p>Could anything like that work by passing object to _locale.php in /translations folder and set other value? Tried, without effect.
Theoretically it could work, craft would pass the object of an active locale to our translation's file.</p>

<p>Any advice, so I don't waste time on something that can't be done.</p>

CC BY-SA 3.0
2015-02-21T14:17:15.467Z
Did you read this: ["How to change the locals name in Localized Sites"](http://craftcms.stackexchange.com/q/6631/125)?
carlcs
CC BY-SA 3.0
2015-02-21T14:36:56.853Z
First find. I will consider this as a second option.
Dominik Krulak
<localization>
Can I translate locale names?
# Can I translate locale names?

(Asked by: username_0 on 2015-02-21)

I've read all posts about localization and translation here and at Craft's documentation, but I still haven't found the answer.
What I want achieve here is having let's say UK instead of British English.
I found paragraph in documentation:  
{{ "Welcome, {name}"|t({ name: user.friendlyName }) }}

that says: If your text contains dynamic variables, add tokens to the string where they should go, and pass an object to the t filter that contains their values
Could anything like that work by passing object to _locale.php in /translations folder and set other value? Tried, without effect.
Theoretically it could work, craft would pass the object of an active locale to our translation's file.
Any advice, so I don't waste time on something that can't be done.

**Tags:** localization

> **Comments:**
> **username_1**: Did you read this: ["How to change the locals name in Localized Sites"](http://craftcms.stackexchange.com/q/6631/125)?  
> **username_0**: First find. I will consider this as a second option.  

---

## 1 answers

### Answer by username_1 on 2015-02-21. Score: 3 | Accepted answer

Can't be done, don't waste your time.

Only thing that could work is via a [static translations](http://buildwithcraft.com/help/static-translations) file, but the CP gets locale name data directly from that yii language file, so this is your only chance (see [dupe question](https://craftcms.stackexchange.com/q/6631/125)). Other things can be overwritten though, e.g `'Users' => 'Members'`.


---

