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

Re: How can I find out which language version is currently generated by WML?

On Thu, Jun 07, 2001 at 09:43:39AM +0200, Tibor Simko wrote:
> Hello
> On Wed, 6 Jun 2001, Hubertus Becker wrote:
> > How can I [...] exclude the self-link on the generated page?
> What about a simple solution like:
> <en>
> <a href="foo.fr.html">Foo in French</a>
> <a href="foo.de.html">Foo in German</a>
> </en>
> <fr>
> <a href="foo.en.html">Foo in English</a>
> <a href="foo.de.html">Foo in German</a>
> </fr>

Another solution is

   #!wml -o (ALL-LANG_*)+LANG_EN-EXCLUDE_EN:%BASE.en.html \
         -o (ALL-LANG_*)+LANG_DE-EXCLUDE_DE:%BASE.de.html \
         -o (ALL-LANG_*)+LANG_FR-EXCLUDE_FR:%BASE.fr.html

   #use wml::std::lang
   <lang:new id=de short>
   <lang:new id=en short>
   <lang:new id=fr short>
   <define-tag lang-exclude endtag=required>
   [EXCLUDE_<upcase %0 />:%body:EXCLUDE_<upcase %0 />]

   <lang-exclude en><a href="foo.en.html">Foo in English</a></lang-exclude>
   <lang-exclude fr><a href="foo.fr.html">Foo in French</a></lang-exclude>
   <lang-exclude de><a href="foo.de.html">Foo in German</a></lang-exclude>

Denis Barbier
WML Maintainer
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com