diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-26 22:34:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-26 22:34:54 +0000 |
commit | 96bc583cfcca29e114897f51153ee82422a4a1a4 (patch) | |
tree | 1c7bd983b23e5f01aa3a08f7e953a875535fe1a0 /libs/web | |
parent | 2f7fb7e05cd591b234bd67d134f4942864a5aa57 (diff) |
libs/web: convert given argument to string in i18n.translatef()
Diffstat (limited to 'libs/web')
-rw-r--r-- | libs/web/luasrc/i18n.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |