|
Am 13.01.2011 15:59, schrieb Mateusz Czaplinski:
On Thu, Jan 13, 2011 at 2:36 AM, Robert G. Jakabosky <bobby@sharedrealm.com> wrote: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 translating text.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.
/and/_ 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.
Two uses for the same '_', well ... ... it's your decision, which one you choose for your projects.