Module:String2: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(Prune code duplication of sentence/ucfirst function)
(Prune code duplication in title function)
Line 57: Line 57:
for i, s in ipairs(words) do
for i, s in ipairs(words) do
s = string.lower( s )
s = string.lower( s )
if( i > 1 ) then
if( i > 1 and alwayslower[s] == 1) then
-- leave in lowercase
if( alwayslower[s] ~= 1 ) then
s = mw.getContentLanguage():ucfirst(s)
end
else
else
s = mw.getContentLanguage():ucfirst(s)
s = mw.getContentLanguage():ucfirst(s)