src/core: remove unused var in lang

This commit is contained in:
Kazhnuz 2019-01-28 08:00:56 +01:00
parent bb752e6b3f
commit 9101a5ce4f

View file

@ -44,12 +44,8 @@ function LanguageManager:getCurrentLangName()
end end
function LanguageManager:setLang(lang) function LanguageManager:setLang(lang)
self.controller.options.data.language = lang self.controller.options.data.language = lang
self.lang = self.controller.options.data.language 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"])
end end
return LanguageManager return LanguageManager