⚓ T359918 Lua interface for convenient access to translations in a message bundle
Page Menu
Phabricator
Create Task
Maniphest
T359918
Lua interface for convenient access to translations in a message bundle
Closed, Resolved
Public
16 Estimated Story Points
Actions
Edit Task
Edit Related Tasks...
Create Subtask
Edit Parent Tasks
Edit Subtasks
Merge Duplicates In
Close As Duplicate
Edit Related Objects...
Edit Commits
Edit Mocks
Mute Notifications
Protect as security issue
Assigned To
abi_
Authored By
Nikerabbit
Mar 12 2024, 9:50 AM
2024-03-12 09:50:50 (UTC+0)
Tags
MediaWiki-extensions-Translate
(message bundles)
Localization Infrastructure FY2023-24
(Translatable modules (LH2))
MW-1.43-notes (1.43.0-wmf.12; 2024-07-02)
MW-1.44-notes (1.44.0-wmf.3; 2024-11-12)
LPL Essential (LPL Essential 2024 Nov-Jan)
(Done)
User-notice-archive
(Backlog)
Referenced Files
None
Subscribers
abi_
Aklapper
Amire80
cscott
GMikesell-WMF
Nikerabbit
Quiddity
Tacsipacsi
Description
Wikimedia projects extensively use templates and Lua modules for critical features like infoboxes, and welcome messages. These are developed by skilled community members and are essential for the functionality and user experience across multiple languages. Despite their complexity and importance, templates and modules lack a framework for internationalization and localization, unlike MediaWiki extensions.
This video goes over the problem that we are trying to solve in more detail:
You can also read:
Create a Lua module that will allow modules to access the strings defined in a
message bundle
Current status
The functionality is enabled on testwiki.
Documentation about the Module API:
Current challenges:
Some notes for testing out the functionality:
Details
Related Changes in Gerrit:
Subject
Repo
Branch
Lines +/-
Translate: Enable message bundle Scribunto module on testwiki
operations/mediawiki-config
master
+6
-0
Enable message bundle and Scribunto Lua module integration
translatewiki
master
+3
-0
MessageBundle: When normalizing translation key remove prefixed title
mediawiki/extensions/Translate
master
+2
-1
MessageBundleLuaLibrary: Handle parser cache expiry for dependents
mediawiki/extensions/Translate
master
+121
-0
MessageBundleLibrary.lua: Code improvements
mediawiki/extensions/Translate
master
+14
-18
MessageBundleLibrary.lua: Add method documentation
mediawiki/extensions/Translate
master
+14
-5
MessageBundleLibrary.lua: Remove API access to skipFallback param
mediawiki/extensions/Translate
master
+13
-5
MessageBundleLuaLibrary: Add ability to skip loading fallbacks
mediawiki/extensions/Translate
master
+37
-12
MessageBundleLibrary.lua: Add method to load all translations
mediawiki/extensions/Translate
master
+5
-2
MessageBundleLibrary.lua: Return message object from t() method
mediawiki/extensions/Translate
master
+2
-1
MessageBundleLuaLibrary: Add page language code in module options
mediawiki/extensions/Translate
master
+6
-3
MessageBundleLuaLibrary: Load translations from fallback
mediawiki/extensions/Translate
master
+66
-8
MessageBundleLibrary.lua: Change the way translations are requested
mediawiki/extensions/Translate
master
+17
-10
MessageBundleLuaLibrary: Load the translations from MessageBundle
mediawiki/extensions/Translate
master
+37
-6
MessageBundleLuaLibrary: Add code to validate the message bundle
mediawiki/extensions/Translate
master
+16
-0
POC: Add a sample Lua library to access message bundles
mediawiki/extensions/Translate
master
+122
-2
MessageBundleLuaLibrary: Improve error handling
mediawiki/extensions/Translate
master
+25
-5
MessageBundleLibrary.lua: Add loadDefaultTranslations method
mediawiki/extensions/Translate
master
+4
-0
Translate: Add phan dependency on Scribunto
integration/config
master
+1
-1
Translate: Add dependency on Scribunto
integration/config
master
+1
-1
Show related patches
Customize query in gerrit
Related Objects
Search...
Task Graph
Mentions
Status
Subtype
Assigned
Task
Open
Feature
None
T66475
Make crosswiki bits and pieces truly global (tracking)
Open
None
T176787
Automatic infobox implementation
Open
None
T121470
Central Global Repository for Templates, Lua modules, and Gadgets
Stalled
None
T52329
We need a common repository for Scribunto modules and templates
Open
None
T238341
Structured localization framework for Templates, Lua modules, and Gadgets
Open
None
T238417
Structured localization framework for Scribunto modules
Resolved
abi_
T359918
Lua interface for convenient access to translations in a message bundle
Resolved
abi_
T370342
Add link to translate message bundles
Mentioned In
T379892: Initial roll-out of Scribunto library for accessing message bundles
T370342: Add link to translate message bundles
T369894: Improve parser cache expiry mechanism for message bundle dependents
T369049: Deploy message bundle lua integration MVP to translatewiki.net and gather feedback
T365471: Wish form localization
Mentioned Here
T366934: language-translate2 filled with spambots
Event Timeline
There are a very large number of changes, so older changes are hidden.
Show Older Changes
gerritbot
added a comment.
Apr 29 2024, 2:37 PM
2024-04-29 14:37:39 (UTC+0)
Comment Actions
Change #1025380 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Load translations from fallback
gerritbot
added a comment.
Apr 30 2024, 12:35 PM
2024-04-30 12:35:36 (UTC+0)
Comment Actions
Change #1025766 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Add loadDefaultTranslations method
gerritbot
added a comment.
Apr 30 2024, 12:39 PM
2024-04-30 12:39:23 (UTC+0)
Comment Actions
Change #1025767 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Improve error handling
abi_
added a comment.
Apr 30 2024, 12:51 PM
2024-04-30 12:51:30 (UTC+0)
Comment Actions
I've been working on some POC patches, which can be found
here
. My goal is to gain a better understanding of Modules, Lua, and extending the Scribunto library. The API will be updated based on community feedback, but here are some planned changes that I think make sense:
Loading message bundles based on the page title rather than the message group ID. For example:
TMB.new("MessageBundleDemoForever")
, where
TMB
is the translatable message bundle module.
Adding language fallback support by default.
Including a method in the library to fetch translations based on the page language.
gerritbot
added a comment.
May 14 2024, 8:06 AM
2024-05-14 08:06:42 (UTC+0)
Comment Actions
Change #1025313
merged
by jenkins-bot:
[integration/config@master] Translate: Add dependency on Scribunto
gerritbot
added a comment.
May 14 2024, 12:00 PM
2024-05-14 12:00:01 (UTC+0)
Comment Actions
Change #1031178 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[integration/config@master] Translate: Add phan dependency
gerritbot
added a comment.
May 15 2024, 9:36 AM
2024-05-15 09:36:26 (UTC+0)
Comment Actions
Change #1031178
merged
by jenkins-bot:
[integration/config@master] Translate: Add phan dependency on Scribunto
gerritbot
added a comment.
May 15 2024, 2:05 PM
2024-05-15 14:05:00 (UTC+0)
Comment Actions
Change #1031591 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Add code to validate the message bundle
gerritbot
added a comment.
May 15 2024, 2:05 PM
2024-05-15 14:05:02 (UTC+0)
Comment Actions
Change #1031592 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Change the way translations are requested
gerritbot
added a comment.
May 20 2024, 1:45 PM
2024-05-20 13:45:38 (UTC+0)
Comment Actions
Change #1034082 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Add method to get page language code
gerritbot
added a comment.
May 20 2024, 1:45 PM
2024-05-20 13:45:40 (UTC+0)
Comment Actions
Change #1034083 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Add ability to skip loading fallbacks
gerritbot
added a comment.
May 20 2024, 1:45 PM
2024-05-20 13:45:41 (UTC+0)
Comment Actions
Change #1034084 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Add ability to pass params for translations
gerritbot
added a comment.
May 20 2024, 1:45 PM
2024-05-20 13:45:44 (UTC+0)
Comment Actions
Change #1034085 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Add method documentation
abi_
moved this task from
In Progress
to
In Review
on the
Language-Team (Language-2024-April-June)
board.
May 20 2024, 1:55 PM
2024-05-20 13:55:03 (UTC+0)
Tacsipacsi
mentioned this in
T365471: Wish form localization
May 22 2024, 9:06 AM
2024-05-22 09:06:13 (UTC+0)
Comment Actions
It just came into my mind that the current patches don’t return any information on the status of the translations (language, fuzziness) other than the ability to disable fallbacks. Users of this Lua interface may want to use similar markup as Translate’s page translation feature to indicate that a translation is fuzzy or missing. So I think that given a message key and a language, it should be possible to get a Lua table with the following information (either as table keys or as methods):
state: fuzzy, normal, maybe even reviewed
language: MediaWiki language code or
mw.language
object of the
actually
used language, which may be the requested language, English, or any other fallback language
I’m writing here because I’m not sure which one of the many patches this belongs in, or if a new patch should be added to the end of the relation chain.
gerritbot
added a comment.
May 23 2024, 10:47 AM
2024-05-23 10:47:46 (UTC+0)
Comment Actions
Change #1035356 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Add method to load all translations
abi_
added a comment.
Edited
May 23 2024, 12:46 PM
2024-05-23 12:46:00 (UTC+0)
Comment Actions
In
T359918#9820251
@Tacsipacsi
wrote:
It just came into my mind that the current patches don’t return any information on the status of the translations (language, fuzziness) other than the ability to disable fallbacks. Users of this Lua interface may want to use similar markup as Translate’s page translation feature to indicate that a translation is fuzzy or missing. So I think that given a message key and a language, it should be possible to get a Lua table with the following information (either as table keys or as methods):
state: fuzzy, normal, maybe even reviewed
language: MediaWiki language code or
mw.language
object of the
actually
used language, which may be the requested language, English, or any other fallback language
I’m writing here because I’m not sure which one of the many patches this belongs in, or if a new patch should be added to the end of the relation chain.
Thanks for surfacing this. I'll try to work on it in a patch at the end of the relation chain albeit maybe not immediately.
gerritbot
added a comment.
May 23 2024, 1:06 PM
2024-05-23 13:06:07 (UTC+0)
Comment Actions
Change #1025766
abandoned
by Abijeet Patro:
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Add loadDefaultTranslations method
Reason:
No longer necessary.
Pppery
awarded a token.
May 24 2024, 5:04 AM
2024-05-24 05:04:33 (UTC+0)
gerritbot
added a comment.
May 24 2024, 7:22 AM
2024-05-24 07:22:50 (UTC+0)
Comment Actions
Change #1025767
abandoned
by Abijeet Patro:
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Improve error handling
Reason:
abi_
added a comment.
Edited
May 24 2024, 2:53 PM
2024-05-24 14:53:54 (UTC+0)
Comment Actions
In
T359918#9820251
@Tacsipacsi
wrote:
It just came into my mind that the current patches don’t return any information on the status of the translations (language, fuzziness) other than the ability to disable fallbacks. Users of this Lua interface may want to use similar markup as Translate’s page translation feature to indicate that a translation is fuzzy or missing. So I think that given a message key and a language, it should be possible to get a Lua table with the following information (either as table keys or as methods):
state: fuzzy, normal, maybe even reviewed
language: MediaWiki language code or
mw.language
object of the
actually
used language, which may be the requested language, English, or any other fallback language
I’m writing here because I’m not sure which one of the many patches this belongs in, or if a new patch should be added to the end of the relation chain.
Few initial thoughts on this:
Whenever direct translations are fetched, those will be referred to by
:t()
or by
translations
, else we will use the term messages or
:m()
getMessages
etc
It would be nice to return the
Message
class objects that we have on PHP, but we will have to see if serialization of a PHP class object to Lua is possible. If not, we will return array from the PHP API and create the Lua Message objects and return that to the developer.
Reference code to construct an array of translations / messages can be found in
QueryMessageCollectionActionApi
class.
gerritbot
added a comment.
May 28 2024, 1:28 PM
2024-05-28 13:28:57 (UTC+0)
Comment Actions
Change #1036589 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] WIP: MessageBundleLuaLibrary: Handle parser cache expiry
cscott
subscribed.
May 28 2024, 3:12 PM
2024-05-28 15:12:20 (UTC+0)
Pppery
added a project:
User-notice
Jun 19 2024, 4:47 AM
2024-06-19 04:47:50 (UTC+0)
Pppery
moved this task from
To Triage
to
Not ready to announce
on the
User-notice
board.
gerritbot
added a comment.
Jun 19 2024, 7:08 AM
2024-06-19 07:08:45 (UTC+0)
Comment Actions
Change #1020856
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] POC: Add a sample Lua library to access message bundles
gerritbot
added a comment.
Jun 19 2024, 7:14 AM
2024-06-19 07:14:10 (UTC+0)
Comment Actions
Change #1031591
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Add code to validate the message bundle
gerritbot
added a comment.
Jun 19 2024, 7:15 AM
2024-06-19 07:15:08 (UTC+0)
Comment Actions
Change #1023116
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Load the translations from MessageBundle
ReleaseTaggerBot
added a project:
MW-1.43-notes (1.43.0-wmf.11; 2024-06-25)
Jun 19 2024, 8:00 AM
2024-06-19 08:00:42 (UTC+0)
gerritbot
added a comment.
Jun 19 2024, 10:38 AM
2024-06-19 10:38:12 (UTC+0)
Comment Actions
Change #1025380
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Load translations from fallback
gerritbot
added a comment.
Jun 19 2024, 10:38 AM
2024-06-19 10:38:14 (UTC+0)
Comment Actions
Change #1031592
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Change the way translations are requested
gerritbot
added a comment.
Jun 19 2024, 10:38 AM
2024-06-19 10:38:16 (UTC+0)
Comment Actions
Change #1034082
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Add page language code in module options
Quiddity
subscribed.
Jun 20 2024, 8:26 PM
2024-06-20 20:26:47 (UTC+0)
Comment Actions
Hi, for Tech News, please could someone advise on the wording and timing of the entry?
I see it is tagged as 1.43.0-wmf.11 and hence rolling out next week, but I'm not sure if it needs to be announced in the upcoming edition, or if there's perhaps a good reason to delay it by a week or more (e.g. to write/update any related documentation that we'd link to from the entry). Thanks.
Tacsipacsi
added a comment.
Jun 21 2024, 11:47 AM
2024-06-21 11:47:05 (UTC+0)
Comment Actions
While some changes have been merged, others are still under review. The not yet merged
MessageBundleLibrary.lua: Return message object from t() method
is a breaking change; we shouldn’t encourage people to use the feature (so it shouldn’t be announced in Tech News) before that gets merged.
abi_
added a comment.
Jun 21 2024, 12:50 PM
2024-06-21 12:50:52 (UTC+0)
Comment Actions
In
T359918#9911740
@Quiddity
wrote:
Hi, for Tech News, please could someone advise on the wording and timing of the entry?
I see it is tagged as 1.43.0-wmf.11 and hence rolling out next week, but I'm not sure if it needs to be announced in the upcoming edition, or if there's perhaps a good reason to delay it by a week or more (e.g. to write/update any related documentation that we'd link to from the entry). Thanks.
Hi
@Quiddity
, thanks for surfacing this.
This is still in development and the feature is disabled by default. We plan to take feedback about the API from the community with the feature enabled on translatewiki.net.
The
documentation
around this is also still a WIP. I'll comment on this task when its read to be announced.
gerritbot
added a comment.
Jun 24 2024, 11:59 AM
2024-06-24 11:59:57 (UTC+0)
Comment Actions
Change #1034083
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Add ability to skip loading fallbacks
gerritbot
added a comment.
Jun 26 2024, 8:09 AM
2024-06-26 08:09:07 (UTC+0)
Comment Actions
Change #1034084
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Return message object from t() method
ReleaseTaggerBot
edited projects, added
MW-1.43-notes (1.43.0-wmf.12; 2024-07-02)
; removed
MW-1.43-notes (1.43.0-wmf.11; 2024-06-25)
Jun 26 2024, 9:00 AM
2024-06-26 09:00:21 (UTC+0)
gerritbot
added a comment.
Jun 26 2024, 10:23 AM
2024-06-26 10:23:16 (UTC+0)
Comment Actions
Change #1049885 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Remove API access to skipFallback param
gerritbot
added a comment.
Jun 26 2024, 11:09 AM
2024-06-26 11:09:06 (UTC+0)
Comment Actions
Change #1034085
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Add method documentation
gerritbot
added a comment.
Jun 26 2024, 11:09 AM
2024-06-26 11:09:08 (UTC+0)
Comment Actions
Change #1035356
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Add method to load all translations
gerritbot
added a comment.
Jun 26 2024, 11:11 AM
2024-06-26 11:11:28 (UTC+0)
Comment Actions
Change #1049885
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Remove API access to skipFallback param
gerritbot
added a comment.
Jun 26 2024, 3:09 PM
2024-06-26 15:09:00 (UTC+0)
Comment Actions
Change #1049967 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundleLibrary: Code improvements
gerritbot
added a comment.
Jun 26 2024, 7:02 PM
2024-06-26 19:02:33 (UTC+0)
Comment Actions
Change #1050026 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[translatewiki@master] Enable message bundle and Scribunto Lua module integration
gerritbot
added a comment.
Jun 26 2024, 7:59 PM
2024-06-26 19:59:32 (UTC+0)
Comment Actions
Change #1049967
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLibrary.lua: Code improvements
Nikerabbit
edited projects, added
LPL Essential (LPL Essential 2024 Jul-Oct)
; removed
Language-Team (Language-2024-April-June)
Jun 27 2024, 10:43 AM
2024-06-27 10:43:29 (UTC+0)
Nikerabbit
moved this task from
Sprint Backlog
to
Needs Review
on the
LPL Essential (LPL Essential 2024 Jul-Oct)
board.
abi_
mentioned this in
T369049: Deploy message bundle lua integration MVP to translatewiki.net and gather feedback
Jul 2 2024, 1:40 PM
2024-07-02 13:40:53 (UTC+0)
abi_
mentioned this in
T369894: Improve parser cache expiry mechanism for message bundle dependents
Jul 12 2024, 11:35 AM
2024-07-12 11:35:34 (UTC+0)
abi_
updated the task description.
(Show Details)
Jul 13 2024, 3:00 PM
2024-07-13 15:00:03 (UTC+0)
abi_
added a comment.
Edited
Jul 13 2024, 3:11 PM
2024-07-13 15:11:56 (UTC+0)
Comment Actions
Documentation about the Module API:
Some challenges:
Still waiting to be enabled on translatewiki.net in order to request for community feedback.
abi_
added a comment.
Jul 15 2024, 9:14 AM
2024-07-15 09:14:10 (UTC+0)
Comment Actions
I created:
as a quick setup guide for local machines to help with testing
abi_
mentioned this in
T370342: Add link to translate message bundles
Jul 25 2024, 2:44 PM
2024-07-25 14:44:15 (UTC+0)
abi_
added a subtask:
T370342: Add link to translate message bundles
Jul 26 2024, 2:01 PM
2024-07-26 14:01:25 (UTC+0)
abi_
closed subtask
T370342: Add link to translate message bundles
as
Resolved
Aug 1 2024, 6:05 AM
2024-08-01 06:05:22 (UTC+0)
abi_
added a comment.
Edited
Aug 14 2024, 8:29 AM
2024-08-14 08:29:09 (UTC+0)
Comment Actions
We've set-up a test instance on
where the message bundle integration with Lua modules is enabled. The feature can be tested there. Registrations are not open so please drop me a message here to get access. We're working on have PluggableAuth + WSOAuth setup (
T366934
Waiting for review on 1036589: MessageBundleLuaLibrary: Handle parser cache expiry for dependents |
before deploying this on translatewiki.net
abi_
moved this task from
Needs Review
to
Blocked
on the
LPL Essential (LPL Essential 2024 Jul-Oct)
board.
Sep 27 2024, 1:44 PM
2024-09-27 13:44:21 (UTC+0)
gerritbot
added a comment.
Oct 24 2024, 7:43 AM
2024-10-24 07:43:07 (UTC+0)
Comment Actions
Change #1036589
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundleLuaLibrary: Handle parser cache expiry for dependents
ReleaseTaggerBot
added a project:
MW-1.44-notes (1.44.0-wmf.1; 2024-10-29)
Oct 24 2024, 8:01 AM
2024-10-24 08:01:02 (UTC+0)
abi_
moved this task from
Blocked
to
Need QA
on the
LPL Essential (LPL Essential 2024 Jul-Oct)
board.
Oct 24 2024, 12:13 PM
2024-10-24 12:13:12 (UTC+0)
abi_
added a comment.
Oct 24 2024, 12:19 PM
2024-10-24 12:19:20 (UTC+0)
Comment Actions
In
T359918#10063511
@abi_
wrote:
Waiting for review on 1036589: MessageBundleLuaLibrary: Handle parser cache expiry for dependents |
before deploying this on translatewiki.net
Patch is now merged and deployed on translatewiki.net and on
. Needs QA. I'll be doing it.
UOzurumba
moved this task from
Not ready to announce
to
Announce in next Tech/News
on the
User-notice
board.
Oct 24 2024, 7:56 PM
2024-10-24 19:56:47 (UTC+0)
UOzurumba
moved this task from
Announce in next Tech/News
to
Not ready to announce
on the
User-notice
board.
Oct 29 2024, 2:41 PM
2024-10-29 14:41:28 (UTC+0)
abi_
moved this task from
Need QA
to
In Progress
on the
LPL Essential (LPL Essential 2024 Jul-Oct)
board.
Oct 29 2024, 2:46 PM
2024-10-29 14:46:40 (UTC+0)
Comment Actions
Tested with the following setup on translatewiki.net:
Message bundle:
Lua module:
I then tried to use it in
but I don't see the translations from the message bundle appearing.
Needs more investigation.
Tacsipacsi
added a comment.
Oct 30 2024, 12:10 AM
2024-10-30 00:10:34 (UTC+0)
Comment Actions
made an edit to the module
to make the messages appear. However, what I had to make is definitely not good… Looks like the message ID gets a namespace prefix somewhere, which it definitely shouldn’t. (By the way,
mw.logObject(mb:getAllTranslations())
helped a log during the debugging.)
gerritbot
added a comment.
Nov 6 2024, 9:08 AM
2024-11-06 09:08:23 (UTC+0)
Comment Actions
Change #1087864 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[mediawiki/extensions/Translate@master] MessageBundle: When normalizing translation key remove prefixed title key
gerritbot
added a comment.
Nov 6 2024, 1:09 PM
2024-11-06 13:09:46 (UTC+0)
Comment Actions
Change #1087864
merged
by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageBundle: When normalizing translation key remove prefixed title
gerritbot
added a comment.
Nov 6 2024, 1:42 PM
2024-11-06 13:42:44 (UTC+0)
Comment Actions
Change #1050026
abandoned
by Abijeet Patro:
[translatewiki@master] Enable message bundle and Scribunto Lua module integration
Reason:
In favor of I2d9d4b7e3dda18a295de945b138dea8b4fce9ccd
ReleaseTaggerBot
edited projects, added
MW-1.44-notes (1.44.0-wmf.3; 2024-11-12)
; removed
MW-1.44-notes (1.44.0-wmf.1; 2024-10-29)
Nov 6 2024, 2:00 PM
2024-11-06 14:00:46 (UTC+0)
gerritbot
added a comment.
Nov 6 2024, 2:02 PM
2024-11-06 14:02:37 (UTC+0)
Comment Actions
Change #1087914 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):
[operations/mediawiki-config@master] Translate: Enable message bundle Scribunto module
abi_
moved this task from
In Progress
to
Pending Deployment
on the
LPL Essential (LPL Essential 2024 Jul-Oct)
board.
Nov 6 2024, 3:58 PM
2024-11-06 15:58:21 (UTC+0)
Comment Actions
In
T359918#10275253
@Tacsipacsi
wrote:
made an edit to the module
to make the messages appear. However, what I had to make is definitely not good… Looks like the message ID gets a namespace prefix somewhere, which it definitely shouldn’t. (By the way,
mw.logObject(mb:getAllTranslations())
helped a log during the debugging.)
Thanks, we made a change to fix this. I "undid" your edit and things work as expected
gerritbot
added a comment.
Nov 7 2024, 8:06 AM
2024-11-07 08:06:22 (UTC+0)
Comment Actions
Change #1087914
merged
by jenkins-bot:
[operations/mediawiki-config@master] Translate: Enable message bundle Scribunto module on testwiki
Stashbot
added a comment.
Nov 7 2024, 8:07 AM
2024-11-07 08:07:30 (UTC+0)
Comment Actions
Mentioned in SAL (#wikimedia-operations)
[2024-11-07T08:07:30Z] Started scap sync-world: Backport for [[gerrit:
1087914
|Translate: Enable message bundle Scribunto module on testwiki (
T359918
)]]
Stashbot
added a comment.
Nov 7 2024, 8:13 AM
2024-11-07 08:13:09 (UTC+0)
Comment Actions
Mentioned in SAL (#wikimedia-operations)
[2024-11-07T08:13:09Z] kartik, abi: Backport for [[gerrit:
1087914
|Translate: Enable message bundle Scribunto module on testwiki (
T359918
)]] synced to the testservers (
Stashbot
added a comment.
Nov 7 2024, 8:26 AM
2024-11-07 08:26:10 (UTC+0)
Comment Actions
Mentioned in SAL (#wikimedia-operations)
[2024-11-07T08:26:09Z] Finished scap sync-world: Backport for [[gerrit:
1087914
|Translate: Enable message bundle Scribunto module on testwiki (
T359918
)]] (duration: 18m 39s)
Maintenance_bot
removed a project:
Patch-For-Review
Nov 7 2024, 8:30 AM
2024-11-07 08:30:44 (UTC+0)
Tacsipacsi
added a comment.
Nov 7 2024, 4:37 PM
2024-11-07 16:37:36 (UTC+0)
Comment Actions
In
T359918#10296664
@abi_
wrote:
Thanks, we made a change to fix this. I "undid" your edit and things work as expected
Thanks! (Next time, feel free to do a real undo: I don’t mind having my edits reverted, as long as there’s a good reason for that.)
abi_
moved this task from
Pending Deployment
to
Need QA
on the
LPL Essential (LPL Essential 2024 Jul-Oct)
board.
Nov 11 2024, 4:30 AM
2024-11-11 04:30:53 (UTC+0)
Comment Actions
QA Note
: Waiting for deployment and testing on Testwiki. I'll be doing the QA myself.
Nikerabbit
edited projects, added
LPL Essential (LPL Essential 2024 Nov-Jan)
; removed
LPL Essential (LPL Essential 2024 Jul-Oct)
Nov 11 2024, 9:26 AM
2024-11-11 09:26:18 (UTC+0)
Nikerabbit
moved this task from
Backlog
to
Need QA
on the
LPL Essential (LPL Essential 2024 Nov-Jan)
board.
Nikerabbit
changed the task status from
Open
to
In Progress
Nov 11 2024, 9:28 AM
2024-11-11 09:28:55 (UTC+0)
GMikesell-WMF
subscribed.
Nov 11 2024, 5:53 PM
2024-11-11 17:53:20 (UTC+0)
Comment Actions
@abi_
Sounds good, thanks!
abi_
added a comment.
Nov 14 2024, 7:24 AM
2024-11-14 07:24:35 (UTC+0)
Comment Actions
Did some testing on testwiki:
Message bundle:
Lua module:
Page using the Lua module:
Works as expected.
abi_
closed this task as
Resolved
Nov 14 2024, 7:57 AM
2024-11-14 07:57:49 (UTC+0)
abi_
updated the task description.
(Show Details)
abi_
moved this task from
Need QA
to
Done
on the
LPL Essential (LPL Essential 2024 Nov-Jan)
board.
abi_
mentioned this in
T379892: Initial roll-out of Scribunto library for accessing message bundles
Nov 14 2024, 8:55 AM
2024-11-14 08:55:35 (UTC+0)
Pppery
removed a project:
User-notice
Dec 12 2024, 6:54 PM
2024-12-12 18:54:53 (UTC+0)
Quiddity
added a project:
User-notice
Jul 31 2025, 10:01 PM
2025-07-31 22:01:08 (UTC+0)
Comment Actions
This is now in
Quiddity
moved this task from
Not ready to announce
to
In current Tech/News draft
on the
User-notice
board.
Jul 31 2025, 10:01 PM
2025-07-31 22:01:20 (UTC+0)
Quiddity
moved this task from
In current Tech/News draft
to
Already announced/Archive
on the
User-notice
board.
Aug 7 2025, 7:44 PM
2025-08-07 19:44:34 (UTC+0)
Maintenance_bot
edited projects, added
User-notice-archive
; removed
User-notice
Aug 17 2025, 8:30 PM
2025-08-17 20:30:41 (UTC+0)
Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct.
Wikimedia Foundation
Code of Conduct
Disclaimer
CC-BY-SA
GPL
Credits