local function L(w,s,F,m)if F~=""then F=F.."\046"end for m,H in pairs(m)do local g=F..m if type(H)=="\116\097\098\108\101"then L(w,s,g,H)elseif type(H)=="\115\116\114\105\110\103"then local L=""local F=""if s=="\101\110"then L=H end w:SetEntryValue(g,L,F,s,H)else error("\066\097\100 \116\121\112\101 \102\111\114 \118\097\108\117\101 \105\110 \'"..(g.."\'\046"))end end end

local function recurseAdd(localizationTable, localeId, baseKey, object)
	if baseKey ~= "" then
		baseKey = baseKey .. "."
	end

	for index, value in pairs(object) do
		local key = baseKey .. index
		if type(value) == "table" then
			recurseAdd(localizationTable, localeId, key, value)
		elseif type(value) == "string" then
			local source = ""
			local context = ""

			if localeId == "en" then
				source = value
			end

			localizationTable:SetEntryValue(key, source, context, localeId, value)
		else
			error("Bad type for value in '" .. key .. "'.")
		end
	end
end
