diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 13:11:29 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 13:11:29 +0000 |
commit | a8ac3b344f5dee7a79455faa0c699e561464cf4d (patch) | |
tree | bcbbf233996d8f0e5bf80b45684915cde4fee42d /libs/web/luasrc/dispatcher.lua | |
parent | 986c4b5bc1cb228024fd11d4d866986577d3a52f (diff) |
libs/web: add _() function to dispatcher, used for marking translatable menu entries
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 89fa52ee1e..f277501f8d 100644 --- 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 |