[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: i18n in Lua
- From: "J.Jørgen von Bargen" <jjvb.primus@...>
- Date: Thu, 13 Jan 2011 22:29:25 +0100
Am 13.01.2011 15:59, schrieb Mateusz Czaplinski:
On Thu, Jan 13, 2011 at 2:36 AM, Robert G. Jakabosky
Instead of a function named t you could use an underscore _. I think some
C/C++ based translation library (maybe QT) uses this _("hello") for
Uh oh, maybe unless you commonly use _ as a marker for "dummy variable
to assign to",
Yes, _ is commonly used (not by me, but by many others) as "dummy
variable" in lua.
_ is a common used macro in i18n implementation in various programming
languages (most to be notified in C/C++), when gettext is used for
Two uses for the same '_', well ... ... it's your decision,
which one you choose for your projects.