I’m reaching out on behalf of someone else who doesn’t have access to Meta anymore. I don’t recall the username, but on Sitepoint he goes by @ogsocials (his username on Meta was @o.g).
In short, he is having issues with the Turkish translation and customizing site text. After digging into it tonight, the issue is quite clear, the Turkish Translations needs some love and other languages may be in the same situation.
First let’s look at the request I received:
“The reply button is in english and I’d like to customize it to Turkish”
Seems simple enough, Customize Site Text should be sufficient, right? Well, not so fast.
It ends up the Turkish translation does not have the appropriate keys for the Reply button.
https://github.com/discourse/discourse/blob/master/config/locales/client.tr_TR.yml#L1352-L1354
As you can see, it has reply
with sub-keys title
and help
.
The English version is very different:
https://github.com/discourse/discourse/blob/master/config/locales/client.en.yml#L1562-L1568
There is another layer of keys that does not exist in the Turkish language and as such, and I’ve confirmed on my sandbox, when in Turkish, you cannot customize these keys. They show up in a search, but the customization does not take. I imagine this is because the Turkish file itself does not have the appropriate structure so it continues to fallback to English, but I’m guessing here (as I’m not 100% well versed in translations).
All I can say is I did the following to verify it is impossible to translate the post or topic reply buttons.
- Set your default locale to Turkish
- Go to Customize > Site Text
- Search for ‘Reply’
- Click on
js.topic.reply.post.title
- Customize the Text and Save it
- Navigate to topic, refresh the page, text has not updated
I have a feeling that Transfix needs to be updated first for this issue to resolve itself and permit users in the Turkish language to customize their site text, but again, I could be wrong here. Can anyone a bit more versed in Translations give this a quick lookover and verify what I’ve uncovered?