https://bugzilla.wikimedia.org/show_bug.cgi?id=71366

            Bug ID: 71366
           Summary: There is no way to obtain the language variant in
                    Scribunto module code
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: i18n
          Severity: normal
          Priority: Unprioritized
         Component: Scribunto
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

I tried to write a module that returns different values depending on the
language variant of the page in the context of which that module runs.

I couldn't find any function that does it, so I tried to do:
frame:preprocess('-{zh-hans:zh-hans;zh-hant:zh-hant;}-')

This didn't actually do the right thing, because it just returned
'-{zh-hans:zh-hans;zh-hant:zh-hant;}-'.

So either it's not really possible now, or I couldn't find a way to do in the
docs.

For an example see https://zh.wikipedia.org/wiki/User:Amire80/Lua .

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to