projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f7fb7e
)
libs/web: convert given argument to string in i18n.translatef()
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 26 Jul 2009 22:34:54 +0000
(22:34 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 26 Jul 2009 22:34:54 +0000
(22:34 +0000)
libs/web/luasrc/i18n.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/i18n.lua
b/libs/web/luasrc/i18n.lua
index dcca13ec6420df5b63a01f74f9b1f4cd1d691511..091542f8605908b32f0582c51cfdaad6bb03dbed 100644
(file)
--- 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 t
ranslate(key, default
):format(...)
+ return t
ostring(translate(key, default)
):format(...)
end