lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


You could also use my i18n library, which includes that by default:

https://github.com/kikito/i18n.lua#interpolation



On Sat, Jan 5, 2013 at 6:26 PM, steve donovan <steve.j.donovan@gmail.com> wrote:
On Sat, Jan 5, 2013 at 6:33 PM, Alexander Gladysh <agladysh@gmail.com> wrote:
> But IMO in i18n it is often better to use named placeholders, not
> positional ones.

Yes, much more readable. I tend to get mixed up with more than two %s
formats in a string

Microlight's expand function does this - it's genuinely a three-liner