From: Jo-Philipp Wich Date: Fri, 12 Aug 2011 13:11:29 +0000 (+0000) Subject: libs/web: add _() function to dispatcher, used for marking translatable menu entries X-Git-Tag: 0.11.0~1885 X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=a8ac3b344f5dee7a79455faa0c699e561464cf4d;p=project%2Fluci.git libs/web: add _() function to dispatcher, used for marking translatable menu entries --- diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 89fa52ee1..f277501f8 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