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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to