Translate discobot tutorial certificate?

AI-generated summary

The discussion revolves around translating the Discobot tutorial certificate and generating certificates for users with non-English names. gxjansen initiated the conversation, asking about translating the certificate text or uploading custom backgrounds. tgxworld mentioned that only a specific locale file is translatable, while the rest of the text is part of an SVG.

Lure shared their experience translating the Discobot certificate for Slovenian, but encountered issues with font support for non-English characters. gerhard suggested shipping customized SVGs for each language, but acknowledged the complexity of translating text within the SVG.

AntiMetaman reported an issue with generating certificates for users with non-English names, which led to a discussion about the potential cause. Falco and IAmGav investigated the issue, suspecting a configuration problem with the server. After some troubleshooting, AntiMetaman discovered that the issue was related to Cloudflare settings and shared a solution for users with similar problems.

Is there a way to translate the text on the discobot tutorial certificate? Or a way to upload our own background that’s used for the certificate (so we can just edit the text on the image)?

Hmm, I’m not sure if that’s possible or not. @tgxworld?

Had already answered but the response was canceled cleaning the topic Discourse Narrative Bot Beta Feedback - #190 by tophee

If I remember correctly the problem was something related to the rendering in other languages, that’s why he used an image, but months have passed, I might be wrong.

Only

is translatable. The other “text” are actually vectors within an SVG.

I have translated the entire discobot into Slovenian and noticed that only one string on the certificate is translated. However, even this string uses a font that does not support all Slovenian characters (č, š, ž are being replaced with a fallback font):

Are there any plans to improve this certificate generation, or is it better to assume that the certificate is non-translatable and leave it in English?

Appreciate the effort.. this one is tricky, since the vector “art” and the words are intertwined.

Translating text in that SVG is nearly impossible, because most “text” is actually a vector. I guess we could start shipping customized SVGs for each language. Translators would need to create SVGs which work for their language by moving stuff around to make room for longer words etc.

Also, we might need to use a different font for the name when we start supporting Unicode usernames. Currently the Tangerine font is used.

I understand - for now, I will just fallback to English-only, no translation version.

Désolé de remonter ce sujet. L’un de mes utilisateurs a terminé l’intégralité du tutoriel discobot, mais son image de certificat ne s’est pas chargée. Je pense que c’est parce que son nom est en japonais. Ce bug existe-t-il toujours, à savoir que si le nom n’est pas en anglais, le SVG du certificat ne peut pas être généré ?

Un autre sujet à ce sujet a été publié mais est fermé : Bug when discobot assigns the name in the certificate - #24

Hmm, il semble que cette personne ait rencontré le même bug que moi : https://meta.discourse.org/t/discobot-tutorial-certificate-blank/86925/9

En examinant mes règles de pare-feu, j’autorise déjà les connexions entrantes sur http et https :

L’utilisateur a-t-il au moins obtenu le badge ?

À mon avis, la certification n’est qu’une curiosité.

Oui, ils ont reçu le badge.

Quelle est l’URL du forum et l’ID de l’utilisateur ?

Je vous l’ai envoyé par MP.

Des nouvelles à ce sujet ? Les certificats défectuels semblent toucher tous les utilisateurs de mon site.

Que se passe-t-il lorsque vous, en tant qu’administrateur, essayez de charger /discobot/certificate.svg?date=Jul+21+2020&user_id=1 ?

Voici un exemple : https://forum.duelistsunite.org/discobot/certificate.svg?date=Jul+20+2020&user_id=16

Il est indiqué : « Vous avez fourni des paramètres invalides pour la requête : la date doit être présente ».

Si je consulte leur profil, ils ont bien le badge.

Pouvez-vous charger

https://forum.duelistsunite.org/discobot/certificate.svg?date=2020-07-20&user_id=16

?

Quelque chose n’est pas correctement configuré sur le serveur.

Le lien : https://forum.duelistsunite.org/discobot/certificate.svg?date=Jul+21+2020&user_id=18

me donne une erreur de date.

Je ne peux pas voir le SVG. Il affiche un message concernant la date. J’utilise l’image officielle de Discourse. Tout le reste fonctionne pour moi. Discourse Doctor ne signale aucune erreur. Le rebuild du launcher ne montre rien. Qu’est-ce qui pourrait ne pas être correctement configuré en ce qui concerne la date ?

votre discourse local dates default timezones est-il un fuseau horaire valide ?

[Edit] Au cas où vous auriez besoin de vérifier vos fuseaux horaires valides :