# New option: auto-select language by HTTP header

**URL:** <https://meta.discourse.org/t/new-option-auto-select-language-by-http-header/35697>\
**Category:** Feature\
**Created:** [17. November 2015 um 14:34 UTC](https://meta.discourse.org/t/new-option-auto-select-language-by-http-header/35697 "2015-11-17T14:34:24Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![fbender](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fbender/32/116736_2.png) [@fbender](https://meta.discourse.org/u/fbender)\
**Post date:** [19. November 2015 um 13:51 UTC](https://meta.discourse.org/t/new-option-auto-select-language-by-http-header/35697/10 "2015-11-19T13:51:15Z")

</div>

I’m sorry but there is an error somewhere:

```plaintext
Started GET "/" for x.x.x.x at 2015-11-19 13:44:56 +0000
Processing by CategoriesController#index as HTML
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `ensure_all_loaded!' for I18n:Module)
/var/www/discourse/plugins/variable-language/plugin.rb:35:in `set_locale'

```

I added the plugin in the container configuration file:

```plaintext
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/scossar/variable-language.git

```

… and rebuilt the container. Afterwards, I received a 500 (see log above).

May you have a look at that, please?

---

_[View the full topic](https://meta.discourse.org/t/new-option-auto-select-language-by-http-header/35697)._
