Re: i18n in Lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: i18n in Lua
- From: Javier Guerra Giraldez <javier@...>
- Date: 2011年1月13日 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