Search bar tips text replacement not applying

We’re changing some of the default Discourse terms for use in our forum (eg. Category to Forum, Topic to Thread) and ran into an issue with the search bar tips.

I’ve changed what seems to be the correct Site Text, though it’s possible these are not correct since I couldn’t verify it against a translation using enableverboselocalization.

In the attached screenshot, I’ve underlined the text we’re trying to change and circled the site text I suspect is the correct counterpart. Something curious I noticed just before taking this was that when I clicked Edit on js.search.tips.status it showed the text as “filters by topic status” but still had the “edited” highlight on it.

Any help or insight would be greatly appreciated!

2 Likes

Welcome to Meta :wave:

Just to be sure, because this happens as an error from time to time: Is your interface language also English US?
Did you reload after making the change? How long did you wait after making the change? Sometimes it takes a little while because texts are cached.

2 Likes

Hmm there may be a bug here so I’m going to recategorize this, perhaps the tip is rendered before the translation override system can change it? I can reproduce this on a test site as well.

I even cleared cache, restarted my server, tried different browsers, etc… I can call the correct edited translation in the browser console, but it never renders in search.

2 Likes

Thanks for the warm welcome!

Our language is set to English US, and I’ve tried both cache refreshing, and good ol’ waiting, as we noticed this yesterday. We were originally thinking that could solve it as well since clicking the search bar, then clicking off it, then clicking back on it in the same session will return a new tip, but it’s possible we just need to be more patient.

2 Likes

I’d trust Kris if he says it’s a bug.

This just reminded me of a problem I had a while ago where I had changed the text for the category and tag dropdown, but for days it only worked sometimes.

.

But it looks like it’s not the problem in this case, and I never tried to find out why the texts worked like that.

1 Like

We guessed it was rendering somewhere else too since it could show different lines without reloading the page, but we hoped it would resolve itself after a short while.

Always glad to help stomp a bug!

1 Like

Nice catch, we seem to have a few translations that aren’t dynamically modifiable via the Site Text feature because they’re backed in the JS bundle instead of being lazily evaluated at runtime.

I have a draft PR but I need to ensure it’s not breaking any of the plugins / themes

1 Like