On Fri, Jul 25, 2003 at 07:03:42PM +0100, Keith Willoughby wrote: > It's better to have something like "Warning: file %s is obsolete" and > format it later (as like printf - I assume there's something similar > available in lua)
string.format, and it's easy to define other functions with with printf
style parameters as well:
function translatef(str, ...)
return string.format(translate(str), unpack(arg))
end
translatef("foo %s bar", "baz")
or maybe warnf..
--
Tuomo
