From 96bc583cfcca29e114897f51153ee82422a4a1a4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 26 Jul 2009 22:34:54 +0000 Subject: libs/web: convert given argument to string in i18n.translatef() --- libs/web/luasrc/i18n.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/web/luasrc') diff --git a/libs/web/luasrc/i18n.lua b/libs/web/luasrc/i18n.lua index dcca13ec6..091542f86 100644 --- a/libs/web/luasrc/i18n.lua +++ b/libs/web/luasrc/i18n.lua @@ -109,5 +109,5 @@ end -- @param ... Format parameters -- @return Translated and formatted string function translatef(key, default, ...) - return translate(key, default):format(...) + return tostring(translate(key, default)):format(...) end -- cgit v1.2.3