Modul:Multilingual: Unterschied zwischen den Versionen

Keine Änderung der Größe ,  vor 9 Jahren
2016-05-22
w>PerfektesChaos
(2016-05-19)
w>PerfektesChaos
(2016-05-22)
Zeile 1: Zeile 1:
local Multilingual = { suite  = "Multilingual",
local Multilingual = { suite  = "Multilingual",
                       serial = "2016-05-19" };
                       serial = "2016-05-22" };




Zeile 219: Zeile 219:
                         .. mw.ustring.sub( r, 2 )
                         .. mw.ustring.sub( r, 2 )
                 elseif alter == "d" then
                 elseif alter == "d" then
                     if Multilingual.isMinusculable( slang ) then
                     if Multilingual.isMinusculable( r ) then
                         r = mw.ustring.lower( r )
                         r = mw.ustring.lower( r )
                     end
                     end
                 elseif alter == "m" then
                 elseif alter == "m" then
                     if Multilingual.isMinusculable( slang ) then
                     if Multilingual.isMinusculable( r ) then
                         r = mw.ustring.lower( mw.ustring.sub( r, 1, 1 ) )
                         r = mw.ustring.lower( mw.ustring.sub( r, 1, 1 ) )
                             .. mw.ustring.sub( r, 2 )
                             .. mw.ustring.sub( r, 2 )
Zeile 373: Zeile 373:
     local r = true
     local r = true
     if cnf  and  type( cnf.stopMinusculization ) == "string" then
     if cnf  and  type( cnf.stopMinusculization ) == "string" then
         local s = string.format( " %s ", ask )
         local s = string.format( " %s ", ask:lower() )
         if cnf.stopMinusculization:find( s, 1, true ) then
         if cnf.stopMinusculization:find( s, 1, true ) then
             r = false
             r = false
Anonymer Benutzer