# Changing default locale with incomplete locale file resulted in white page and error

**URL:** https://meta.discourse.org/t/changing-default-locale-with-incomplete-locale-file-resulted-in-white-page-and-error/41927
**Category:** Support
**Created:** [4월 2, 2016, 11:54오전 UTC](https://meta.discourse.org/t/changing-default-locale-with-incomplete-locale-file-resulted-in-white-page-and-error/41927 "2016-04-02T11:54:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Zoltan\_Szathmary](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zoltan_szathmary/32/53277_2.png) [@Zoltan\_Szathmary](https://meta.discourse.org/u/Zoltan_Szathmary)
#### Post date: [4월 2, 2016, 11:54오전 UTC](https://meta.discourse.org/t/changing-default-locale-with-incomplete-locale-file-resulted-in-white-page-and-error/41927/1 "2016-04-02T11:54:12Z")

</div>

I wanted to change the locale of my discourse site from \_en to \_hu. When I did that in the admin settings / basic settings, the page came back white with a 404 error on the hu.js.

javascripts/locales/hu.js

Any recommendation how to set it back to english would be much appreciated!

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [4월 2, 2016, 12:30오후 UTC](https://meta.discourse.org/t/changing-default-locale-with-incomplete-locale-file-resulted-in-white-page-and-error/41927/2 "2016-04-02T12:30:29Z")

</div>

> [@Zoltan\_Szathmary](#):
>
> I wanted to change the locale of my discourse site from \_en to \_hu.

I can’t see `hu` as the available locale?

 ![](https://global.discourse-cdn.com/meta/original/3X/9/1/916a9ab7b4f0acdd1941fc894c7a49709b6dd1f2.png)

What language did you choose? Also, what’s the URL of your Discourse instance?

---

<div class="post-metadata">

### Author: ![Zoltan\_Szathmary](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zoltan_szathmary/32/53277_2.png) [@Zoltan\_Szathmary](https://meta.discourse.org/u/Zoltan_Szathmary)
#### Post date: [4월 2, 2016, 12:53오후 UTC](https://meta.discourse.org/t/changing-default-locale-with-incomplete-locale-file-resulted-in-white-page-and-error/41927/3 "2016-04-02T12:53:34Z")

</div>

The instance is [discourse.inepex.net](http://discourse.inepex.net/) .

I choose HU. There was a HU locale, without searching I just rolled down in the list and found it. (hu for hungarian of course)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [4월 2, 2016, 1:10오후 UTC](https://meta.discourse.org/t/changing-default-locale-with-incomplete-locale-file-resulted-in-white-page-and-error/41927/4 "2016-04-02T13:10:07Z")

</div>

Strange, I don’t see “HU” locale on my local Discourse instance, or here on meta.

Anyways to fix this issue, run these commands on your server:

```plaintext
cd /var/discourse
./launcher enter app
rails c
SiteSetting.default_locale = 'en'

```

This should change your locale back to English.

---

<div class="post-metadata">

### Author: ![Zoltan\_Szathmary](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zoltan_szathmary/32/53277_2.png) [@Zoltan\_Szathmary](https://meta.discourse.org/u/Zoltan_Szathmary)
#### Post date: [4월 2, 2016, 1:13오후 UTC](https://meta.discourse.org/t/changing-default-locale-with-incomplete-locale-file-resulted-in-white-page-and-error/41927/5 "2016-04-02T13:13:22Z")

</div>

We will try it and notify you with the results, thanks for the help.

---

<div class="post-metadata">

### Author: ![Zoltan\_Szathmary](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zoltan_szathmary/32/53277_2.png) [@Zoltan\_Szathmary](https://meta.discourse.org/u/Zoltan_Szathmary)
#### Post date: [4월 4, 2016, 7:17오전 UTC](https://meta.discourse.org/t/changing-default-locale-with-incomplete-locale-file-resulted-in-white-page-and-error/41927/6 "2016-04-04T07:17:27Z")

</div>

Hello again!

It turned out that we here at my company created a test locale, but it wasn’t finished (not even started, per se), but we had a file remaining on the server that the discourse thought to be a valid locale file. That’s why I could find \_hu, even if it wasn’t finished on our side.

So the mistake was on our side as we didn’t cooperate and talk it through.

Still, it might pose a bug, as discourse didn’t know how to handle this situ but came back blank instead. Might be worth looking into.

Thanks for the help and the quick response, saved my day. Cheers!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4월 4, 2016, 7:22오전 UTC](https://meta.discourse.org/t/changing-default-locale-with-incomplete-locale-file-resulted-in-white-page-and-error/41927/7 "2016-04-04T07:22:56Z")

</div>


