Discourse Daily Challenges

The mentions only work in topic. The bot will then send a PM with the response. I did not test functionality with using system as the bot, so I have no idea if that will work.

1 Like

Can I help translate into my language? Is there any form that allows me to translate from English to Portuguese on GitHub?

That would be great. I have no idea what’s involved with translating. Let me do some research.

1 Like

The Discourse team uses Crowdin for translations. For plugins that don’t use a localization platform there is this guide

3 Likes

Thank you! I’ll look into Crowdin.

1 Like

Alright. I think I got Crowdin set up correctly for this plugin. You should be able to click on this link and provide translations:

FYI: Anyone else that wants to provide translations in their languages is welcome as well! I set it up to have the 30 most popular. If yours isn’t in the list, let me know and I’ll get it added.

2 Likes

You might be interested in: Always use %{count} variable when translating pluralized strings

There are languages that use ā€œoneā€ not only for 1 but also for other numbers ending in 1, something like ā€œafter 20 and 1 dayā€. That’s why it’s easier if you stick to count in English too. Then translators don’t have to keep that in mind.

There are also languages with different plurals depending on the count (e.g., few, many, other) which makes it necessary to add a ā€˜one’ version for English on texts that will never be used in singular for Crowdin to detect that this text needs pluralization, allowing translators to enter the different versions.

1 Like

I’ll take a look at that.

1 Like

Question: In Crowdin, how do you configure the translated file path? This is what I currently have:

/config/locales/client.%locale_with_underscore%.yml

But, I’m not sure that is correct?

I have never setup Crowdin. I usually only use it to translate Discourse.

But I think you somehow need to match the language codes and language codes with locale identifiers as they are used in Discourse core (for example de, but pl_PL). Maybe gerhard can help

Yeah. That is the issue I’m running into. There is no way to tell it how to do that (that I can tell).

Alright! Claude and I worked through everything, and I think we have Crowdin working correctly now. Feel free to translate away!

1 Like

Done! thank you for this

1 Like

Awesome! I’ll merge it to the main branch!

2 Likes