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
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