[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: ePerl and language-dependent output
- From: Stephan Petersen <nospam@thanx>
- Date: Tue, 18 Jul 2000 12:43:03 +0200 (MEST)
Hi Denis,
> If you want, try the code below. The lang:current variable should
> always contain current language.
thanks for the code, that's a *very* useful snippet!
Now I can write something like this:
[...]
<define-tag perl_get_current_lang>
<perl>
my $current_language = qq/<get-var lang:current>/;
print "The current language is $current_language\n";
</perl>
</define-tag>
[...]
<define-tag get_current_lang>
<d>
<perl_get_current_lang>
</d>
<e>
<perl_get_current_lang>
</e>
</define-tag>
[...]
<get_current_lang>
[...]
Is there a way to make the per-language calls inside
<define-tag get_current_lang> more elegant and "automatic" (so that when
new languages are addes, they're automatically processed too)?
Stephan
--
Stephan Petersen sp@gtt.lth.rwth-aachen.de
>-=-=-=- Visit GTT's Technical Thermochemistry Web Page at =-=-=-=-<
>-=-=-=- http://gttserv.lth.rwth-aachen.de/gtt/ =-=-=-=-<
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com