Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

languages sub directory #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions data/plugins/language/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local core = require "core"

local no_errors = true
local files = system.list_dir(EXEDIR .. "/data/plugins/language")
for _, filename in ipairs(files) do
local langname = filename:gsub(".lua$", "")
if langname ~= "init" then
local ok = core.try(require, "plugins.language." .. langname)
if ok then
core.log_quiet("Loaded language %q", langname)
else
no_errors = false
end
end
end
return no_errors
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.