lua-users home
lua-l archive

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


> To ease even more the use of a L function (or any other name you see
> fit), you can use a token filter to add it to all strings.

But that does not work for concatenations: for instance, "log" and "in"
may have translations but not "login".

> (I don't know if a token filter can distinguish between the two, but
> that would be a nice addition if it doesn't).

It can't because, by definition, it seems strings *after* the lexer has
turned text into tokens. All strings are the same, regardless of what
text form was used to define them.
--lhf