* core: Added shortcut translatef for translate and format

remotes/tags/0.8.1@3141
Steven Barth 2008-05-25 15:55:39 +00:00
parent 0200ca38eb
commit c6c50b3ec6
1 changed files with 5 additions and 0 deletions

View File

@ -56,3 +56,8 @@ end
function translate(key, default)
return table[key] or default
end
-- Translate shourtcut with sprintf/string.format inclusion
function translatef(key, default, ...)
return translate(key, default):format(...)
end