整理代码,较复杂的单行if-then-end拆成多行
This commit is contained in:
@@ -4,7 +4,9 @@ function LANG.init(langList,publicText)--Attention, calling this will destory al
|
||||
for k,v in next,T0 do
|
||||
if type(v)=='table'and not v.refuseCopy then--refuseCopy: just copy pointer, not contents
|
||||
if not T[k]then T[k]={}end
|
||||
if type(T[k])=='table'then _langFallback(v,T[k])end
|
||||
if type(T[k])=='table'then
|
||||
_langFallback(v,T[k])
|
||||
end
|
||||
elseif not T[k]then
|
||||
T[k]=v
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user