forked from github/server
Export strings to .po files (WIP).
This commit is contained in:
parent
269030082c
commit
064a0872ed
1 changed files with 16 additions and 0 deletions
16
scripts/export.lua
Normal file
16
scripts/export.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
local path = 'scripts'
|
||||
if config.install then
|
||||
path = config.install .. '/' .. path
|
||||
end
|
||||
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
||||
require 'eressea'
|
||||
require 'eressea.xmlconf' -- read xml data
|
||||
|
||||
local rules = {}
|
||||
if config.rules then
|
||||
rules = require('eressea.' .. config.rules)
|
||||
eressea.log.info('loaded ' .. #rules .. ' modules for ' .. config.rules)
|
||||
else
|
||||
eressea.log.warning('no rule modules loaded, specify a game in eressea.ini or with -r')
|
||||
end
|
||||
export_locales()
|
Loading…
Reference in a new issue