Page MenuHomePhabricator

Support language conversion in Scribunto
Open, Needs TriagePublicFeature


Feature summary (what you would like to be able to do and where):
Add mw.language:convertVariant(string $variant, string $text) to covert text to selected variant and add mw.frame:convert(string $text) to covert to current variant.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): use magic word {{PAGENAME}} to get pagename of translated, but it broken while title have language covert tag, example:
If we could covert it before pass it to magic word, it won't broken.

Event Timeline

SunAfterRain renamed this task from Support convert in Scribunto to Support language convert in Scribunto.Feb 28 2022, 3:03 PM

We should no longer use mw.language (PHP class Language) for LanguageConverter.

This should be implemented as a separated library.

Proposed names:

  • mw.langconv
  • mw.languageconverter
  • (other proposals)
Winston_Sung renamed this task from Support language convert in Scribunto to Support language conversion in Scribunto.Nov 14 2023, 2:09 PM