23 Dec
2010
23 Dec
'10
10:12 a.m.
On Dec 23, 2010, at 4:56 PM, Hans Hagen wrote:
if languages.current() == "en" then
Thanks Hans, but it still doesn't work properly: \starttext \startluacode function doit(s) if languages.current == "en" then context("ENGLISH: ") context(s) else context("NOT ENGLISH:") context(s) end end \stopluacode \define[1]\Test% {\ctxlua{doit("#1")}} {\language[fr] \Test{French}} {\language[en] \Test{English}} \stoptext Thomas