Module:Lang: Difference between revisions

Content deleted Content added
sync from sandbox;
sync from sandbox;
Line 23:
local synonym_table = mw.loadData ('Module:Lang/ISO 639 synonyms'); -- ISO 639-2/639-2T code translation to 639-1 code
 
--local cfg = mw.loadData ('Module:Lang/Configurationconfiguration' .. (mw.getCurrentFrame():getTitle():match ('/sandbox') or '')); -- for internationalization
local good, cfg = pcall (mw.loadData, 'Module:Lang/configuration' .. (mw.getCurrentFrame():getTitle():match ('/sandbox') or '')); -- for internationalization
if not good then
cfg = mw.loadData ('Module:Lang/Configuration' .. (mw.getCurrentFrame():getTitle():match ('/sandbox') or '')); -- for internationalization
end
 
local namespace = mw.title.getCurrentTitle().namespace; -- used for categorization