libs/web: add _() function to dispatcher, used for marking translatable menu entries
This commit is contained in:
parent
986c4b5bc1
commit
a8ac3b344f
1 changed files with 7 additions and 0 deletions
|
@ -859,3 +859,10 @@ end
|
||||||
-- @name translate
|
-- @name translate
|
||||||
-- @param text Text to translate
|
-- @param text Text to translate
|
||||||
translate = i18n.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
|
||||||
|
|
Loading…
Reference in a new issue