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:
986c4b5
)
libs/web: add _() function to dispatcher, used for marking translatable menu entries
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 12 Aug 2011 13:11:29 +0000
(13:11 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 12 Aug 2011 13:11:29 +0000
(13:11 +0000)
libs/web/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index 89fa52ee1e4705db906fd66784326a1cc98c4b26..f277501f8d22d382c6e9620363a234f9576f1b02 100644
(file)
--- a/
libs/web/luasrc/dispatcher.lua
+++ b/
libs/web/luasrc/dispatcher.lua
@@
-859,3
+859,10
@@
end
-- @name translate
-- @param text Text to translate
translate = i18n.translate
+
+--- No-op function used to mark translation entries for menu labels.
+-- This function does not actually translate the given argument but
+-- is used by build/i18n-scan.pl to find translatable entries.
+function _(text)
+ return text
+end