[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Slicing and not-slicing but using the same template(s).
- From: Denis Barbier <nospam@thanx>
- Date: Thu, 25 Nov 1999 10:52:40 +0100 (CET)
On Wed, 24 Nov 1999, Jan Holler wrote:
> hi
Hi Jan,
> i have some websites which run under different languages
> and some which have just one single language.
> i use one(!) standard-templage as a basic layout for all(!) my
> websites. on top of that i build the "local" templates
> for the certain sites. (two steps of abstraction).
[...]
> BUT: i do like to use the same basic page template.
> i do know that that runs me in some problems,
but if _we_ do not know your problems, what can we do to help you?
> but before i update all my hundereds of sources to be
> pseudo-"multilingual" like:
> #!wml -o (ALL-LANG_*)uLANG_DE:%BASE.html
> and fix up my basic-template to generate multilingual pages
> per se, i look for some patchy way.
>
> i thought about it for some time and probably don't see the
> easy way, so if anybody knows the answer, i'd appreciate if
> that persons shares it with me.
Again, what's your problem?
> basically i thought about using variable or divertions but
> none of them do work:
> A. i learned that i can NOT set variables <set-var...> this
> way (assumed all prior definitions are set):
> <de: <set-var foo="deutsch">>
> <fr: <set-var foo="francais">>
> because the slicing is done in pass 9 and the variable are
> set in pass 2. it ends up with foo having the last value.
Right.
> B. the same sad story with divertions. that does NOT work:
> <de: <foo="deutsch>>
> <fr: <foo="francais">>
> because slicing in pass 9 and diverting in pass 5.
Hmmm, it does not work because this is not a diversion. And if it was,
it would not work anyway, your argument is true in this case.
> so how the heck can i put a value in variable
> depending on the language which is generated?
<set-var foo="<de: deutsch><fr: francais>">
Some hints :
1) read the wml::std::lang manpage
2) tell us which version of WML you are using (some features are new)
3) be consistent: if you want suffix filenames like _d, _e, _f, then
define languages with
<lang:new id=d short><lang:new id=e short><lang:new id=f short>
--
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