function PseudoLocalize.addToLocalizationTable(a,z,U)local c=z or"\113\108\112-\112\108\115"local Q=U or"\101\110"local O=a:GetEntries()for a,z in pairs(O)do if not z.Values[c]then local a=z.Values[Q]if a then z.Values[c]=PseudoLocalize.pseudoLocalize(a)else warn(("\091\080\115\101\117\100\111\076\111\099\097\108\105\122\101\046\097\100\100\084\111\076\111\099\097\108\105\122\097\116\105\111\110\084\097\098\108\101\093 - \078\111 \101\110\116\114\121 \105\110 \107\101\121 \037\113 \102\111\114 \108\111\099\097\108\101 \037\113"):format(z.Key,Q))end end end a:SetEntries(O)end

function PseudoLocalize.addToLocalizationTable(localizationTable, preferredLocaleId, preferredFromLocale)
	local localeId = preferredLocaleId or "qlp-pls"
	local fromLocale = preferredFromLocale or "en"

	local entries = localizationTable:GetEntries()
	for _, entry in pairs(entries) do
		if not entry.Values[localeId] then
			local line = entry.Values[fromLocale]
			if line then
				entry.Values[localeId] = PseudoLocalize.pseudoLocalize(line)
			else
				warn(("[PseudoLocalize.addToLocalizationTable] - No entry in key %q for locale %q")
					:format(entry.Key, fromLocale))
			end
		end
	end

	localizationTable:SetEntries(entries)
end
