[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: i18n in Lua
- From: Javier Guerra Giraldez <javier@...>
- Date: Thu, 13 Jan 2011 16:41:35 -0500
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.
yeah, i've noticed that too.
but given that in Lua you can omit the parenthesis for single-string
functions, any short-named function looks relatively 'light':
tr'hello'
(in fact, it's close to some 'string prefixes' used in Python and (i
think) Perl: r'raw string', u'unicode text', etc)
--
Javier