Zum Inhalt springen

Modul:Multilingual: Unterschied zwischen den Versionen

2018-03-01
w>PerfektesChaos
(2018-02-19)
w>PerfektesChaos
(2018-03-01)
Zeile 1: Zeile 1:
local Multilingual = { suite  = "Multilingual",
local Multilingual = { suite  = "Multilingual",
                       serial = "2018-02-19",
                       serial = "2018-03-01",
                       item  =  47541920 }
                       item  =  47541920 }


Zeile 7: Zeile 7:
local favorite = function ()
local favorite = function ()
     -- Postcondition:
     -- Postcondition:
     --    Returns code of curent project language
     --    Returns code of current project language
     if not Multilingual.self then
     if not Multilingual.self then
         Multilingual.self = mw.language.getContentLanguage():getCode()
         Multilingual.self = mw.language.getContentLanguage():getCode()
Zeile 472: Zeile 472:
     if o:exists() then
     if o:exists() then
         if type( alien ) == "string" then
         if type( alien ) == "string" then
             o:inLanguage( alien )
             o:inLanguage( alien:lower() )
         end
         end
         if type( apply ) == "table" then
         if type( apply ) == "table" then
Anonymer Benutzer