Search help doesn't work for some locales

translation

(Nate D.) #1

Continuing the discussion from Search help doesn't work in RU locale:

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?


Always enable localization fallback
Infrequent translation updates in stable branch
(Gerhard Schlager) #2

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.


(Gerhard Schlager) #3

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.

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


(Erick Guan) #4

Well, it works for zh_CN. https://meta.discoursecn.org/ It’s v1.4.0.beta11 +93


(Gerhard Schlager) #5

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


(Joe Seyfried) #6

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


(Gerhard Schlager) #7

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


(Jeff Atwood) #8

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