Translate discobot tutorial certificate?

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

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.

3 个赞

Only

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

4 个赞

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?

3 个赞

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.

6 个赞

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

2 个赞

很抱歉再次顶起这个话题。我的一个用户完成了整个 Discobot 教程,但其证书图片未能加载。我认为这是因为他们的名字是日文。请问是否还存在这样的 bug:如果名字不是英文,证书 SVG 就无法生成?

之前曾有人发布过另一个关于此问题的帖子,但已关闭:Bug when discobot assigns the name in the certificate - #24

嗯,看起来这位用户遇到了和我一样的 bug:https://meta.discourse.org/t/discobot-tutorial-certificate-blank/86925/9

在查看我的防火墙规则后,我发现我已经允许了 HTTP 和 HTTPS 的入站连接:

用户至少获得徽章了吗?

在我看来,这个证书只是个新奇玩意儿。

是的,他们获得了徽章。

论坛 URL 和用户 ID 是什么?

我通过私信发给你了。

关于这个问题有什么更新吗?我的网站似乎所有用户都遇到了证书损坏的问题。

当你以管理员身份尝试加载 /discobot/certificate.svg?date=Jul+21+2020&user_id=1 时会发生什么?

这是一个示例:https://forum.duelistsunite.org/discobot/certificate.svg?date=Jul+20+2020&user_id=16

它显示:“您向请求提供了无效参数:必须包含日期”。

如果我访问他们的个人资料,他们确实拥有该徽章。

您能加载

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

吗?

服务器上的某些配置不正确。

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

提示我存在日期问题。

我看不到 SVG。它显示了关于日期的消息。我使用的是官方的 Discourse 镜像。其他一切对我来说都正常。Discourse Doctor 没有显示任何错误。Launcher 重建也没有显示任何内容。关于日期,可能有什么配置不正确?

你的 discourse local dates default timezones 是有效的时区吗?

[编辑] 如果你需要检查有效的时区:

https://www.php.net/manual/en/timezones.php

1 个赞