Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mw.message Lua library #95

Merged
merged 3 commits into from
Aug 30, 2023
Merged

Conversation

xxyzz
Copy link
Collaborator

@xxyzz xxyzz commented Aug 30, 2023

All three commits are simple implementations to fix errors in the English Wikipedia page "Free neutron decay".

The message library is for getting localized strings. I just return the massage key, we could implement it in the future if it's needed for expanding templates. And the message data are stored in JSON files: https://github.com/wikimedia/mediawiki/tree/master/languages/i18n

It's only used for English Wikipedia mobile page. Add it to hide
unimplement error.
still not really format the argument data but is enough to fix Lua
error in English Wikipedia's "Citation/CS1/Date_validation" module.
Copied from Scribunto and removed php code. This is not a real
implementation of the library, just for fixing `mw.message` is `nil`
Lua errors in English Wikipedia's "Citation/CS1/Utilities" module.
@kristian-clausal kristian-clausal merged commit 4c2003e into tatuylonen:main Aug 30, 2023
2 checks passed
@xxyzz xxyzz deleted the message branch August 30, 2023 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants