Module:languages៖ ភាពខុសគ្នារវាងកំណែនានា
ខ្លឹមសារដែលបានលុបចោល ខ្លឹមសារដែលបានសរសេរបន្ថែម
No edit summary |
No edit summary |
||
បន្ទាត់ទី១០៖
function Language:getCanonicalName()
return self._rawData.
end
▲--function Language:getAllNames()
end▼
▲-- return self._rawData.names
function Language:getOtherNames()
if not self._otherNames then
self._otherNames = {}
if i > 1 then
table.insert(self._otherNames, val)
end▼
end▼
return self._otherNames
end
Line ៤២ ⟶ ៥១:
return self._wikimediaLanguageObjects
▲end
end
Line ៩៨ ⟶ ១០២:
return self._ancestorChain
▲ for _, ancestor in ipairs(ancestors) do
▲ end
▲ end
end
function Language:getCategoryName()
local name = self._rawData.
-- If the name already has "language" in it, don't add it.
Line ១២៨ ⟶ ១១៩:
function Language:makeEntryName(text)
text = mw.ustring.gsub(text, "^[¿¡]", "")
text = mw.ustring.gsub(text, "
if self._rawData.entry_name then
Line ១៤៧ ⟶ ១៣៨:
name = mw.ustring.gsub(name, "^[-־ـ*]+(.)",
"%1")
-- Remove anything in parentheses, as long as they are either preceded or followed by something
name = mw.ustring.gsub(name, "(.)%([^()]+%)", "%1")
name = mw.ustring.gsub(name, "%([^()]+%)(.)", "%1")
-- If there are language-specific rules to generate the key, use those
|