diff --git a/src/class.lua b/src/class.lua index 5ac1d3d..45d6499 100644 --- a/src/class.lua +++ b/src/class.lua @@ -541,8 +541,13 @@ function module.init(shared) return this end - local function Apply() + local function ApplyNewProps(Item,Props) + end + local function Apply(Item) + return function (Props) + ApplyNewProps(Item,Props) + end end new.Apply = Apply diff --git a/src/lang.lua b/src/lang.lua index 4979eeb..d2c231c 100644 --- a/src/lang.lua +++ b/src/lang.lua @@ -168,7 +168,7 @@ function module.init(shared) if quadType == "quad_register" then local function regFn() -- update handler - handler = self.handlers[new.Lang] + handler = self.handlers[new.CurrentLocale] if not handler then handler = self.handlers[new.Locales.Default] end