Re: [NTG-context] checking mainlanguage setup
Dear Aditya, Here are the test result.
context.setvalue("lang", "English")
It is working.
context([[\\def\\lang{English}]])
It is not working. It just prints "def langEnglish". Now, I got two solutions, using luacode and using \doifelse. Thank you. Best regards, Dalyoung
On 28-5-2011 2:26, Jeong Dalyoung wrote:
Dear Aditya,
Here are the test result.
context.setvalue("lang", "English")
It is working.
context([[\\def\\lang{English}]])
It is not working. It just prints "def langEnglish".
context.language('en') ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Sat, 28 May 2011 14:26:47 +0200, Jeong Dalyoung
context([[\\def\\lang{English}]])
It is not working. It just prints "def langEnglish".
BTW, are not there too many backslashes? Shouldn't it be (untested): context("\\def\\lang{English}") or context([[\def\lang{English}]]) Lukas
participants (3)
-
Hans Hagen
-
Jeong Dalyoung
-
Procházka Lukáš Ing. - Pontex s. r. o.