使用 MediaWiki 的集合扩展时,侧边栏上的语言标记未翻译
我正在使用 MediaWiki 的 Collection 扩展,以允许根据我的 wiki 中的内容生成 PDF 书籍。当我退出 wiki 时,扩展工作正常,主页上的侧边栏包含:
Print/export
Create a book
Download as PDF
Printable version
但是,当我登录时,侧边栏包含:
coll-print_export
<coll-create_a_book>
<coll-download_as>
Printable version
我已经验证了 coll-print_export、coll-create_a_booklet 和 coll 的标记翻译-download_as 及其关联的工具提示条目存在于“en”消息数组中,并且我的系统和配置文件语言设置为 en。
然而,我登录时显示的是语言标记,而不是翻译。我也测试了多个用户的登录。该问题似乎与 Collection 扩展无关,因为侧边栏的所有其他部分都按预期工作。另请注意,虽然可打印版本出现在打印/导出菜单下,但它似乎未定义为集合的一部分,并且似乎工作正常。
对于我可以在哪里找到此问题的解决方案的任何帮助或建议,我们将不胜感激。
I am using the Collection extension for MediaWiki to allow for generation of PDF books based on content located in my wiki. When I am logged out of my wiki, the extension works fine and the sidebar on the Main Page contains:
Print/export
Create a book
Download as PDF
Printable version
However when I log in the sidebar contains:
coll-print_export
<coll-create_a_book>
<coll-download_as>
Printable version
I've verified that the tokens' translations for coll-print_export, coll-create_a_booklet and coll-download_as exist, along with their associated tooltip entries, in the 'en' messages array, and that my system and profile language are set to en.
Nevertheless, the display when I am logged in is the language token, not the translation. I've tested logins with multiple users as well. The issue seems isolated to the Collection extension, as every other part of the sidebar works as expected. Also, note that while Printable Version appears under the print/export menu, it appears to not be defined as part of Collection, and it appears to be working fine.
Any assistance or advice for where I can look to identify the resolution for this problem is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因为它只在您登录时发生,所以我怀疑这取决于您的偏好,可能是您的界面语言。正如克里斯蒂安所说,它很可能是系统消息的缓存。
尝试
php Maintenance/rebuildLocalizationCache.php --force
。Because it only happens when you login, I suspect it depends on your preferences, probably your interface language. As Christian said, it's likely to be cache for the system messages.
Try
php maintenance/rebuildLocalisationCache.php --force
. https://www.mediawiki.org/wiki/Manual:RebuildLocalisationCache.php