libs/web: convert given argument to string in i18n.translatef()
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 26 Jul 2009 22:34:54 +0000 (22:34 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 26 Jul 2009 22:34:54 +0000 (22:34 +0000)
libs/web/luasrc/i18n.lua

index dcca13e..091542f 100644 (file)
@@ -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