Fandom Developers Wiki

This is the talk page for discussing improvements to the Global Lua Modules/I18n page.

Docbunto[]

Could this module documentation be generated by Docbunto? I've dumped the documentation in my sandbox if you'd like to compare. tends2waffle 01:45, April 9, 2020 (UTC)

Aside from the removed <nowiki> tags around {{int:lang}}, the changes look good. Thanks for adding Docbunto markup (and Docbunto, for that matter)! -- Cube-shaped garbage can 01:07, April 16, 2020 (UTC)

User language bug[]

Spreading awareness there is a bug in the library usage of i18n.loadMessages caused by legacy Scribunto.

The issue is that i18n.getLang() calls mw.getCurrentFrame when messages are loaded at the top of a module. However, because mw.executeFunction was not called yet by Scribunto, there is no "current frame". This prevents users from seeing the dependent module's messages in the user language.

From localhost testing on core MediaWiki, it appears that this issue is fixed upstream. There's code to handle frame fetching when executing a module.

tends2waffle 00:21, May 19, 2020 (UTC)

Whitespace trimming and management[]

I've sniffed around and checked out the tech stack here. Why is the output of this module trimmed?

mw.msg does not do trimming. I think its better to trim it newlines only MUNEME (talk) 20:10, 8 November 2021 (UTC)