多语言插件 🌐

Hey all, thanks for your patience on this plugin. I’ve now

  1. Fixed the various issues that were arising when using the plugin with the latest code
  2. Updated the frontend and backend tests to support the new code
  3. Integrated it into our CI system to monitor any issues going forward
  4. Re-added it to try.thepavilion.io

try.thepavilion.io is Pavilion’s public staging site that’s updated to the latest discourse every 24 hours. You can see for yourself whether the issue you’re interested in is addressed there, and test the feature set. For example if you have you content languages set to French and Italian, and your interface language (aka locale) set to French, you’ll see this

I’ve closed some old issues on the repo, and asked for the recently created ones (the feature requests in any event) to be submitted at thepavilion.io. Please report any further issues, or make any feature requests using the bug report or feature request wizards on thepavilion.io.

4 个赞

An error occurs in the console on the plugin page - /admin/multilingual/languages
Uncaught Error: There is no route named tags.show

And the changes are not saved (Internal Server Error)

1 个赞

Hello @angus,
I have problem on my fresh self-hosted discourse. Every time when I push save changes I get blank modal with “Internal Server Error” title. After hit ok, the plugin page is blank, but settings are saved.
Next, when I try to add other language to exist, the checkboxes which was previously checked after save are uncheck. So when I want to add a new language I must uncheck everything, save, and now check this one which I want.
Also I sometimes notice the settings reset to default just after night.

1 个赞

I’ve merged in an update from vcoffey (sorry Vern, couldn’t find you here), who’s supported by @oreillyc. I’ve also made various updates to the plugin today.

@hiddenlucas Please upgrade and test it again. If you have any further issues please fill out a bug report here: Bug Report

You can test this plugin here: https://try.thepavilion.io/

2 个赞

Hello,

Is this a bug or on purpose ?

Screenshot from: https://try.thepavilion.io/ but I have the same problem.

The language tag is not appearing in the tag dropdown menu making it difficult to filter topics using the tag. The reason I found is simply because the anchor is missing from the list item: <a data-tag-name="en" class="discourse-tag box">en</a>

If you add it it displays properly:

1 个赞

Thanks, that’s been addressed. See: https://try.thepavilion.io

3 个赞

Hi @angus,

Is it possible to select specific interfaced languages that will be shown in the guest language switcher (at header)? Currently the switcher will show many languages in the drop down menu. I didn’t find the code that controls the languages. Any guide will be appreciated.

2 个赞

我已经解决了此插件的各种兼容性问题。请更新插件和 discourse,它将按预期工作。

4 个赞

你好,

首先,感谢你所做的所有出色工作。

我已经在一个新论坛上安装并启用了这个插件和 discourse translator 插件。翻译 API 工作正常,但我原本以为,通过这个插件可以自动显示非用户所说的帖子的翻译,并以他们各自的语言显示。

基本上,在一个理想的世界里,有理想的翻译,一个只说法语的人会浏览论坛(假设论坛是英文的),并且看到所有内容都是用法语写的。

是我对这个功能理解错了?这个插件无法实现这一点吗?

3 个赞

对于最近联系我关于让类别和标签翻译生效的各位,也就是此处描述的功能:

您联系的时机非常合适 :slight_smile: Pavilion 的一位客户目前正希望在当前的 Discourse 上实现该功能,因此我和 @merefield 将在五月/六月进行相关工作。准备就绪后,我们会在此处发布更新。

这目前不是该插件的功能,但未来可以添加。请参阅此处的文档,特别是下面加粗的部分。这正是与 Translator 插件的集成目前所做的事情。

Discourse Translator 同步

如果您已:

  1. 安装了 Discourse Translator 插件
  2. 启用了 Translator 插件;
  3. 启用了 Multilingual 插件;以及
  4. 启用了内容语言

您可以启用 multilingual translator content tag sync(除非所有四项都为真,否则您将无法启用它)。

同步会自动将主题中帖子的检测语言应用为内容语言,只要检测到的语言与您网站上启用的内容语言匹配。

9 个赞

您好,

当我激活此插件时,我的旧标签出现“内部服务器错误”
我在编辑器中为新帖子选择标签时遇到此错误。

3 个赞

我明天会看看这个,然后回复你。

2 个赞

我也发现了一些关于标签的问题:

2 个赞

@cmdntd 此问题已得到解决,插件可以再次安全使用。感谢您的报告。

7 个赞

您好,

当我使用此插件时,“强制小写标签”选项不起作用。
我没有勾选此选项,但所有标签都已更改为小写文本。

您能否检查一下这个问题?

2 个赞

您好,我设置了“多语言要求内容语言标签”选项。

但它只对我(管理员)是必需的。它不要求其他用户提供语言标签。
您能检查一下吗?

我已再次检查。现在没问题了。

3 个赞

很高兴你解决了 :+1:

请注意,@merefield 目前正在处理此插件,包括错误修复和自定义翻译功能。这项工作预计将于 6 月底完成。

3 个赞

好的,语言爱好者们,我们合并了几个修复程序,希望该插件现在更加有用:

那些需要支持大小写混合代码的语言的用户现在应该可以使用了:

@4ong 请确认这是否解决了您的问题。

一个允许语言内容标签不希望地出现在标签页面上的错误现在应该已经修复:

作为我们重新关注确保这些问题不再出现的一部分,我们努力包含了涵盖这些特定场景的测试。

一如既往,请更新并让我们知道您是否遇到这些场景的任何问题。

6 个赞

是的。我很高兴!谢谢!

3 个赞

您好。我非常希望能够翻译类别描述。仅翻译类别名称几乎没有用

2 个赞