src/core: remove unused var in lang
This commit is contained in:
parent
bb752e6b3f
commit
9101a5ce4f
1 changed files with 2 additions and 6 deletions
|
@ -44,12 +44,8 @@ function LanguageManager:getCurrentLangName()
|
|||
end
|
||||
|
||||
function LanguageManager:setLang(lang)
|
||||
self.controller.options.data.language = lang
|
||||
self.lang = self.controller.options.data.language
|
||||
self.langfiles = langs.files
|
||||
self.currentLang = self.langfiles[self.lang]
|
||||
self.data = require(self.currentLang)
|
||||
self.fallback = require(self.langfiles["en"])
|
||||
self.controller.options.data.language = lang
|
||||
self.lang = self.controller.options.data.language
|
||||
end
|
||||
|
||||
return LanguageManager
|
||||
|
|
Loading…
Reference in a new issue