lua-users home
lua-l archive

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


Am 13.01.2011 22:41, schrieb Javier Guerra Giraldez:
2011/1/13 "J.Jørgen von Bargen"<jjvb.primus@gmx.de>:
_ is a common used macro in i18n implementation in various programming
languages (most to be notified in C/C++), when gettext is used for
translation lookup.
but given that in Lua you can omit the parenthesis for single-string
functions, any short-named function looks relatively 'light':
tr'hello'
Yes, this looks nice and much more luaish. But I'm not sure, if there is a way to collect translateable strings marked this way with xgettext without further preprocessing. Will take a look at the docs the next days.
Regards, Jørgen