summaryrefslogtreecommitdiff
path: root/server/src/language.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/language.lua')
-rw-r--r--server/src/language.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/language.lua b/server/src/language.lua
index 3782562e..bf549132 100644
--- a/server/src/language.lua
+++ b/server/src/language.lua
@@ -61,12 +61,12 @@ local function loadLang(name, language)
local str = self[key]
local index = 0
local args = {...}
- str:gsub('%{(.-)%}', function (pat)
+ return str:gsub('%{(.-)%}', function (pat)
local id, fmt
local pos = pat:find(':', 1, true)
if pos then
id = pat:sub(1, pos-1)
- fmg = pat:sub(pos+1)
+ fmt = pat:sub(pos+1)
else
id = pat
fmt = 's'