projects
/
project
/
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
dcca13e
..
091542f
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