Difficulty translating certain fields in reddit-ish theme

AI-generated summary

A user, MCATAKCIN, is having trouble translating certain fields in the Reddit-ish theme for Discourse. Moin explained that the texts are hard-coded and can only be changed by modifying the code. To avoid losing changes during updates, Moin suggested forking the theme and installing a custom version.

Moin also mentioned that the best solution would be to make the strings translatable. awesomerobot agreed and welcomed a pull request to make the change.

Eventually, awesomerobot updated the theme, making the text translatable. The user, MCATAKCIN, was able to translate the fields and provided feedback, pointing out that one field in the right sidebar still couldn’t be translated.

Hi guys (:

I am using this theme and I want to make some parts Turkish. A reddit-ish theme for Discourse

But I couldn’t find exactly where I can change these places. I’m using Discourse 14-day demo. I’ll publish it after these edits.

How can I do it?

Thanks in advance!

Those texts are hard coded into the theme.
At them moment the omly way to change them is changing them in the code.

as i predicted, thanks! :index_pointing_at_the_viewer:

Does the discourse need to be hosted on my server so that I can make changes to the code?

More importantly, if I make changes inside the theme, won’t these changes be lost after the update?

No it doesn’t. You can fork the theme and install your own version at your forum. But you would have to update your forked theme when the original one is updated. That usually shouldn’t be that complicated.

But the best solution is to actually make those strings translateable. @awesomerobot would that be pr-welcome ?

Hey, you cant change it from

https://yoursite/admin/customize/site_texts?q=

And from the theme component config who shows the “Recent topics”?

Are you sure those are shown in the theme config?

This is not <h4>{{i18n (themePrefix "sidebar.recent_topics")}}</h4>

Yes this is right, they’re not translatable until this is done. A pr to make this change would be welcome! Otherwise I can get to it early next week.

I appreciate you!

For 1 week i tried all themes, and for me your theme was the most efficient in terms of UX quality (the fullwith component was a bit problematic, but I solved it with custom css).

The only thing left is some strings that need to be translated.

Let’s finish this game!

I’ve just made an update to the theme that makes this text translatable.

“replies” and “share” will use our default translations, so those should work automatically… and the rest of the text can be edited from the bottom of the theme’s settings page at admin/customize/themes

You’re the best Kris! :index_pointing_at_the_viewer: @awesomerobot

When I was on the site, I saw the update notification live. I said, I wonder if it’s what I think it is? Yes! I’m new here and I’m curious. Why don’t you sell these themes for a fee? Or can’t you sell them? I haven’t seen anyone selling. But the effort you put in definitely deserves it. :fist_right: :fist_left:


Everything works perfectly. I can only give a little feedback. The field in the right sidebar could not be translated. But that’s okay. It’s a great job. I love you…