# Search help doesn't work for some locales

**URL:** https://meta.discourse.org/t/search-help-doesnt-work-for-some-locales/31350
**Category:** Bug
**Tags:** translation
**Created:** [23.Июль.2015 12:54:24 UTC](https://meta.discourse.org/t/search-help-doesnt-work-for-some-locales/31350 "2015-07-23T12:54:24Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ndalliard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ndalliard/32/44338_2.png) [@ndalliard](https://meta.discourse.org/u/ndalliard)
#### Post date: [23.Июль.2015 12:54:24 UTC](https://meta.discourse.org/t/search-help-doesnt-work-for-some-locales/31350/1 "2015-07-23T12:54:24Z")

</div>

Continuing the discussion from [Search help doesn't work in RU locale](https://meta.discourse.org/t/search-help-doesnt-work-in-ru-locale/23354/5):

> [@Bogdan\_Bondar](#):
>
> Oh! It seems a bug with localization. Im using ru locale, try to switch to en and it works fine.  
> Im on 1.2.0.beta4

The same happens to me when I use DE locale, then the help button from the search doesn’t work. When I switch over to EN locale it works flawless. Any ideas how to fix that? Do I have to translate something?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [04.Август.2015 09:09:30 UTC](https://meta.discourse.org/t/search-help-doesnt-work-for-some-locales/31350/2 "2015-08-04T09:09:30Z")

</div>

No need to translate anything. This is a bug.  
AFAIK the search help works only for English, all other languages result in an Error 404 when `https://meta.discourse.org/static/search_help.html` is requested.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [19.Август.2015 22:29:22 UTC](https://meta.discourse.org/t/search-help-doesnt-work-for-some-locales/31350/3 "2015-08-19T22:29:22Z")

</div>

I did look into this issue. This seems to be a problem with the localization fallback.  
The translation is available, but it looks like `I18n.exists?` doesn’t use the fallback.

> <https://github.com/discourse/discourse/blob/d37c2a2c98a83eb65b7fe520a8ffcdddc1207299/app/controllers/static_controller.rb#L39-L42>

@riking I’m not sure how to solve this. Can you please take a look at this?

---

<div class="post-metadata">

### Author: ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)
#### Post date: [11.Сентябрь.2015 21:51:13 UTC](https://meta.discourse.org/t/search-help-doesnt-work-for-some-locales/31350/4 "2015-09-11T21:51:13Z")

</div>

Well, it works for zh\_CN. [https://meta.discoursecn.org/](https://meta.discoursecn.org/) It’s v1.4.0.beta11 +93

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [11.Сентябрь.2015 21:59:04 UTC](https://meta.discourse.org/t/search-help-doesnt-work-for-some-locales/31350/5 "2015-09-11T21:59:04Z")

</div>

Yes, it works, because the translation for `static.search_help` exists for zh\_CN.  
I corrected my post in the other topic:

> [@Infrequent translation updates in stable branch](https://meta.discourse.org/t/infrequent-translation-updates-in-stable-branch/31213/7):
>
> Clicking the search options doesn’t work for languages where the search help isn’t translated yet. The fallback to English doesn’t work.

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [16.Сентябрь.2015 17:58:14 UTC](https://meta.discourse.org/t/search-help-doesnt-work-for-some-locales/31350/6 "2015-09-16T17:58:14Z")

</div>

Just added the German locale for that string on Transifex - as an “incremental fix” for this bug… 😄

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [19.Сентябрь.2015 21:41:20 UTC](https://meta.discourse.org/t/search-help-doesnt-work-for-some-locales/31350/7 "2015-09-19T21:41:20Z")

</div>

This should fix it for all languages:  
[https://github.com/discourse/discourse/pull/3792](https://github.com/discourse/discourse/pull/3792)

---

<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: [20.Сентябрь.2015 21:44:47 UTC](https://meta.discourse.org/t/search-help-doesnt-work-for-some-locales/31350/8 "2015-09-20T21:44:47Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
